MindFusion.Java Package Programmer's Guide
Ruler Class
Remarks See Also
 






The Ruler control provides horizontal and vertical scales that help users measure diagram items.

Namespace: com.mindfusion.diagramming
Package: com.mindfusion.diagramming

 Syntax

Java  Copy Code

public class Ruler extends JComponent

 Remarks

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.

 Inheritance Hierarchy

java.lang.Object
    java.awt.Component
        java.awt.Container
            javax.swing.JComponent
                com.mindfusion.diagramming.Ruler

 See Also

Ruler Members
com.mindfusion.diagramming Namespace