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);
}
Aggregations