The Ruler control provides horizontal and vertical scales that help users measure diagram items.
Namespace: com.mindfusion.diagramming
Package: com.mindfusion.diagramming
Java
![]() |
---|
public class Ruler extends JComponent |
To specify which DiagramView instance is shown in the ruler, call the setDiagramView method.
The ruler tracks mouse movements and modifications being performed on an item, and displays markers over the scales indicating the current position in diagram's coordinate system. The colors of these markers can be changed using the setPointerColor and setProjectionColor methods.
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
com.mindfusion.diagramming.Ruler