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, wait
mousePressed, mouseReleased
mouseDragged
public 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 MouseListener
public void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
public void mouseMoved(MouseEvent e)
mouseMoved
in interface MouseMotionListener
public abstract AbstractButton getButton()
public abstract boolean isSuitableFor(Object obj)
public abstract String getID()
public abstract void setModel(Object objectToBeEdited)