Search in sources :

Example 1 with RulerModel

use of org.csstudio.opibuilder.model.RulerModel in project yamcs-studio by yamcs.

the class OPIEditor method configureRuler.

/**
 * Configure the properties for the rulers.
 */
private void configureRuler() {
    // Ruler properties
    RulerProvider hprovider = new OPIEditorRulerProvider(new RulerModel(true));
    RulerProvider vprovider = new OPIEditorRulerProvider(new RulerModel(false));
    getGraphicalViewer().setProperty(RulerProvider.PROPERTY_HORIZONTAL_RULER, hprovider);
    getGraphicalViewer().setProperty(RulerProvider.PROPERTY_VERTICAL_RULER, vprovider);
}
Also used : RulerProvider(org.eclipse.gef.rulers.RulerProvider) RulerModel(org.csstudio.opibuilder.model.RulerModel)

Aggregations

RulerModel (org.csstudio.opibuilder.model.RulerModel)1 RulerProvider (org.eclipse.gef.rulers.RulerProvider)1