ZoomControl lets users zoom and pan a target DiagramView interactively.
Namespace: com.mindfusion.diagramming
Package: com.mindfusion.diagramming
Java Copy Code |
---|
public class ZoomControl extends JComponent implements MouseListener, MouseMotionListener, PropertyChangeListener |
The ZoomControl class lets user change interactively the current zoom level and scroll position of a DiagramView. To set it up, add a ZoomControl to the frame, place it anywhere over a DiagramView, and set the control's View property to that view. Set the ZoomStep and ScrollStep properties to specify the amount added to view's zoom level or scroll position by ZoomControl's buttons. You can customize the control's appearance by setting properties such as Fill, BorderColor, CornerRadius and TickPosition.
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
com.mindfusion.diagramming.ZoomControl
JDiagram Programmer's Guide | © 2024 MindFusion |