Class ControlPanelEditor

All Implemented Interfaces:
ClipboardOwner, DropTargetListener, ActionListener, ComponentListener, KeyListener, MouseListener, MouseMotionListener, WindowListener, ImageObserver, MenuContainer, VetoableChangeListener, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants, BeanInterface, ModifiedFlag, WindowInterface

public class ControlPanelEditor
extends Editor
implements DropTargetListener, ClipboardOwner
Provides a simple editor for adding jmri.jmrit.display items to a captive JFrame.

GUI is structured as a band of common parameters across the top, then a series of things you can add.

All created objects are put specific levels depending on their type (higher levels are in front):

  • BKG background
  • ICONS icons and other drawing symbols
  • LABELS text labels
  • TURNOUTS turnouts and other variable track items
  • SENSORS sensors and other independently modified objects
Note that higher numbers appear behind lower numbers.

The "contents" List keeps track of all the objects added to the target frame for later manipulation. Extends the behavior it shares with PanelPro DnD implemented at JDK 1.2 for backward compatibility

See Also:
Serialized Form