public class P2DComponent extends P2DContainer implements P2DComponentInterface, P2DComponentModelInterface, P2DComponentViewInterface, P2DComponentControlInterface
The P2DComponent merges the MVC components.
A special feature is the handling of the control and the view components
that depends on the J3D API.
The view component is a shared group node so that the view can be shared
to another tree. The J3D API requires restrictions for that type of nodes.
A behavior node cannot be placed under a shared group.
So the P2DComponent creates two branch groups to prevent an IllegalSharingException.
The first one holds the behavior and a link to the P2DComponentView (SharedGroup).
This node can be retrieved by the method getRootNode().
The second one holds a link to the P2DComponentView too but the behavior isn't
a child of this node. This node can be retrieved by the method getViewNode().
The SharedGroup of the view can be retrieved by the method getView().
Additionally there is a method to move all behavior nodes from the root node.
This method (moveBehavior) is used when super class will use
existing component to build a separate subtree. Then it must (see upper restriction)
move all behavior node located inside its subtree to the own root node.
| Modifier and Type | Field and Description |
|---|---|
protected P2DControlInterface |
control
The component control object.
|
protected static FwkDescriptionInterface |
descriptor |
protected P2DModelInterface |
model
The component model object.
|
protected boolean |
mouseIsInside
The flag the remeber whether the mouse is inside the component.
|
protected int |
registerCounter
The register counter.
|
static java.lang.String |
version |
protected P2DViewInterface |
view
The component view object.
|
components, lastMouseEvent, listeners, localMousePoint, LOCK, parent, readingDOM, selectableinfoBusMemberSupportchangeManager, properties, suspendChangeManagersourceauthor, 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, ICON, iconCount, iconKey, internetAddress, name, titleNameCONTROL_KEY, MODEL_KEY, VIEW_KEYINFOBUS_SOURCEAUTHOR, 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_NAMEDASH_STROKE, DOT_DASH_STROKE, DOT_DOT_DASH_STROKE, DOT_STROKE, LINE_STROKE| Constructor and Description |
|---|
P2DComponent()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCommand(FwkCommandInterface command)
Add the command to the command array.
|
void |
addCommand(int index,
FwkCommandInterface command)
Insert a command at the specified position.
|
void |
addDialogPane(FwkDialogPaneInterface pane,
java.lang.String ident)
Add a spezial dialog pane with the given identifier.
|
void |
addToGroup(int index,
java.lang.String groupIdent,
java.lang.String commandName)
Add a command to a group.
|
void |
addToGroup(java.lang.String groupIdent,
java.lang.String commandName)
Add a command to a group.
|
java.lang.String |
askForName(java.awt.Container parent,
java.lang.String title,
java.lang.String defaultValue)
Ask for component name.
|
boolean |
boundsAcceptable(java.awt.geom.Point2D lower,
java.awt.geom.Point2D upper)
Checks the given bounds to be acceptable bounds.
|
P2DBoundingBoxInterface |
calculateBoundingBoxRelativeTo(P2DBoundingBoxInterface bb,
java.awt.geom.Point2D p)
Calculate a new bounding box relative to the given point.
|
P2DBoundingBoxInterface |
closestIntersection(P2DBoundingBoxInterface[] bounds)
Finds closest bounding object which intersects this bounding box
|
boolean |
commandsAvailable()
This method returns a boolean that indicates whether
the command array is initialized.
|
void |
configure(java.awt.Graphics2D g)
Configurate the graphical context with the settings of the appearance.
|
boolean |
contains(P2DBoundingBoxInterface box)
Checks whether the complete bounding box is inside this one.
|
boolean |
contains(java.awt.geom.Point2D p)
Test for intersection with a point
|
boolean |
containsAllChildren(P2DBoundingBoxInterface box)
Contains all children.
|
boolean |
containsAllChildren(java.awt.geom.Point2D lower,
java.awt.geom.Point2D upper)
Contains all children.
|
void |
deleteGroup(java.lang.String groupIdent)
Delete command group.
|
void |
focusGained(java.awt.geom.Point2D p,
java.awt.event.FocusEvent e)
Invoked when the mouse activates a component.
|
void |
focusLost(java.awt.geom.Point2D p,
java.awt.event.FocusEvent e)
Invoked when the mouse inactivates a component.
|
boolean |
frameHasHandles()
Inquire whether the frame has handles.
|
boolean |
getActive(P2DContainerInterface container)
Get the active flag.
|
int |
getActiveHandle()
Get the index of the active handle.
|
void |
getAllArmedComponents(P2DContainerInterface container,
double x,
double y,
FwkArrayInterface arr)
return all armed component.
|
void |
getAllArmedComponents(P2DContainerInterface container,
java.awt.geom.Point2D p,
FwkArrayInterface arr)
return all armed component.
|
FwkAppearanceInterface |
getAppearance()
Retrieve the appearance of the component.
|
double |
getArea()
Returns the square of the enclosed area.
|
P2DBackgroundInterface |
getBackground()
Get the component's background.
|
java.awt.Color |
getBackgroundColor()
Gets the background color.
|
float |
getBackgroundTransparency()
Gets the transparency of the background.
|
boolean |
getBackgroundVisible()
Inquire whether the background is visible.
|
P2DBoundingBoxInterface |
getBoundingBox()
Retrieve the bounding box the component.
|
P2DComponentInterface |
getChild(double x,
double y)
Return a boolean whether the component contains the mouse event.
|
P2DComponentInterface |
getChild(java.awt.geom.Point2D p)
Return a boolean whether the component contains the mouse event.
|
java.awt.Shape |
getClip()
Gets the clipping shape.
|
java.awt.Color |
getColor()
Gets the color.
|
FwkCommandInterface |
getCommand(java.lang.String commandName)
Return the command that matches the given command name.
|
FwkCommandInterface[] |
getCommands()
Get the commands of the component.
|
java.util.HashMap |
getContainerMap()
Returns the container map.
|
P2DControlInterface |
getControl()
Returns the control of the component.
|
java.lang.String |
getControlClassId()
Returns the control class ID string.
|
float[] |
getDashArray()
Returns the array representing the lengths of the
dash segments.
|
float |
getDashPhase()
Returns the current dash phase.
|
boolean |
getDecorated()
Get the boolean fo rthe decoration.
|
static FwkDescriptionInterface |
getDescriptor() |
FwkDialogPaneInterface |
getDialogPane(java.lang.String ident)
Retrieves a spezial dialog pane for the given identifier.
|
java.util.HashMap |
getDialogPanes()
Retrieves the property dialog panes in a hashtable.
|
FwkDialogPaneValueInterface |
getDialogPaneValue(java.lang.String ident)
Retrieves a spezial dialog pane value for the given identifier.
|
java.util.HashMap |
getDialogPaneValues()
Retrieves the property dialog pane values.
|
int |
getEndCap()
Returns the end cap style.
|
java.awt.Shape |
getFill()
Gets the filling shape.
|
java.awt.Font |
getFont()
Retrieves the Font of the component.
|
P2DFrameInterface |
getFrame()
Get the frame of the component.
|
java.awt.Color |
getFrameColor()
Gets the frame color.
|
boolean |
getFrameHandlesVisible()
Inquire whether the frame handles are visible.
|
boolean |
getFrameLinesVisible()
Inquire whether the frame lines are visible.
|
float |
getFrameTransparency()
Gets the transparency of the model.
|
boolean |
getFrameVisible()
Inquire whether the frame is visible.
|
FwkCommandInterface[] |
getGroup(java.lang.String groupIdent)
Retrieve the command group.
|
double |
getHeight()
Retrieves the height of the box.
|
boolean |
getInternalMouseListenerActive()
Get the activity flag for the internal mouse listener.
|
java.awt.geom.AffineTransform |
getInverseTransform()
Get the inverse transformation.
|
int |
getLineJoin()
Returns the line join style.
|
float |
getLineWidth()
Returns the line width.
|
java.awt.geom.Point2D |
getLower()
Get the lower vector.
|
void |
getLower(java.awt.geom.Point2D lower)
Get the lower vector.
|
float |
getMiterLimit()
Returns the limit of miter joins.
|
P2DModelInterface |
getModel()
Returns the model of the component.
|
java.lang.String |
getModelClassId()
Returns the model class ID string.
|
boolean |
getRatioFix()
Get the current ratio flag.
|
java.awt.geom.Rectangle2D |
getRectangle()
Retrieves the rectanlge defined by this box.
|
int |
getRegisterCounter()
Get the register counter.
|
double |
getScaledHeight()
Retrieves the scaled height of the box.
|
java.awt.geom.Point2D |
getScaledLower()
Get the lower scaled vector.
|
void |
getScaledLower(java.awt.geom.Point2D lower)
Get the lower scaled vector.
|
java.awt.geom.Point2D |
getScaledUpper()
Get the upper scaled vector.
|
void |
getScaledUpper(java.awt.geom.Point2D upper)
Get the upper scaled vector.
|
double |
getScaledWidth()
Retrieves the scaled width of the box.
|
boolean |
getSelectable()
Get a boolean indicates whether the container is selectable.
|
java.lang.String |
getShortName()
Get the short name of the container.
|
javax.infobus.InfoBusEventListener |
getSource()
Get the source of component.
|
java.awt.Stroke |
getStroke()
Gets the Stroke for the Graphics2D context.
|
java.awt.geom.AffineTransform |
getTransform()
Get the transformation of the component.
|
java.awt.geom.AffineTransform |
getTransform(P2DContainerInterface container)
Restores the transformation that belongs to the given toplevel container.
|
java.awt.geom.Point2D |
getTranslation()
Get the translation vector.
|
float |
getTransparency()
Gets the transparency of the component color.
|
java.awt.geom.Point2D |
getUpper()
Get the upper vector.
|
void |
getUpper(java.awt.geom.Point2D upper)
Get the upper vector.
|
java.lang.String |
getVersion()
Return the version string of the FWK component.
|
P2DViewInterface |
getView()
Returns the view of the component.
|
java.lang.String |
getViewClassId()
Returns the view class ID string.
|
boolean |
getVisible()
Returns a boolean whether the component is visble.
|
double |
getWidth()
Retrieves the width of the box.
|
double |
getXFactor()
Get the scale of the bounding box in X direction.
|
double |
getXOffset()
Get the offset of the bounding box in X direction.
|
double |
getYFactor()
Get the scale of the bounding box in Y direction.
|
double |
getYOffset()
Get the offset of the bounding box in Y direction.
|
boolean |
groupExists(java.lang.String groupIdent)
Check whether a group exists.
|
boolean |
hasActiveChild(P2DContainerInterface container)
Returns a boolean whether the component has an active child in the next level.
|
void |
initialize()
Initialize the component.
|
boolean |
intersects(P2DBoundingBoxInterface bounds)
Test for intersection with another bounds object
|
boolean |
intersects(P2DBoundingBoxInterface[] bounds)
Test for intersection with an array of bounds objects
|
boolean |
intersects(P2DBoundingBoxInterface[] bounds,
P2DBoundingBoxInterface newBoundBox)
Test for intersection with an array of bounds objects
|
boolean |
intersects(P2DBoundingBoxInterface bounds,
P2DBoundingBoxInterface newBoundBox)
Test for intersection with another bounding box
|
java.awt.geom.Point2D |
inverseTransformPoint(java.awt.geom.Point2D p)
Transform the point.
|
boolean |
isInside(P2DBoundingBoxInterface box)
Checks whether the given box is inside this one.
|
boolean |
isInside(P2DComponentInterface child,
P2DBoundingBoxInterface box)
Check the specified box in child coodinates.
|
boolean |
isInside(P2DComponentInterface child,
java.awt.geom.Point2D p)
Check the point specified in child coodinates.
|
boolean |
isInternalMouseListenerActive()
Get a boolean whether the internal mouse listener is active.
|
boolean |
isMVCValid()
Return a boolean whether the Model-View-Control is valid.
|
boolean |
isVisible()
Returns a boolean whether the component is visble.
|
P2DControlInterface |
loadControl()
Load the control object.
|
P2DModelInterface |
loadModel()
Load the model object.
|
P2DViewInterface |
loadView()
Load the view object.
|
void |
mouseClicked(java.awt.geom.Point2D p,
java.awt.event.MouseEvent e)
The callback that is called if the mouse was clicked.
|
void |
mouseDragged(java.awt.geom.Point2D p,
java.awt.event.MouseEvent e)
The callback that is called if the mouse was dragged.
|
void |
mouseEntered(java.awt.geom.Point2D p,
java.awt.event.MouseEvent e)
The callback that is called if the mouse was entered.
|
void |
mouseExited(java.awt.geom.Point2D p,
java.awt.event.MouseEvent e)
The callback that is called if the mouse was exited.
|
void |
mouseMoved(java.awt.geom.Point2D p,
java.awt.event.MouseEvent e)
The callback that is called if the mouse was moved.
|
void |
mousePressed(java.awt.geom.Point2D p,
java.awt.event.MouseEvent e)
The callback that is called if the mouse was pressed.
|
void |
mouseReleased(java.awt.geom.Point2D p,
java.awt.event.MouseEvent e)
The callback that is called if the mouse was released.
|
void |
move(double xDiff,
double yDiff)
Move the box.
|
boolean |
openPopupMenu(java.awt.event.MouseEvent ev)
Open the popup menu.
|
void |
paint(java.awt.Graphics2D g2)
Paint the component.
|
void |
paint(P2DContainerInterface container,
java.awt.Graphics2D g)
Paint the component.
|
void |
processFocusEvent(java.awt.event.FocusEvent e)
Process the focus event.
|
void |
processMouseEvent(java.awt.event.MouseEvent e)
Process the mouse event.
|
void |
propertyChange(java.beans.PropertyChangeEvent ev)
The callback for the property change listener.
|
void |
register()
Register the component.
|
protected void |
register(java.awt.datatransfer.DataFlavor[] dataFlavors)
Register the component.
|
void |
registerContainer(P2DContainerInterface container,
java.awt.Graphics2D g)
Register container context.
|
void |
release()
Release the component.
|
void |
removeCommand(FwkCommandInterface command)
Remove a sub-command.
|
void |
removeDialogPane(java.lang.String ident)
remove a spezial dialog pane with the given identifier.
|
void |
removeFromGroup(java.lang.String groupIdent,
java.lang.String commandName)
Remove a command from a group.
|
void |
resetActiveHandle()
Reset the active handle.
|
java.awt.geom.Point2D |
restoreLocalMousePoint()
Restore local mouse point.
|
void |
revalidate(boolean recursive)
Revalidate the component.
|
void |
saveLocalMousePoint(java.awt.geom.Point2D p)
Save the local mouse point.
|
java.awt.BasicStroke |
scaleStroke(java.awt.geom.AffineTransform at)
Scale the line with.
|
java.awt.BasicStroke |
scaleStroke(java.awt.geom.AffineTransform at,
float lw)
Scale the line with.
|
void |
setActive(P2DContainerInterface container,
boolean flag)
Activate the component.
|
void |
setActiveHandle(int index)
Sets the armed handle.
|
void |
setAppearance(FwkAppearanceInterface ap)
Sets the appearance of the component.
|
void |
setBackgroundColor(java.awt.Color color)
Sets the background color.
|
void |
setBackgroundTransparency(float transparency)
Sets the transparency of the background.
|
void |
setBackgroundVisible(boolean flag)
Hide / Show the background.
|
void |
setBoundingBox(P2DBoundingBoxInterface bb)
Sets a new bounding box for the component.
|
void |
setClip(double x,
double y,
double width,
double height)
Sets the current clip to the rectangle specified by the given coordinates.
|
void |
setClip(java.awt.Shape clip)
Sets the current clipping area to an arbitrary clip shape.
|
void |
setColor(java.awt.Color color)
Sets the color.
|
void |
setCommands(FwkCommandInterface[] commands)
Set the sub-commands of the command.
|
void |
setContainerMap(java.util.HashMap map)
Sets the container map.
|
void |
setControl(P2DControlInterface newControl)
Set the control of the component.
|
void |
setControlClassId(java.lang.String controlId)
Sets the control class ID string.
|
void |
setDashArray(float[] arr)
Sets the array representing the lengths of the
dash segments.
|
void |
setDashPhase(float phase)
Sets the current dash phase.
|
void |
setDecorated(boolean flag)
Set the boolean fo rthe decoration.
|
void |
setDialogPaneValues(java.util.HashMap values)
Sets the property dialog pane values for the component.
|
void |
setEndCap(int cap)
Retrieves the end cap style.
|
void |
setFill(java.awt.Shape s)
Fills the interior of a Shape using the settings of the Graphics2D context.
|
void |
setFont(java.awt.Font newFont)
Set a new 3D-ont for the component.
|
void |
setFrameColor(java.awt.Color color)
Sets the frame color.
|
void |
setFrameHandlesVisible(boolean flag)
Hide / Show the frame handles.
|
void |
setFrameLinesVisible(boolean flag)
Hide / Show the frame lines.
|
void |
setFrameTransparency(float transparency)
Sets the transparency of the model.
|
void |
setFrameVisible(boolean flag)
Hide / Show the whole frame object.
|
void |
setHeight(double height)
Set the height of the box.
|
void |
setInternalMouseListenerActive(boolean flag)
Set the activity flag for the internal mouse listener.
|
void |
setLineJoin(int join)
Retrieves the line join style.
|
void |
setLineWidth(float w)
Sets the line width of the stroke.
|
void |
setLower(java.awt.geom.Point2D lower)
Set the lower vector.
|
void |
setMemberName(java.lang.String memberName)
Set the info bus member name of the component.
|
void |
setMiterLimit(float limit)
Retrieves the limit of miter joins.
|
void |
setModel(P2DModelInterface newModel)
Set the model of the component.
|
void |
setModelClassId(java.lang.String modelId)
Sets the model class ID string.
|
void |
setName(java.lang.String name)
Set the name of the component.
|
void |
setOffset(double xOffset,
double yOffset)
Scale the bounding box to the given values.
|
void |
setRatioFix(boolean flag)
Fix/Release the ratio of the current value.
|
void |
setScale(double xFactor,
double yFactor)
Scale the bounding box to the given values.
|
void |
setStroke(java.awt.Stroke s)
Sets the Stroke for the Graphics2D context.
|
void |
setTransform(java.awt.geom.AffineTransform t)
Sets the transform of the appearance.
|
void |
setTransform(P2DContainerInterface container,
java.awt.geom.AffineTransform trans)
Sets the affine transformation of the component.
|
void |
setTranslation(double x,
double y)
Concatenates the current Graphics2D Transform with a translation transform.
|
void |
setTransparency(float transparency)
Sets the transparency of the component color.
|
void |
setUpper(java.awt.geom.Point2D upper)
Set the upper vector.
|
void |
setView(P2DViewInterface newView)
Set the view of the component.
|
void |
setViewClassId(java.lang.String viewId)
Sets the view class ID string.
|
void |
setVisible(boolean flag)
Sets the visibility of the component.
|
void |
setWidth(double width)
Set the width of the box.
|
void |
setXScale(double offset,
double scale)
Scale the bounding box in X direction.
|
void |
setYScale(double offset,
double scale)
Scale the bounding box in Y direction.
|
void |
suspendPropertyChangeEvents(boolean flag)
Suspend the property change events.
|
java.awt.geom.Point2D |
transformPoint(P2DContainerInterface container,
java.awt.geom.Point2D p)
Transform the point
|
java.awt.geom.Point2D |
transformPoint(java.awt.geom.Point2D p)
Transform the point
|
void |
unregister()
Unregister the counter.
|
void |
unregister(boolean flag)
Unregister the component.
|
void |
unregisterContainer(P2DContainerInterface container)
Unregister the given canvas.
|
void |
update()
Update the component.
|
void |
updateControl()
Update the control component.
|
void |
updateModel()
Update the model component.
|
void |
updateView()
Update the view component.
|
addContainerListener, addFocusListener, addListener, addMouseListener, addMouseMotionListener, addOrderListener, addP2D, addP2D, addP2D, addP2D, addP2DImpl, addRepaintListener, finalize, fireContainerAddedEvent, fireContainerRemovedEvent, fireOrderEvent, getActiveComponent, getArmedComponent, getArmedComponent, getComponentCommands, getContainerListenerArray, getFocusListenerArray, getListenerArray, getMouseListenerArray, getMouseMotionListenerArray, getOrderListenerArray, getP2D, getP2D, getP2D, getP2DComponentArray, getP2DComponents, getParentContainer, getRepaintListenerArray, getTreeLock, readConstructor, readFromDOM, readingDOM, readingDOM, removeAllP2D, removeContainerListener, removeFocusListener, removeListener, removeMouseListener, removeMouseMotionListener, removeOrderListener, removeP2D, removeP2D, removeRepaintListener, repaint, restoreLastMouseEvent, saveLastMouseEvent, setActiveComponent, setParentContainer, setSelectable, toBack, toBack, toBack, toFront, toFront, toFront, writeConstructor, writeToDOM, writeToXMLaddInfoBusPropertyListener, addInfoBusVetoableListener, getInfoBus, getInfoBusName, getMemberName, isConnected, joinInfoBus, removeInfoBusPropertyListener, removeInfoBusVetoableListener, setInfoBus, setInfoBusNameaddDataItemChangeListener, fireItemAdded, fireItemDeleted, fireItemRevoked, fireItemValueChanged, getName, getProperty, getPropertyGroup, isChangeManagerSuspended, removeDataItemChangeListener, setProperty, setPropertyGroup, suspendChangeManageraddVetoableChangeListener, addVetoableChangeListener, clearCommands, compareTo, destroyController, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getAuthor, getBuild, getCommands, getCompany, getCompanyInternetAddress, getCopyright, getCreationDate, getCreationDate, getDateFormatString, getDescription, getFwkMimeTypes, getIcon, getIcon, getIconKey, getIconKey, getPersistentObjectNames, getSupportEMail, getTitle, getTitleName, getVetoableChangeArray, getVetoableChangeListenerArray, getVetoableChangeListenerArray, removeVetoableChangeListener, removeVetoableChangeListener, setAuthor, setBuild, setCompany, setCompanyInternetAddress, setCopyright, setCreationDate, setDateFormatString, setDescription, setDescriptor, setDescriptor, setIcon, setIcon, setIconKey, setIconKey, setSource, setSupportEMail, setTitleNameaddPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeArray, getPropertyChangeListenerArray, getPropertyChangeListenerArray, isPropertyChangeEventSuspended, removePropertyChangeListener, removePropertyChangeListenergetClassName, getPresentationString, getPresentationString, getTransferData, getTransferDataFlavors, isDataFlavorSupported, lostOwnership, setClassName, setCreationDate, toStringgetNiceVersionclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitaddContainerListener, addFocusListener, addListener, addMouseListener, addMouseMotionListener, addOrderListener, addP2D, addP2D, addP2D, addP2D, addRepaintListener, fireOrderEvent, getActiveComponent, getArmedComponent, getComponentCommands, getContainerListenerArray, getFocusListenerArray, getListenerArray, getMouseListenerArray, getMouseMotionListenerArray, getOrderListenerArray, getP2D, getP2D, getP2D, getP2DComponentArray, getP2DComponents, getParentContainer, getRepaintListenerArray, getTreeLock, removeAllP2D, removeContainerListener, removeFocusListener, removeListener, removeMouseListener, removeMouseMotionListener, removeOrderListener, removeP2D, removeP2D, removeRepaintListener, repaint, restoreLastMouseEvent, saveLastMouseEvent, setActiveComponent, setParentContainer, setSelectable, toBack, toBack, toBack, toFront, toFront, toFrontgetInfoBusName, getMemberName, isConnected, setInfoBusNamefireItemAdded, fireItemDeleted, fireItemRevoked, fireItemValueChanged, getProperty, getPropertyGroup, setProperty, setPropertyGroup, suspendChangeManagergetCommands, getPersistentObjectNamesdestroyControlleraddPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeArray, getPropertyChangeListenerArray, getPropertyChangeListenerArray, isPropertyChangeEventSuspended, removePropertyChangeListener, removePropertyChangeListener, setSourceaddVetoableChangeListener, addVetoableChangeListener, getVetoableChangeArray, getVetoableChangeListenerArray, getVetoableChangeListenerArray, removeVetoableChangeListener, removeVetoableChangeListenergetAuthor, getBuild, getClassName, getCompany, getCompanyInternetAddress, getCopyright, getCreationDate, getCreationDate, getDateFormatString, getDescription, getIcon, getIcon, getIconKey, getIconKey, getName, getPresentationString, getPresentationString, getSupportEMail, getTitle, getTitleName, setAuthor, setBuild, setClassName, setCompany, setCompanyInternetAddress, setCopyright, setCreationDate, setCreationDate, setDateFormatString, setDescription, setDescriptor, setIcon, setIcon, setIconKey, setIconKey, setSupportEMail, setTitleNamegetTransferData, getTransferDataFlavors, isDataFlavorSupportedclearCommandsgetPresentationString, getPresentationStringaddInfoBusPropertyListener, addInfoBusVetoableListener, getInfoBus, removeInfoBusPropertyListener, removeInfoBusVetoableListener, setInfoBusgetCompany, readConstructor, readFromDOM, readingDOM, readingDOM, writeConstructor, writeToDOM, writeToXMLpublic static final java.lang.String version
protected static final FwkDescriptionInterface descriptor
protected P2DModelInterface model
protected P2DViewInterface view
protected P2DControlInterface control
protected int registerCounter
protected boolean mouseIsInside
public java.lang.String getVersion()
FwkInterfacegetVersion in interface FwkInterfacegetVersion in class P2DContainerpublic static FwkDescriptionInterface getDescriptor()
public boolean isMVCValid()
isMVCValid in interface P2DComponentInterfacetrue - if the structure is valid.public void initialize()
initialize in interface P2DComponentInterfacejavax.media.Behaviorpublic void setMemberName(java.lang.String memberName)
setMemberName in interface FwkInfoBusMemberInterfacesetMemberName in class FwkInfoBusMemberthe - membernamepublic void paint(java.awt.Graphics2D g2)
paint in interface P2DComponentInterfaceg2 - The graphical context.public void paint(P2DContainerInterface container, java.awt.Graphics2D g)
paint in interface P2DComponentInterfacecontainer - the toplevel container.g - The graphics context.public void unregisterContainer(P2DContainerInterface container)
unregisterContainer in interface P2DComponentModelInterfacecontainer - The top level container.public void registerContainer(P2DContainerInterface container, java.awt.Graphics2D g)
registerContainer in interface P2DComponentModelInterfacecontainer - The toplevel container.g - The context of the container.public java.awt.geom.AffineTransform getTransform(P2DContainerInterface container)
getTransform in interface P2DComponentModelInterfacecontainer - The toplevel container,public void setTransform(P2DContainerInterface container, java.awt.geom.AffineTransform trans)
setTransform in interface P2DComponentModelInterfacetrans - The transformation.container - The toplevel container.public java.awt.geom.Point2D transformPoint(P2DContainerInterface container, java.awt.geom.Point2D p)
transformPoint in interface P2DComponentModelInterfacecontainer - The toplevel container.p - The point to be transformed.public java.awt.geom.Point2D transformPoint(java.awt.geom.Point2D p)
transformPoint in interface P2DComponentModelInterfacep - The point to be transfromed.public java.awt.geom.AffineTransform getTransform()
getTransform in interface FwkAppearanceInterfacejava.awt.AffineTransformpublic void setActive(P2DContainerInterface container, boolean flag)
setActive in interface P2DComponentModelInterfacesetActive in interface P2DContainerInterfacesetActive in class P2DContainerflag - true if the component should be activated.public boolean getActive(P2DContainerInterface container)
getActive in interface P2DComponentModelInterfacegetActive in interface P2DContainerInterfacegetActive in class P2DContainerpublic boolean hasActiveChild(P2DContainerInterface container)
hasActiveChild in interface P2DComponentModelInterfacepublic boolean isInside(P2DComponentInterface child, java.awt.geom.Point2D p)
isInside in interface P2DComponentModelInterfacechild - The childp - The point in child coordinate system.public boolean isInside(P2DComponentInterface child, P2DBoundingBoxInterface box)
isInside in interface P2DComponentModelInterfacechild - The childbox - The boundingbox in child coordinate system.public boolean containsAllChildren(java.awt.geom.Point2D lower,
java.awt.geom.Point2D upper)
containsAllChildren in interface P2DComponentModelInterfacelower, - upper points defining the boundingbox that
is to be checked wether it contains all the children.public boolean containsAllChildren(P2DBoundingBoxInterface box)
containsAllChildren in interface P2DComponentModelInterfacebox - The boundingbox that is to be checked wether it contains all the children.public void register()
register in interface P2DComponentInterfaceprotected void register(java.awt.datatransfer.DataFlavor[] dataFlavors)
dataFlavors - An array of dataflavors to add the component to the infobus.public int getRegisterCounter()
getRegisterCounter in interface P2DComponentInterfacepublic void unregister()
unregister in interface P2DComponentInterfaceunregister in interface P2DContainerInterfaceA - EXTERNAL_ERROR if the counter has already reached 0.public void unregister(boolean flag)
unregister in interface P2DComponentInterfaceflag - if true the component will unregister all its children.A - P2D_COMPONENT_IS_NOT_REGISTERED if the counter has already reached 0.public void suspendPropertyChangeEvents(boolean flag)
suspendPropertyChangeEvents in interface FwkPropertyChangeInterfacesuspendPropertyChangeEvents in class FwkPropertyChangeflag - If true the property change events will be suspended.public void release()
release in interface FwkInterfacerelease in interface javax.infobus.DataItemrelease in class P2DContainerpublic void update()
update in interface P2DComponentInterfacepublic javax.infobus.InfoBusEventListener getSource()
public void updateView()
throws FwkException
updateView in interface P2DComponentInterfaceFwkException - with number P2D_CANNOT_UPDATE_VIEWpublic void setView(P2DViewInterface newView)
setView in interface P2DComponentInterfacenewView - The new view instance for the component.public P2DViewInterface getView()
getView in interface P2DComponentInterfacepublic java.lang.String getViewClassId()
getViewClassId in interface P2DComponentInterfacepublic void setViewClassId(java.lang.String viewId)
setViewClassId in interface P2DComponentInterfacemodelId - The new model id string.public P2DViewInterface loadView() throws FwkException
loadView in interface P2DComponentInterfaceFwkException - with number EXTERNAL_ERRORpublic void updateModel()
throws FwkException
updateModel in interface P2DComponentInterfaceFwkException - with number EXTERNAL_ERRORpublic void setModel(P2DModelInterface newModel)
setModel in interface P2DComponentInterfacenewModel - The new model instance for the component.public P2DModelInterface getModel()
getModel in interface P2DComponentInterfacepublic java.lang.String getModelClassId()
getModelClassId in interface P2DComponentInterfacepublic void setModelClassId(java.lang.String modelId)
setModelClassId in interface P2DComponentInterfacemodelId - The new model id string.public P2DModelInterface loadModel() throws FwkException
loadModel in interface P2DComponentInterfaceFwkException - with number EXTERNAL_ERRORpublic void updateControl()
throws FwkException
updateControl in interface P2DComponentInterfaceFwkException - with number EXTERNAL_ERRORpublic void setControl(P2DControlInterface newControl)
setControl in interface P2DComponentInterfacenewControl - The new control instance for the component.public P2DControlInterface getControl()
getControl in interface P2DComponentInterfacepublic java.lang.String getControlClassId()
getControlClassId in interface P2DComponentInterfacepublic void setControlClassId(java.lang.String controlId)
setControlClassId in interface P2DComponentInterfacemodelId - The new control id string.public P2DControlInterface loadControl() throws FwkException
loadControl in interface P2DComponentInterfaceFwkException - with number EXTERNAL_ERRORpublic void revalidate(boolean recursive)
revalidate in interface P2DComponentModelInterfacerevalidate in interface P2DContainerInterfacerevalidate in class P2DContainerpublic void configure(java.awt.Graphics2D g)
configure in interface FwkAppearanceInterfaceg - The Graphical context.public P2DBoundingBoxInterface getBoundingBox()
getBoundingBox in interface P2DComponentModelInterfacepublic void setBoundingBox(P2DBoundingBoxInterface bb)
setBoundingBox in interface P2DComponentModelInterfacebb - The new bounding box.public double getWidth()
getWidth in interface P2DComponentModelInterfacepublic double getHeight()
getHeight in interface P2DComponentModelInterfacepublic java.util.HashMap getDialogPanes()
getDialogPanes in interface P2DComponentInterfacegetDialogPanes in interface P2DComponentModelInterfacepublic FwkDialogPaneInterface getDialogPane(java.lang.String ident)
getDialogPane in interface P2DComponentInterfacegetDialogPane in interface P2DComponentModelInterfaceident - The identifier string of the requested pane.public void addDialogPane(FwkDialogPaneInterface pane, java.lang.String ident)
addDialogPane in interface P2DComponentModelInterfaceident - The identifier string of the requested pane.The - dialog pane.public void removeDialogPane(java.lang.String ident)
removeDialogPane in interface P2DComponentModelInterfaceident - The identifier string of the requested pane.public java.util.HashMap getDialogPaneValues()
getDialogPaneValues in interface P2DComponentInterfacegetDialogPaneValues in interface P2DComponentModelInterfacepublic void setDialogPaneValues(java.util.HashMap values)
setDialogPaneValues in interface P2DComponentInterfacesetDialogPaneValues in interface P2DComponentModelInterfacevalues - The hashtable with ident/value pairs.public FwkDialogPaneValueInterface getDialogPaneValue(java.lang.String ident)
getDialogPaneValue in interface P2DComponentInterfacegetDialogPaneValue in interface P2DComponentModelInterfaceident - The identifier string of the requested pane.public void resetActiveHandle()
resetActiveHandle in interface P2DComponentModelInterfacepublic int getActiveHandle()
getActiveHandle in interface P2DComponentModelInterfacepublic P2DBoundingBoxInterface calculateBoundingBoxRelativeTo(P2DBoundingBoxInterface bb, java.awt.geom.Point2D p)
calculateBoundingBoxRelativeTo in interface P2DComponentInterfacebb - The bounding box.p - The point for that the new bounding box should be calculated.public void setClip(double x,
double y,
double width,
double height)
setClip in interface FwkAppearanceInterfacex, - y, width, heigth The bounding box.public void setClip(java.awt.Shape clip)
setClip in interface FwkAppearanceInterfaceclip - The clipping shape.Shapepublic java.awt.Shape getClip()
getClip in interface FwkAppearanceInterfaceShapepublic void setStroke(java.awt.Stroke s)
setStroke in interface FwkAppearanceInterfaces - The Stroke style.Strokepublic java.awt.Stroke getStroke()
getStroke in interface FwkAppearanceInterfaceStrokepublic void setFill(java.awt.Shape s)
setFill in interface FwkAppearanceInterfaces - the filling shape.Shapepublic java.awt.Shape getFill()
getFill in interface FwkAppearanceInterfaceShapepublic void setAppearance(FwkAppearanceInterface ap)
setAppearance in interface P2DComponentModelInterfaceap - The appearance.public FwkAppearanceInterface getAppearance()
getAppearance in interface P2DComponentModelInterfacepublic P2DFrameInterface getFrame()
getFrame in interface P2DComponentModelInterfacepublic void setFrameVisible(boolean flag)
setFrameVisible in interface P2DComponentModelInterfaceflag - true if visible.public boolean getFrameVisible()
getFrameVisible in interface P2DComponentModelInterfacepublic void setFrameLinesVisible(boolean flag)
setFrameLinesVisible in interface P2DComponentModelInterfaceflag - true if visible.public boolean getFrameLinesVisible()
getFrameLinesVisible in interface P2DComponentModelInterfacepublic void setFrameHandlesVisible(boolean flag)
setFrameHandlesVisible in interface P2DComponentModelInterfaceflag - true if visble.public boolean getFrameHandlesVisible()
getFrameHandlesVisible in interface P2DComponentModelInterfacepublic boolean frameHasHandles()
frameHasHandles in interface P2DComponentModelInterfacepublic java.awt.Color getFrameColor()
getFrameColor in interface P2DComponentModelInterfaceColorpublic void setFrameColor(java.awt.Color color)
setFrameColor in interface P2DComponentModelInterfacecolor - The new color.Colorpublic void setFrameTransparency(float transparency)
setFrameTransparency in interface P2DComponentModelInterfacetrnaparency - The new transparency.javax.media.j3d.TransparencyAttributespublic float getFrameTransparency()
getFrameTransparency in interface P2DComponentModelInterfacejavax.media.j3d.TransparencyAttributespublic boolean getBackgroundVisible()
getBackgroundVisible in interface P2DComponentModelInterfacesetVisiblepublic void setBackgroundVisible(boolean flag)
setBackgroundVisible in interface P2DComponentModelInterfaceflag - The flag the decides whether the background is visble.public void setBackgroundColor(java.awt.Color color)
setBackgroundColor in interface FwkAppearanceInterfacesetBackgroundColor in interface P2DComponentModelInterfacecolor - The new background color.Colorpublic java.awt.Color getBackgroundColor()
getBackgroundColor in interface FwkAppearanceInterfacegetBackgroundColor in interface P2DComponentModelInterfaceColorpublic void setBackgroundTransparency(float transparency)
setBackgroundTransparency in interface P2DComponentModelInterfacetransparency - The new background transparency value.javax.media.j3d.TransparencyAttributespublic float getBackgroundTransparency()
getBackgroundTransparency in interface P2DComponentModelInterfacejavax.media.j3d.TransparencyAttributespublic void setLineWidth(float w)
setLineWidth in interface FwkAppearanceInterfacew - The line width.BasicStrokepublic float getLineWidth()
getLineWidth in interface FwkAppearanceInterfaceBasicStrokepublic void setDashArray(float[] arr)
setDashArray in interface FwkAppearanceInterfacearr - The segment array.BasicStrokepublic float[] getDashArray()
getDashArray in interface FwkAppearanceInterfaceBasicStrokepublic void setDashPhase(float phase)
setDashPhase in interface FwkAppearanceInterfacephase - the dash phase.BasicStrokepublic float getDashPhase()
getDashPhase in interface FwkAppearanceInterfaceBasicStrokepublic void setEndCap(int cap)
setEndCap in interface FwkAppearanceInterfaceBasicStrokepublic int getEndCap()
getEndCap in interface FwkAppearanceInterfaceBasicStrokepublic void setLineJoin(int join)
setLineJoin in interface FwkAppearanceInterfacejoin - the line join style.BasicStrokepublic int getLineJoin()
getLineJoin in interface FwkAppearanceInterfaceBasicStrokepublic void setMiterLimit(float limit)
setMiterLimit in interface FwkAppearanceInterfacelimit - the limit.BasicStrokepublic float getMiterLimit()
getMiterLimit in interface FwkAppearanceInterfaceBasicStrokepublic java.awt.Font getFont()
getFont in interface FwkAppearanceInterfaceFontpublic void setFont(java.awt.Font newFont)
setFont in interface FwkAppearanceInterfacenewFont - The new font to be used to draw the model.Fontpublic void setColor(java.awt.Color color)
throws FwkException
setColor in interface FwkAppearanceInterfacecolor - The new color of the shape.FwkExceptionColorpublic java.awt.Color getColor()
throws FwkException
getColor in interface FwkAppearanceInterfaceFwkExceptionColorpublic void setTransparency(float transparency)
setTransparency in interface FwkAppearanceInterfacetransparency - The new transparency value.public float getTransparency()
getTransparency in interface FwkAppearanceInterfacepublic boolean isVisible()
isVisible in interface FwkAppearanceInterfacepublic boolean getVisible()
getVisible in interface FwkAppearanceInterfacepublic void setVisible(boolean flag)
setVisible in interface FwkAppearanceInterfaceflag - The flag that indicates the visiblity of the component.public void propertyChange(java.beans.PropertyChangeEvent ev)
ev - The PropertyChangeEvent.public void getAllArmedComponents(P2DContainerInterface container, double x, double y, FwkArrayInterface arr)
getAllArmedComponents in interface P2DContainerInterfacegetAllArmedComponents in class P2DContainerx - The x part of the armed coordinate.y - The y part of the armed coordinate.arr - The array to collect all armed components.public void getAllArmedComponents(P2DContainerInterface container, java.awt.geom.Point2D p, FwkArrayInterface arr)
getAllArmedComponents in interface P2DContainerInterfacegetAllArmedComponents in class P2DContainerx - The x part of the armed coordinate.y - The y part of the armed coordinate.arr - The array to collect all armed components.public P2DComponentInterface getChild(java.awt.geom.Point2D p)
getChild in interface P2DComponentModelInterfaceev - The mouseEvent.public P2DComponentInterface getChild(double x, double y)
getChild in interface P2DComponentModelInterfaceev - The mouseEvent.public void processMouseEvent(java.awt.event.MouseEvent e)
processMouseEvent in interface P2DComponentInterfaceprocessMouseEvent in interface P2DContainerInterfaceprocessMouseEvent in class P2DContainere - The mouse event.Componentpublic void processFocusEvent(java.awt.event.FocusEvent e)
processFocusEvent in interface P2DComponentInterfaceprocessFocusEvent in interface P2DContainerInterfaceprocessFocusEvent in class P2DContainere - The focus event.Componentpublic FwkCommandInterface[] getCommands()
getCommands in interface FwkInstructionInterfacegetCommands in class P2DContainerpublic void addCommand(FwkCommandInterface command)
addCommand in interface FwkInstructionInterfaceaddCommand in class FwkPersistencecommand - The command to be added.public void addCommand(int index,
FwkCommandInterface command)
addCommand in interface FwkInstructionInterfaceaddCommand in class FwkPersistenceindex - The position where the command has to be inserted.command - The command to be added.public FwkCommandInterface getCommand(java.lang.String commandName)
getCommand in interface FwkInstructionInterfacegetCommand in class FwkPersistencecommandName - The name of the requested command.public void removeCommand(FwkCommandInterface command)
removeCommand in interface FwkInstructionInterfaceremoveCommand in class FwkPersistencecommand - The command to be removed.public void setCommands(FwkCommandInterface[] commands)
setCommands in interface FwkInstructionInterfacesetCommands in class FwkPersistencecommands - An array containing all sub-commands.addCommand(FwkCommandInterface command)public boolean commandsAvailable()
commandsAvailable in interface FwkInstructionInterfacecommandsAvailable in class FwkPersistencepublic void addToGroup(int index,
java.lang.String groupIdent,
java.lang.String commandName)
addToGroup in interface FwkInstructionInterfaceaddToGroup in class FwkPersistenceindex - Index where the command should be placed.groupIdent - The string identified of the group.commandName - The name of the command.public void addToGroup(java.lang.String groupIdent,
java.lang.String commandName)
addToGroup in interface FwkInstructionInterfaceaddToGroup in class FwkPersistencegroupIdent - The string identified of the group.commandName - The name of the command.public void removeFromGroup(java.lang.String groupIdent,
java.lang.String commandName)
removeFromGroup in interface FwkInstructionInterfaceremoveFromGroup in class FwkPersistencegroupIdent - The string identified of the group.commandName - The name of the command.public void deleteGroup(java.lang.String groupIdent)
deleteGroup in interface FwkInstructionInterfacedeleteGroup in class FwkPersistencegroupIdent - The string identified of the group.public FwkCommandInterface[] getGroup(java.lang.String groupIdent)
getGroup in interface FwkInstructionInterfacegetGroup in class FwkPersistencegroupIdent - The string identified of the group.public boolean groupExists(java.lang.String groupIdent)
groupExists in interface FwkInstructionInterfacegroupExists in class FwkPersistencepublic void setRatioFix(boolean flag)
setRatioFix in interface P2DComponentModelInterfaceflag - if true the ratio will be freezed.public boolean getRatioFix()
getRatioFix in interface P2DComponentModelInterfacesetRatioFix(boolean)public P2DBoundingBoxInterface closestIntersection(P2DBoundingBoxInterface[] bounds)
boundsObjects - is an array of bounds objectspublic boolean intersects(P2DBoundingBoxInterface bounds)
public boolean intersects(P2DBoundingBoxInterface[] bounds)
public boolean intersects(P2DBoundingBoxInterface[] bounds, P2DBoundingBoxInterface newBoundBox)
boundsObjects - is an array of bounds objectsnewBoundBox - is the new bounding box which is the intersection of the boundsObject and this BoundingBoxpublic boolean intersects(P2DBoundingBoxInterface bounds, P2DBoundingBoxInterface newBoundBox)
boundsObject - is another bounding objectnewBoundBox - - is the new bounding box which is the intersection of the boundsObject and this BoundingBoxpublic boolean contains(java.awt.geom.Point2D p)
public boolean contains(P2DBoundingBoxInterface box)
public void getUpper(java.awt.geom.Point2D upper)
upper - The vector that receives the upper value.public void setLower(java.awt.geom.Point2D lower)
lower - The vector that will be the new lower value.public void setUpper(java.awt.geom.Point2D upper)
upper - The vector that will be the new upper value.public double getArea()
public double getScaledWidth()
public double getScaledHeight()
public void setWidth(double width)
width - The widthpublic void setHeight(double height)
height - The heightpublic java.awt.geom.Rectangle2D getRectangle()
public void move(double xDiff,
double yDiff)
xDiff - the movement in x.yDiff - the movement in y.public boolean isInside(P2DBoundingBoxInterface box)
public void setScale(double xFactor,
double yFactor)
setScale in interface FwkAppearanceInterfacexFactor - the scaling in x.yFactor - The scaling in y.public void setOffset(double xOffset,
double yOffset)
xOffset - the offset in x.yOffset - The offset in y.public void setXScale(double offset,
double scale)
offset - the offset in x.scale - the scaling in x.public void setYScale(double offset,
double scale)
offset - the offset in y.scale - the scaling in y.public double getXFactor()
public double getYFactor()
public double getXOffset()
public double getYOffset()
public java.awt.geom.AffineTransform getInverseTransform()
getTransformpublic java.awt.geom.Point2D inverseTransformPoint(java.awt.geom.Point2D p)
p - The point to be transformed to the defined coordinate system.public void getLower(java.awt.geom.Point2D lower)
lower - The vector that receives the lower value.public java.awt.geom.Point2D getUpper()
public java.awt.geom.Point2D getLower()
public java.awt.geom.Point2D getScaledUpper()
public java.awt.geom.Point2D getScaledLower()
public void getScaledUpper(java.awt.geom.Point2D upper)
The - upper value.public void getScaledLower(java.awt.geom.Point2D lower)
public void setActiveHandle(int index)
setActiveHandle in interface P2DComponentModelInterfaceindex - The index of the active handle.
It returns -1, if no handle could be activated.public java.awt.BasicStroke scaleStroke(java.awt.geom.AffineTransform at)
scaleStroke in interface FwkAppearanceInterfacescaleStroke in interface P2DComponentModelInterfaceat - the transformation to scale the stroke.public java.awt.BasicStroke scaleStroke(java.awt.geom.AffineTransform at,
float lw)
scaleStroke in interface FwkAppearanceInterfacescaleStroke in interface P2DComponentModelInterfaceat - the transformation to scale the stroke.lw - The line width to be scaled.public void setTransform(java.awt.geom.AffineTransform t)
setTransform in interface FwkAppearanceInterfacet - the affine transformation.java.awt.AffineTransformpublic void setTranslation(double x,
double y)
setTranslation in interface FwkAppearanceInterfacex - Translation in xy - Translation in yGraphics2Dpublic java.awt.geom.Point2D getTranslation()
This method has no effect. Use the boundingbox and the scaling methods to configurate the transformation.
getTranslation in interface FwkAppearanceInterfacesetTranlation(double, double)public java.util.HashMap getContainerMap()
getContainerMap in interface P2DComponentModelInterfacepublic void setContainerMap(java.util.HashMap map)
setContainerMap in interface P2DComponentModelInterfacemap - the new container map.public P2DBackgroundInterface getBackground()
getBackground in interface P2DComponentModelInterfacepublic boolean isInternalMouseListenerActive()
isInternalMouseListenerActive in interface P2DComponentInterfacepublic void setInternalMouseListenerActive(boolean flag)
setInternalMouseListenerActive in interface P2DComponentInterfaceflag - true if the internal mouse listener should be active.public boolean getInternalMouseListenerActive()
getInternalMouseListenerActive in interface P2DComponentInterfacepublic boolean getSelectable()
getSelectable in interface P2DContainerInterfacegetSelectable in class P2DContainerpublic void mouseClicked(java.awt.geom.Point2D p,
java.awt.event.MouseEvent e)
mouseClicked in interface P2DComponentControlInterfacecomponent - The componentp - The coordinates in the component coordinate system.e - The mouse event.public void mousePressed(java.awt.geom.Point2D p,
java.awt.event.MouseEvent e)
mousePressed in interface P2DComponentControlInterfacecomponent - The componentp - The coordinates in the component coordinate system.e - The mouse event.public void mouseReleased(java.awt.geom.Point2D p,
java.awt.event.MouseEvent e)
mouseReleased in interface P2DComponentControlInterfacecomponent - The componentp - The coordinates in the component coordinate system.e - The mouse event.public void mouseEntered(java.awt.geom.Point2D p,
java.awt.event.MouseEvent e)
mouseEntered in interface P2DComponentControlInterfacecomponent - The componentp - The coordinates in the component coordinate system.e - The mouse event.public void mouseExited(java.awt.geom.Point2D p,
java.awt.event.MouseEvent e)
mouseExited in interface P2DComponentControlInterfacecomponent - The componentp - The coordinates in the component coordinate system.e - The mouse event.public void mouseMoved(java.awt.geom.Point2D p,
java.awt.event.MouseEvent e)
mouseMoved in interface P2DComponentControlInterfacecomponent - The componentp - The coordinates in the component coordinate system.e - The mouse event.public void mouseDragged(java.awt.geom.Point2D p,
java.awt.event.MouseEvent e)
mouseDragged in interface P2DComponentControlInterfacecomponent - The componentp - The coordinates in the component coordinate system.e - The mouse event.public void focusGained(java.awt.geom.Point2D p,
java.awt.event.FocusEvent e)
focusGained in interface P2DComponentControlInterfacecomponent - The componentp - The coordinates in the component coordinate system.e - The focus event.public void focusLost(java.awt.geom.Point2D p,
java.awt.event.FocusEvent e)
focusLost in interface P2DComponentControlInterfacecomponent - The componentp - The coordinates in the component coordinate system.e - The focus event.public java.lang.String askForName(java.awt.Container parent,
java.lang.String title,
java.lang.String defaultValue)
askForName in interface P2DComponentInterfaceparent - This parameter is used as parent for the dialog box.public boolean openPopupMenu(java.awt.event.MouseEvent ev)
openPopupMenu in interface P2DContainerInterfaceopenPopupMenu in class P2DContainerev - The mouse event.true - if operation was successful.public java.lang.String getShortName()
getShortName in interface P2DContainerInterfacegetShortName in class P2DContainerpublic void setName(java.lang.String name)
setName in interface FwkDescriptionInterfacesetName in class FwkInfoBusMembername - The new name.FwkPersistence.getName()public void saveLocalMousePoint(java.awt.geom.Point2D p)
saveLocalMousePoint in interface P2DContainerInterfacep - The local mouse point to be saved.public java.awt.geom.Point2D restoreLocalMousePoint()
restoreLocalMousePoint in interface P2DContainerInterfacepublic boolean boundsAcceptable(java.awt.geom.Point2D lower,
java.awt.geom.Point2D upper)
boundsAcceptable in interface P2DComponentModelInterfaceupper - The upper point of the bounds to be checked.lower - The lower point of the bounds to be checked.public void setDecorated(boolean flag)
setDecorated in interface P2DComponentModelInterfaceflag - true if the component should be decorated.public boolean getDecorated()
getDecorated in interface P2DComponentModelInterface