public class MEDZoomCrosshair extends MEDMouseBehaviorAdapter implements P2DContainerListenerInterface
| Modifier and Type | Class and Description |
|---|---|
class |
MEDZoomCrosshair.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 |
versionactionListeners, buttonClass, commandName, helpID, icon, iconKey, instruction, menuEventEnabled, menuItemClass, menuListeners, mnemonic, properties, radioGroupState, registry, sensitive, separator, text, textKey, toggle, toggleState, toolBarEnabled, toolTipKey, toolTipText, visiblesourceauthor, 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, titleNameCONTROLLER_PROPERTY, MENU_REASON_CANCELED, MENU_REASON_DESELECTED, MENU_REASON_SELECTEDAUTHOR, 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 |
|---|
MEDZoomCrosshair()
The default constructor.
|
MEDZoomCrosshair(FwkControllerInterface controller)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
java.awt.geom.Point2D |
transformToChannelPoint(P2DChannelInterface channel,
java.awt.geom.Point2D p) |
execute, getIcon, getMED, getVersion, mouseClicked, setToggleStateaddActionListener, 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, unregisteraddPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeArray, getPropertyChangeListenerArray, getPropertyChangeListenerArray, isPropertyChangeEventSuspended, removePropertyChangeListener, removePropertyChangeListener, setSource, suspendPropertyChangeEventsgetAuthor, 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, setTitleNamegetNiceVersionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetPresentationString, getPresentationStringaddPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeArray, getPropertyChangeListenerArray, getPropertyChangeListenerArray, isPropertyChangeEventSuspended, removePropertyChangeListener, removePropertyChangeListener, setSource, suspendPropertyChangeEventspublic 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 MEDZoomCrosshair()
public MEDZoomCrosshair(FwkControllerInterface controller)
public void init()
init in class MEDMouseBehaviorAdapterpublic void release()
release in interface FwkInterfacerelease in class MEDMouseBehaviorAdapterpublic void componentAdded(P2DContainerEventInterface e)
componentAdded in interface P2DContainerListenerInterfacee - The container event.public void componentRemoved(P2DContainerEventInterface e)
componentRemoved in interface P2DContainerListenerInterfacee - The container event.public void mouseExited(java.awt.event.MouseEvent ev)
mouseExited in interface java.awt.event.MouseListenermouseExited in class MEDMouseBehaviorAdapterev - the mouse event.public void mouseEntered(java.awt.event.MouseEvent ev)
mouseEntered in interface java.awt.event.MouseListenermouseEntered in class MEDMouseBehaviorAdapterev - the mouse event.public void mouseDragged(java.awt.event.MouseEvent ev)
mouseDragged in interface java.awt.event.MouseMotionListenermouseDragged in class MEDMouseBehaviorAdapterev - The mouse event, if is castable to P2DMouseEventpublic void mouseMoved(java.awt.event.MouseEvent ev)
mouseMoved in interface java.awt.event.MouseMotionListenermouseMoved in class MEDMouseBehaviorAdapterev - The mouse event, if is castable to P2DMouseEventpublic void mousePressed(java.awt.event.MouseEvent ev)
mousePressed in interface java.awt.event.MouseListenermousePressed in class MEDMouseBehaviorAdapterthe - mouse event. It is an instance of P2DMouseEvent.public void mouseReleased(java.awt.event.MouseEvent ev)
mouseReleased in interface java.awt.event.MouseListenermouseReleased in class MEDMouseBehaviorAdapterthe - mouse event. It is an instance of P2DMouseEvent.public java.awt.geom.Point2D transformToChannelPoint(P2DChannelInterface channel, java.awt.geom.Point2D p)