Package org.csstudio.opibuilder.editor
Class OPIEditorRulerProvider
java.lang.Object
org.eclipse.gef.rulers.RulerProvider
org.csstudio.opibuilder.editor.OPIEditorRulerProvider
public final class OPIEditorRulerProvider
extends org.eclipse.gef.rulers.RulerProvider
The RulerProvider for the OPI Editor.
-
Field Summary
Fields inherited from class org.eclipse.gef.rulers.RulerProvider
listeners, PROPERTY_HORIZONTAL_RULER, PROPERTY_RULER_VISIBILITY, PROPERTY_VERTICAL_RULER, UNIT_CENTIMETERS, UNIT_INCHES, UNIT_PIXELS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAttachedModelObjects
(Object guide) org.eclipse.gef.commands.Command
getCreateGuideCommand
(int position) org.eclipse.gef.commands.Command
getDeleteGuideCommand
(Object guide) int
getGuidePosition
(Object guide) int[]
org.eclipse.gef.commands.Command
getMoveGuideCommand
(Object guide, int pDelta) getRuler()
int
getUnit()
Methods inherited from class org.eclipse.gef.rulers.RulerProvider
addRulerChangeListener, getAccGuideDescription, getAccGuideName, getAccGuideValue, getAttachedEditParts, getGuideAt, removeRulerChangeListener, setUnit
-
Constructor Details
-
OPIEditorRulerProvider
Constructor.- Parameters:
ruler
- The RulerModel fore this provider
-
-
Method Details
-
getRuler
- Overrides:
getRuler
in classorg.eclipse.gef.rulers.RulerProvider
-
getUnit
public int getUnit()- Overrides:
getUnit
in classorg.eclipse.gef.rulers.RulerProvider
-
getAttachedModelObjects
- Overrides:
getAttachedModelObjects
in classorg.eclipse.gef.rulers.RulerProvider
-
getMoveGuideCommand
- Overrides:
getMoveGuideCommand
in classorg.eclipse.gef.rulers.RulerProvider
-
getCreateGuideCommand
public org.eclipse.gef.commands.Command getCreateGuideCommand(int position) - Overrides:
getCreateGuideCommand
in classorg.eclipse.gef.rulers.RulerProvider
-
getDeleteGuideCommand
- Overrides:
getDeleteGuideCommand
in classorg.eclipse.gef.rulers.RulerProvider
-
getGuidePositions
public int[] getGuidePositions()- Overrides:
getGuidePositions
in classorg.eclipse.gef.rulers.RulerProvider
-
getGuidePosition
- Overrides:
getGuidePosition
in classorg.eclipse.gef.rulers.RulerProvider
-
getGuides
- Overrides:
getGuides
in classorg.eclipse.gef.rulers.RulerProvider
-