Package org.eclipse.gef.rulers
Interface RulerChangeListener
-
- All Known Implementing Classes:
RulerChangeListener.Stub
public interface RulerChangeListenerRulerChangeListeners can be added toRulerProviders to receive notification about changes in the ruler/guide properties. This interface provides a mechanism for the (client-side) ruler/guide model to communicate changes to GEF's ruler/guide feature.- Since:
- 3.0
- See Also:
RulerProvider
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classRulerChangeListener.StubStub for the RulerChangeListener interface.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidnotifyGuideMoved(java.lang.Object guide)Invoked when a guide is moved.voidnotifyGuideReparented(java.lang.Object guide)Invoked when a guide is added to or removed from a ruler.voidnotifyPartAttachmentChanged(java.lang.Object part, java.lang.Object guide)Invoked when a graphical component is attached to a guide.voidnotifyUnitsChanged(int newUnit)Invoked when the ruler's unit of measurement is changed.
-
-
-
Method Detail
-
notifyUnitsChanged
void notifyUnitsChanged(int newUnit)
Invoked when the ruler's unit of measurement is changed.- Parameters:
newUnit- The new unit of measurement (RulerProvider.UNIT_INCES, UNIT_CENTIMETERS, or UNIT_PIXELS)
-
notifyGuideReparented
void notifyGuideReparented(java.lang.Object guide)
Invoked when a guide is added to or removed from a ruler.- Parameters:
guide- The guide that was added or removed
-
notifyGuideMoved
void notifyGuideMoved(java.lang.Object guide)
Invoked when a guide is moved.- Parameters:
guide- The guide that was moved
-
notifyPartAttachmentChanged
void notifyPartAttachmentChanged(java.lang.Object part, java.lang.Object guide)Invoked when a graphical component is attached to a guide.- Parameters:
part- The model representation of the graphical compoment that was attachedguide- The guide that the part was attached to
-
-