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.
  • Constructor Details

    • OPIEditorRulerProvider

      public OPIEditorRulerProvider(RulerModel ruler)
      Constructor.
      Parameters:
      ruler - The RulerModel fore this provider
  • Method Details

    • getRuler

      public Object getRuler()
      Overrides:
      getRuler in class org.eclipse.gef.rulers.RulerProvider
    • getUnit

      public int getUnit()
      Overrides:
      getUnit in class org.eclipse.gef.rulers.RulerProvider
    • getAttachedModelObjects

      public List<AbstractWidgetModel> getAttachedModelObjects(Object guide)
      Overrides:
      getAttachedModelObjects in class org.eclipse.gef.rulers.RulerProvider
    • getMoveGuideCommand

      public org.eclipse.gef.commands.Command getMoveGuideCommand(Object guide, int pDelta)
      Overrides:
      getMoveGuideCommand in class org.eclipse.gef.rulers.RulerProvider
    • getCreateGuideCommand

      public org.eclipse.gef.commands.Command getCreateGuideCommand(int position)
      Overrides:
      getCreateGuideCommand in class org.eclipse.gef.rulers.RulerProvider
    • getDeleteGuideCommand

      public org.eclipse.gef.commands.Command getDeleteGuideCommand(Object guide)
      Overrides:
      getDeleteGuideCommand in class org.eclipse.gef.rulers.RulerProvider
    • getGuidePositions

      public int[] getGuidePositions()
      Overrides:
      getGuidePositions in class org.eclipse.gef.rulers.RulerProvider
    • getGuidePosition

      public int getGuidePosition(Object guide)
      Overrides:
      getGuidePosition in class org.eclipse.gef.rulers.RulerProvider
    • getGuides

      public List<GuideModel> getGuides()
      Overrides:
      getGuides in class org.eclipse.gef.rulers.RulerProvider