public abstract class EditorTool extends Object implements MouseListener, MouseMotionListener
| Modifier and Type | Field and Description |
|---|---|
protected JComponent |
owner |
static Dimension |
SMALL_BTN_SIZE |
| Constructor and Description |
|---|
EditorTool(JComponent targetEditor)
Constructor method
|
| Modifier and Type | Method and Description |
|---|---|
abstract AbstractButton |
getButton() |
abstract Cursor |
getCursor()
Returns the cursor
|
abstract String |
getID() |
abstract boolean |
isSuitableFor(Object obj) |
void |
mouseClicked(MouseEvent e) |
void |
mouseEntered(MouseEvent e) |
void |
mouseExited(MouseEvent e) |
void |
mouseMoved(MouseEvent e) |
abstract void |
setModel(Object objectToBeEdited) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmousePressed, mouseReleasedmouseDraggedpublic static final Dimension SMALL_BTN_SIZE
protected JComponent owner
public EditorTool(JComponent targetEditor)
targetEditor - public abstract Cursor getCursor()
public void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenerpublic void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenerpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenerpublic void mouseMoved(MouseEvent e)
mouseMoved in interface MouseMotionListenerpublic abstract AbstractButton getButton()
public abstract boolean isSuitableFor(Object obj)
public abstract String getID()
public abstract void setModel(Object objectToBeEdited)