Package org.eclipse.gef.rulers
Class RulerChangeListener.Stub
java.lang.Object
org.eclipse.gef.rulers.RulerChangeListener.Stub
- All Implemented Interfaces:
RulerChangeListener
- Enclosing interface:
- RulerChangeListener
Stub for the RulerChangeListener interface. Clients not intending to
implement all the methods in that interface can extend this class.
- Since:
- 3.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.gef.rulers.RulerChangeListener
RulerChangeListener.Stub
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
notifyGuideMoved
(Object guide) Invoked when a guide is moved.void
notifyGuideReparented
(Object guide) Invoked when a guide is added to or removed from a ruler.void
notifyPartAttachmentChanged
(Object part, Object guide) Invoked when a graphical component is attached to a guide.void
notifyUnitsChanged
(int newUnit) Invoked when the ruler's unit of measurement is changed.
-
Constructor Details
-
Stub
public Stub()
-
-
Method Details
-
notifyUnitsChanged
public void notifyUnitsChanged(int newUnit) Description copied from interface:RulerChangeListener
Invoked when the ruler's unit of measurement is changed.- Specified by:
notifyUnitsChanged
in interfaceRulerChangeListener
- Parameters:
newUnit
- The new unit of measurement (RulerProvider.UNIT_INCES, UNIT_CENTIMETERS, or UNIT_PIXELS)- See Also:
-
notifyGuideReparented
Description copied from interface:RulerChangeListener
Invoked when a guide is added to or removed from a ruler.- Specified by:
notifyGuideReparented
in interfaceRulerChangeListener
- Parameters:
guide
- The guide that was added or removed- See Also:
-
notifyGuideMoved
Description copied from interface:RulerChangeListener
Invoked when a guide is moved.- Specified by:
notifyGuideMoved
in interfaceRulerChangeListener
- Parameters:
guide
- The guide that was moved- See Also:
-
notifyPartAttachmentChanged
Description copied from interface:RulerChangeListener
Invoked when a graphical component is attached to a guide.- Specified by:
notifyPartAttachmentChanged
in interfaceRulerChangeListener
- Parameters:
part
- The model representation of the graphical compoment that was attachedguide
- The guide that the part was attached to- See Also:
-