public class MEDMarkerCrosshair extends MEDMouseBehaviorAdapter implements P2DContainerListenerInterface
Modifier and Type | Class and Description |
---|---|
class |
MEDMarkerCrosshair.Crosshair
The crosshair class.
|
Modifier and Type | Field and Description |
---|---|
static java.awt.Color |
BGCOLOR |
static int |
CANVAS_ONLY |
static int |
CENTER |
static int |
CROSSHAIR |
protected java.awt.Cursor |
cursor |
static java.awt.Color |
CURSORCOLOR |
static java.awt.Color |
CURSORSHADOWCOLOR |
protected static java.awt.Cursor |
customCursor |
static int |
LEFT |
static int |
NONE |
int |
OFFSET |
static int |
RANGE |
static java.awt.Color |
RANGECOLOR |
static int |
RIGHT |
version
actionListeners, buttonClass, commandName, helpID, icon, iconKey, instruction, menuEventEnabled, menuItemClass, menuListeners, mnemonic, properties, radioGroupState, registry, sensitive, separator, text, textKey, toggle, toggleState, toolBarEnabled, toolTipKey, toolTipText, visible
source
author, buildnr, className, company, copyright, creationDate, dateFormatString, description, eMail, FWK_ICON, FWK_ICON_ARRAY, FWK_ICON_BG, FWK_ICON_BG_ARRAY, FWK_ICON_BG_LARGE, FWK_ICON_BG_LARGE_ARRAY, FWK_ICON_LARGE, FWK_ICON_LARGE_ARRAY, ICON, iconCount, internetAddress, name, titleName
CONTROLLER_PROPERTY, MENU_REASON_CANCELED, MENU_REASON_DESELECTED, MENU_REASON_SELECTED
AUTHOR, BUILDNR, COMPANY, COPYRIGHT, DATE_FORMAT, DEFAULT_ICON, DESCRIPTION, INTERNET, LARGE_ICON, LARGE_KEY_EXT, LARGE_OPAQUE_ICON, LARGE_OPAQUE_KEY_EXT, OPAQUE_ICON, OPAQUE_KEY_EXT, RCS_DATE_FORMAT, SUPPORT_EMAIL, TITLE_NAME
Constructor and Description |
---|
MEDMarkerCrosshair()
The default constructor.
|
MEDMarkerCrosshair(FwkControllerInterface controller)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkMarker()
Check the marker.
|
void |
componentAdded(P2DContainerEventInterface e)
Invoked when a component has been added to the container.
|
void |
componentRemoved(P2DContainerEventInterface e)
Invoked when a component has been removed from the container.
|
void |
init()
Init the behavior.
|
void |
mouseDragged(java.awt.event.MouseEvent ev)
Invoked when the mouse dragged inside the plot region.
|
void |
mouseEntered(java.awt.event.MouseEvent ev)
Invoked when the mouse exited.
|
void |
mouseExited(java.awt.event.MouseEvent ev)
Invoked when the mouse exited.
|
void |
mouseMoved(java.awt.event.MouseEvent ev)
Invoked when the mouse moved inside the plot region.
|
void |
mousePressed(java.awt.event.MouseEvent ev)
Invoked when a mouse button has been pressed on a component.
|
void |
mouseReleased(java.awt.event.MouseEvent ev)
Invoked when a mouse button has been pressed on a component.
|
void |
release()
Release behavior.
|
execute, getIcon, getMED, getVersion, mouseClicked, setToggleState
addActionListener, addCommand, addCommand, addMenuListener, addToGroup, addToGroup, clearCommands, commandsAvailable, deleteGroup, getActionListenerArray, getButtonClass, getCommand, getCommandName, getCommands, getController, getGroup, getHelpID, getIconKey, getMenuEventEnabled, getMenuItemClass, getMenuListenerArray, getMnemonic, getProperties, getProperty, getRadioGroupState, getSensitivity, getSeparator, getText, getTextKey, getToggle, getToggleState, getToolBarEnabled, getToolTipKey, getToolTipText, getVisibility, groupExists, hasActionListeners, hasMenuListeners, isParent, menuSelect, register, registeredObjects, registrySize, removeActionListener, removeCommand, removeFromGroup, removeMenuListener, setAsParent, setButtonClass, setCommandName, setCommands, setController, setHelpID, setIcon, setIconKey, setMenuEventEnabled, setMenuItemClass, setMnemonic, setProperty, setRadioGroupState, setSensitivity, setSeparator, setText, setTextKey, setToggle, setToolBarEnabled, setToolTipKey, setToolTipText, setVisibility, toString, unregister
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeArray, getPropertyChangeListenerArray, getPropertyChangeListenerArray, isPropertyChangeEventSuspended, removePropertyChangeListener, removePropertyChangeListener, setSource, suspendPropertyChangeEvents
getAuthor, getBuild, getClassName, getCompany, getCompanyInternetAddress, getCopyright, getCreationDate, getCreationDate, getDateFormatString, getDescription, getIcon, getIconKey, getName, getPresentationString, getPresentationString, getSupportEMail, getTitle, getTitleName, getTransferData, getTransferDataFlavors, isDataFlavorSupported, lostOwnership, setAuthor, setBuild, setClassName, setCompany, setCompanyInternetAddress, setCopyright, setCreationDate, setCreationDate, setDateFormatString, setDescription, setDescriptor, setIcon, setIconKey, setName, setSupportEMail, setTitleName
getNiceVersion
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getPresentationString, getPresentationString
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeArray, getPropertyChangeListenerArray, getPropertyChangeListenerArray, isPropertyChangeEventSuspended, removePropertyChangeListener, removePropertyChangeListener, setSource, suspendPropertyChangeEvents
public static final java.awt.Color BGCOLOR
public static final java.awt.Color RANGECOLOR
public static final java.awt.Color CURSORCOLOR
public static final java.awt.Color CURSORSHADOWCOLOR
public static final int CANVAS_ONLY
public static final int RANGE
public static final int CROSSHAIR
public static final int CENTER
public static final int LEFT
public static final int RIGHT
public static final int NONE
public final int OFFSET
protected java.awt.Cursor cursor
protected static java.awt.Cursor customCursor
public MEDMarkerCrosshair()
public MEDMarkerCrosshair(FwkControllerInterface controller)
public void init()
init
in class MEDMouseBehaviorAdapter
public void release()
release
in interface FwkInterface
release
in class MEDMouseBehaviorAdapter
public void componentAdded(P2DContainerEventInterface e)
componentAdded
in interface P2DContainerListenerInterface
e
- The container event.public void componentRemoved(P2DContainerEventInterface e)
componentRemoved
in interface P2DContainerListenerInterface
e
- The container event.protected void checkMarker()
public void mouseExited(java.awt.event.MouseEvent ev)
mouseExited
in interface java.awt.event.MouseListener
mouseExited
in class MEDMouseBehaviorAdapter
ev
- the mouse event.public void mouseEntered(java.awt.event.MouseEvent ev)
mouseEntered
in interface java.awt.event.MouseListener
mouseEntered
in class MEDMouseBehaviorAdapter
ev
- the mouse event.public void mouseDragged(java.awt.event.MouseEvent ev)
mouseDragged
in interface java.awt.event.MouseMotionListener
mouseDragged
in class MEDMouseBehaviorAdapter
ev
- The mouse event, if is castable to P2DMouseEventpublic void mouseMoved(java.awt.event.MouseEvent ev)
mouseMoved
in interface java.awt.event.MouseMotionListener
mouseMoved
in class MEDMouseBehaviorAdapter
ev
- The mouse event, if is castable to P2DMouseEventpublic void mousePressed(java.awt.event.MouseEvent ev)
mousePressed
in interface java.awt.event.MouseListener
mousePressed
in class MEDMouseBehaviorAdapter
the
- mouse event. It is an instance of P2DMouseEvent.public void mouseReleased(java.awt.event.MouseEvent ev)
mouseReleased
in interface java.awt.event.MouseListener
mouseReleased
in class MEDMouseBehaviorAdapter
the
- mouse event. It is an instance of P2DMouseEvent.