Package org.eclipse.gef.rulers

Examples of org.eclipse.gef.rulers.RulerProvider


}

protected void loadProperties() {
  // Ruler properties
  LogicRuler ruler = getLogicDiagram().getRuler(PositionConstants.WEST);
  RulerProvider provider = null;
  if (ruler != null) {
    provider = new LogicRulerProvider(ruler);
  }
  getGraphicalViewer().setProperty(RulerProvider.PROPERTY_VERTICAL_RULER, provider);
  ruler = getLogicDiagram().getRuler(PositionConstants.NORTH);
View Full Code Here


 
  return figure;
}

protected LogicGuide findGuideAt(int pos, boolean horizontal) {
  RulerProvider provider = ((RulerProvider)getHost().getViewer().getProperty(
      horizontal ? RulerProvider.PROPERTY_VERTICAL_RULER
      : RulerProvider.PROPERTY_HORIZONTAL_RULER));
  return (LogicGuide)provider.getGuideAt(pos);
}
View Full Code Here

TOP

Related Classes of org.eclipse.gef.rulers.RulerProvider

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.