public class P2DComponentControl extends FwkInstruction implements P2DControlInterface
| Modifier and Type | Field and Description |
|---|---|
protected java.awt.image.BufferedImage |
image
The image buffer.
|
protected P2DFrame |
moving
This flag indicates that the event handler currently moves the component.
|
protected java.awt.geom.Point2D |
startingPoint
Buffer to sae the point where the moving was started.
|
static java.lang.String |
version |
commands, fwkCommandTemplate, groups| Constructor and Description |
|---|
P2DComponentControl()
The default construtor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
askForName(java.awt.Container parent,
P2DComponentInterface component,
java.lang.String title,
java.lang.String defaultValue)
Ask for component name.
|
void |
focusGained(P2DComponentInterface component,
java.awt.geom.Point2D p,
java.awt.event.FocusEvent e)
Invoked when the mouse activates a component.
|
void |
focusLost(P2DComponentInterface component,
java.awt.geom.Point2D p,
java.awt.event.FocusEvent e)
Invoked when the mouse inactivates a component.
|
java.lang.String |
getVersion()
Return the version string of the FWK component.
|
void |
initialize()
Initialize the object.
|
void |
install(P2DComponentInterface component)
Install the control for the given component.
|
void |
mouseClicked(P2DComponentInterface component,
java.awt.geom.Point2D p,
java.awt.event.MouseEvent e)
The callback that is called if the mouse was clicked.
|
void |
mouseDragged(P2DComponentInterface component,
java.awt.geom.Point2D p,
java.awt.event.MouseEvent e)
The callback that is called if the mouse was dragged.
|
void |
mouseEntered(P2DComponentInterface component,
java.awt.geom.Point2D p,
java.awt.event.MouseEvent e)
The callback that is called if the mouse was entered.
|
void |
mouseExited(P2DComponentInterface component,
java.awt.geom.Point2D p,
java.awt.event.MouseEvent e)
The callback that is called if the mouse was exited.
|
void |
mouseMoved(P2DComponentInterface component,
java.awt.geom.Point2D p,
java.awt.event.MouseEvent e)
The callback that is called if the mouse was moved.
|
void |
mousePressed(P2DComponentInterface component,
java.awt.geom.Point2D p,
java.awt.event.MouseEvent e)
The callback that is called if the mouse was pressed.
|
void |
mouseReleased(P2DComponentInterface component,
java.awt.geom.Point2D p,
java.awt.event.MouseEvent e)
The callback that is called if the mouse was released.
|
boolean |
openPopupMenu(P2DComponentInterface component,
java.awt.event.MouseEvent ev)
Open the popup menu.
|
void |
processFocusEvent(P2DComponentInterface component,
java.awt.geom.Point2D p,
java.awt.event.FocusEvent e)
Process the focus event.
|
void |
processMouseEvent(P2DComponentInterface component,
java.awt.geom.Point2D p,
java.awt.event.MouseEvent e)
Process the mouse motion event.
|
void |
release()
Release the object.
|
void |
release(P2DComponentInterface component)
Release the control.
|
void |
revalidate(P2DComponentInterface component,
boolean recursive)
Request a newly calculation of the component.
|
void |
uninstall(P2DComponentInterface component)
Uninstall the control for the given component.
|
addCommand, addCommand, addToGroup, addToGroup, clearCommands, commandsAvailable, deleteGroup, getCommand, getCommands, getGroup, groupExists, removeCommand, removeFromGroup, setCommandsgetPresentationString, getPresentationStringgetNiceVersionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPresentationString, getPresentationStringpublic static final java.lang.String version
protected P2DFrame moving
protected java.awt.geom.Point2D startingPoint
protected java.awt.image.BufferedImage image
public java.lang.String getVersion()
FwkInterfacegetVersion in interface FwkInterfacegetVersion in class FwkInstructionpublic void release()
release in interface FwkInterfacerelease in class FwkInstructionpublic void initialize()
initialize in interface P2DControlInterfacepublic void release(P2DComponentInterface component)
public void install(P2DComponentInterface component)
install in interface P2DControlInterfacepublic void uninstall(P2DComponentInterface component)
uninstall in interface P2DControlInterfacepublic void revalidate(P2DComponentInterface component, boolean recursive)
revalidate in interface P2DControlInterfacepublic void mouseClicked(P2DComponentInterface component, java.awt.geom.Point2D p, java.awt.event.MouseEvent e)
mouseClicked in interface P2DControlInterfacecomponent - The componentp - The coordinates in the component coordinate system.e - The mouse event.public void mousePressed(P2DComponentInterface component, java.awt.geom.Point2D p, java.awt.event.MouseEvent e)
mousePressed in interface P2DControlInterfacecomponent - The componentp - The coordinates in the component coordinate system.e - The mouse event.public void mouseReleased(P2DComponentInterface component, java.awt.geom.Point2D p, java.awt.event.MouseEvent e)
mouseReleased in interface P2DControlInterfacecomponent - The componentp - The coordinates in the component coordinate system.e - The mouse event.public void mouseEntered(P2DComponentInterface component, java.awt.geom.Point2D p, java.awt.event.MouseEvent e)
mouseEntered in interface P2DControlInterfacecomponent - The componentp - The coordinates in the component coordinate system.e - The mouse event.public void mouseExited(P2DComponentInterface component, java.awt.geom.Point2D p, java.awt.event.MouseEvent e)
mouseExited in interface P2DControlInterfacecomponent - The componentp - The coordinates in the component coordinate system.e - The mouse event.public void focusGained(P2DComponentInterface component, java.awt.geom.Point2D p, java.awt.event.FocusEvent e)
focusGained in interface P2DControlInterfacee - The P2D mouse event.component - The componentp - The coordinates in the component coordinate system.public void focusLost(P2DComponentInterface component, java.awt.geom.Point2D p, java.awt.event.FocusEvent e)
focusLost in interface P2DControlInterfacee - The P2D mouse event.component - The componentp - The coordinates in the component coordinate system.public void mouseMoved(P2DComponentInterface component, java.awt.geom.Point2D p, java.awt.event.MouseEvent e)
mouseMoved in interface P2DControlInterfacecomponent - The componentp - The coordinates in the component coordinate system.e - The mouse event.public void mouseDragged(P2DComponentInterface component, java.awt.geom.Point2D p, java.awt.event.MouseEvent e)
mouseDragged in interface P2DControlInterfacecomponent - The componentp - The coordinates in the component coordinate system.e - The mouse event.public void processFocusEvent(P2DComponentInterface component, java.awt.geom.Point2D p, java.awt.event.FocusEvent e)
processFocusEvent in interface P2DControlInterfacecomponent - The componente - The focus event.p - The event point in the components coordinate system.Componentpublic void processMouseEvent(P2DComponentInterface component, java.awt.geom.Point2D p, java.awt.event.MouseEvent e)
processMouseEvent in interface P2DControlInterfacecomponent - The componentp - The event point in the components coordinate system.e - The mouse event.Componentpublic java.lang.String askForName(java.awt.Container parent,
P2DComponentInterface component,
java.lang.String title,
java.lang.String defaultValue)
askForName in interface P2DControlInterfaceparent - This parameter is used as parent for the dialog box.public boolean openPopupMenu(P2DComponentInterface component, java.awt.event.MouseEvent ev)
openPopupMenu in interface P2DControlInterfacecomponent - the componentev - The mouse event.true - if operation was successful.