Class CoordinateEdit

All Implemented Interfaces:
ComponentListener, WindowListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants, BeanInterface, ModifiedFlag, WindowInterface
Direct Known Subclasses:
MemoryIconCoordinateEdit

public class CoordinateEdit extends JmriJFrame
Displays and allows user to modify x & y coordinates of positionable labels This class has been generalized to provide popup edit dialogs for positionable item properties when TextFields are needed to input data.

The class name no longer identifies the full purpose of the class, However the name is retained because coordinate editing was the genesis. The current list of properties served for editing is:

  • modify x & y coordinates modify level modify tooltip modify border size
  • modify margin size modify fixed size modify rotation degrees modify scaling
  • modify text labels modify zoom scaling modify panel name
To use, write a static method that provides the dialog frame. Then write an initX method that customizes the dialog for the property.
See Also: