Êþº¾ 4_ 6com/advantest/itee/ui/annotations/ruler/CompositeRuler java/lang/Object .com/advantest/itee/ui/annotations/ruler/IRuler fBgColor Lorg/eclipse/swt/graphics/Color; mViewer 4Lcom/advantest/itee/ui/annotations/IAnnotatedViewer; Signature ?Lcom/advantest/itee/ui/annotations/IAnnotatedViewer
;
fComposite MLcom/advantest/itee/ui/annotations/ruler/CompositeRuler$CompositeRulerCanvas; fModel :Lcom/advantest/itee/ui/annotations/model/IAnnotationModel; ELcom/advantest/itee/ui/annotations/model/IAnnotationModel | ; fDecorators Ljava/util/List; VLjava/util/List;>; fLocation Lorg/eclipse/swt/graphics/Point; $fLastVerticalMouseButtonActivityLine 8Lcom/advantest/itee/ui/annotations/model/IVerticalIndex; TV; RuntimeVisibleAnnotations Ljavax/annotation/CheckForNull; &fLastHorizontalMouseButtonActivityLine :Lcom/advantest/itee/ui/annotations/model/IHorizontalIndex; TH; fGap I mOrientation :Lcom/advantest/itee/ui/annotations/ruler/RulerOrientation; ()V Code
' ) ( org/eclipse/swt/widgets/Display * +
getDefault #()Lorg/eclipse/swt/widgets/Display;
' - . / getSystemColor #(I)Lorg/eclipse/swt/graphics/Color; 1 LineNumberTable LocalVariableTable
6 4 7 (II)V this 8Lcom/advantest/itee/ui/annotations/ruler/CompositeRuler; LocalVariableTypeTable CLcom/advantest/itee/ui/annotations/ruler/CompositeRuler; (I)V style
? 4 $ A java/util/ArrayList
@ C 4 < E G org/eclipse/swt/graphics/Point
F 6 J L N P R Q 8com/advantest/itee/ui/annotations/ruler/RulerOrientation S " VERTICAL U ! " P W X "
HORIZONTAL Z gap
StackMapTable addDecorator =(ILcom/advantest/itee/ui/annotations/ruler/IRulerDecorator;)V H(ILcom/advantest/itee/ui/annotations/ruler/IRulerDecorator | ;)V a c b 7com/advantest/itee/ui/annotations/ruler/IRulerDecorator d e getOrientation <()Lcom/advantest/itee/ui/annotations/ruler/RulerOrientation;
g i h org/eclipse/core/runtime/Assert j k isTrue (Z)Z m o n java/util/List p q size ()I m s t u add (Ljava/lang/Object;)Z m w t x (ILjava/lang/Object;)V z
| ~ } Kcom/advantest/itee/ui/annotations/ruler/CompositeRuler$CompositeRulerCanvas €
isDisposed ()Z a ‚ ƒ „
createControl ~(Lcom/advantest/itee/ui/annotations/ruler/CompositeRuler;Lorg/eclipse/swt/widgets/Composite;)Lorg/eclipse/swt/widgets/Control; a † ‡ ˆ
getControl #()Lorg/eclipse/swt/widgets/Control;
| Š ‹ Œ
childAdded $(Lorg/eclipse/swt/widgets/Control;)V
Ž $ layoutAnnotatedTarget index rulerColumn 9Lcom/advantest/itee/ui/annotations/ruler/IRulerDecorator; DLcom/advantest/itee/ui/annotations/ruler/IRulerDecorator | ; removeDecorator m – — ˜ get (I)Ljava/lang/Object;
š ” › <(Lcom/advantest/itee/ui/annotations/ruler/IRulerDecorator;)V G(Lcom/advantest/itee/ui/annotations/ruler/IRulerDecorator | ;)V m ž Ÿ u remove
¡ ~ ¢ org/eclipse/swt/widgets/Control
| ¤ ¥ Œ childRemoved
¡ § ¨ $ dispose cc !Lorg/eclipse/swt/widgets/Control; ¬
® ° ¯ 2com/advantest/itee/ui/annotations/IAnnotatedViewer ± ² getAnnotatedTargetControl %()Lorg/eclipse/swt/widgets/Composite;
´ ~ µ !org/eclipse/swt/widgets/Composite
´ · ¸ ¹ layout (Z)V parent #Lorg/eclipse/swt/widgets/Composite;
setBackground #(Lorg/eclipse/swt/graphics/Color;)V
| ¿ ¼ ½ m Á Â Ã iterator ()Ljava/util/Iterator; Å Ç Æ java/util/Iterator È É next ()Ljava/lang/Object; a ¿ Å Ì Í € hasNext color newColor iter Ljava/util/Iterator; column ZLjava/util/Iterator;>; Õ org/eclipse/swt/graphics/Color z(Lorg/eclipse/swt/widgets/Composite;Lcom/advantest/itee/ui/annotations/IAnnotatedViewer;)Lorg/eclipse/swt/widgets/Control; …(Lorg/eclipse/swt/widgets/Composite;Lcom/advantest/itee/ui/annotations/IAnnotatedViewer;)Lorg/eclipse/swt/widgets/Control;
| Ù 4 Ú '(Lorg/eclipse/swt/widgets/Composite;I)V Ü Bcom/advantest/itee/ui/annotations/ruler/CompositeRuler$RulerLayout
Û Þ 4 ß ;(Lcom/advantest/itee/ui/annotations/ruler/CompositeRuler;)V
| á â ã setLayout #(Lorg/eclipse/swt/widgets/Layout;)V å 8com/advantest/itee/ui/annotations/ruler/CompositeRuler$1
ä Þ
´ è é ê addDisposeListener +(Lorg/eclipse/swt/events/DisposeListener;)V viewer setModel =(Lcom/advantest/itee/ui/annotations/model/IAnnotationModel;)V H(Lcom/advantest/itee/ui/annotations/model/IAnnotationModel | ;)V ð a ò ì í model e getModel <()Lcom/advantest/itee/ui/annotations/model/IAnnotationModel; G()Lcom/advantest/itee/ui/annotations/model/IAnnotationModel | ; update
| ú û +
getDisplay ý 8com/advantest/itee/ui/annotations/ruler/CompositeRuler$2
ü Þ
' asyncExec (Ljava/lang/Runnable;)V d !Lorg/eclipse/swt/widgets/Display; setFont "(Lorg/eclipse/swt/graphics/Font;)V a font Lorg/eclipse/swt/graphics/Font; getWidth a
q
java/lang/Math max (II)I width ruler getHeight a q height getSize
(getLineOfLastVerticalMouseButtonActivity :()Lcom/advantest/itee/ui/annotations/model/IVerticalIndex; ()TV; F!" y
$%& toVerticalIndex ;(I)Lcom/advantest/itee/ui/annotations/model/IVerticalIndex; *getLineOfLastHorizontalMouseButtonActivity <()Lcom/advantest/itee/ui/annotations/model/IHorizontalIndex; ()TH; F+, x
./0 toHorizontalIndex =(I)Lcom/advantest/itee/ui/annotations/model/IHorizontalIndex; (I)TV; ®34& getVerticalIndexForCoordinate y_coordinate (I)TH; ®890 getHorizontalIndexForCoordinate x_coordinate getViewer 6()Lcom/advantest/itee/ui/annotations/IAnnotatedViewer; A()Lcom/advantest/itee/ui/annotations/IAnnotatedViewer | ; $setLocationOfLastMouseButtonActivity getDecoratorIterator \()Ljava/util/Iterator;>; getHover <()Lcom/advantest/itee/ui/annotations/hover/IAnnotationHover; G()Lcom/advantest/itee/ui/annotations/hover/IAnnotationHover; getVerticalElementsPerPixel ()J
†
¡HI "()Lorg/eclipse/swt/graphics/Point; ®KLM getVisibleRegion 6()Lcom/advantest/itee/ui/annotations/model/IRectangle;OQP 2com/advantest/itee/ui/annotations/model/IRectangleRE getVerticalLength elements J getHorizontalElementsPerPixelOWXE getHorizontalLength
SourceFile CompositeRuler.java;V::Lcom/advantest/itee/ui/annotations/model/IVerticalIndex;P::Lcom/advantest/itee/ui/annotations/model/IPosition;>Ljava/lang/Object;Lcom/advantest/itee/ui/annotations/ruler/IRuler | ; InnerClasses CompositeRulerCanvas RulerLayout !
! " # $ % , ¸ &¶ ,³ 0± 2 J 3 4 $ % I * · 5± 2
3 8 9 : 8 ; 4 < | | | | |