Class ShapeDrawer
- java.lang.Object
-
- jmri.jmrit.display.controlPanelEditor.shape.ShapeDrawer
-
public class ShapeDrawer extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ShapeDrawer(Editor ed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(boolean up)
void
delete()
boolean
doMouseClicked(JmriMouseEvent event, Editor ed)
boolean
doMouseDragged(JmriMouseEvent event)
boolean
doMouseMoved(JmriMouseEvent event)
boolean
doMousePressed(JmriMouseEvent event, Positionable pos)
boolean
doMouseReleased(Positionable selection, JmriMouseEvent event, Editor ed)
javax.swing.JMenu
makeMenu()
protected boolean
makeNewShape()
void
paint(java.awt.Graphics g)
protected boolean
setDrawFrame(DrawFrame f)
-
-
-
Constructor Detail
-
ShapeDrawer
public ShapeDrawer(Editor ed)
-
-
Method Detail
-
makeMenu
public javax.swing.JMenu makeMenu()
-
makeNewShape
protected boolean makeNewShape()
-
setDrawFrame
protected boolean setDrawFrame(DrawFrame f)
-
paint
public void paint(java.awt.Graphics g)
-
doMousePressed
public boolean doMousePressed(JmriMouseEvent event, Positionable pos)
- Parameters:
event
- the event to processpos
- the item to check- Returns:
- true if creating or editing; false otherwise
-
doMouseReleased
public boolean doMouseReleased(Positionable selection, JmriMouseEvent event, Editor ed)
-
doMouseClicked
public boolean doMouseClicked(JmriMouseEvent event, Editor ed)
-
doMouseDragged
public boolean doMouseDragged(JmriMouseEvent event)
-
doMouseMoved
public boolean doMouseMoved(JmriMouseEvent event)
-
add
public void add(boolean up)
-
delete
public void delete()
-
-