The Ruler control provides horizontal and vertical scales that help users measure diagram items.
Namespace: com.mindfusion.diagramming
Package: com.mindfusion.diagramming
SyntaxJava
Copy Code
|
|---|
public class Ruler extends JComponent |
RemarksTo 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.
Inheritance Hierarchyjava.lang.Object![]()
java.awt.Component![]()
java.awt.Container![]()
javax.swing.JComponent![]()
com.mindfusion.diagramming.Ruler
See Also