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, selectable
infoBusMemberSupport
changeManager, properties, suspendChangeManager
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, ICON, iconCount, iconKey, internetAddress, name, titleName
CONTROL_KEY, MODEL_KEY, VIEW_KEY
INFOBUS_SOURCE
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
DASH_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, writeToXML
addInfoBusPropertyListener, addInfoBusVetoableListener, getInfoBus, getInfoBusName, getMemberName, isConnected, joinInfoBus, removeInfoBusPropertyListener, removeInfoBusVetoableListener, setInfoBus, setInfoBusName
addDataItemChangeListener, fireItemAdded, fireItemDeleted, fireItemRevoked, fireItemValueChanged, getName, getProperty, getPropertyGroup, isChangeManagerSuspended, removeDataItemChangeListener, setProperty, setPropertyGroup, suspendChangeManager
addVetoableChangeListener, 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, setTitleName
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeArray, getPropertyChangeListenerArray, getPropertyChangeListenerArray, isPropertyChangeEventSuspended, removePropertyChangeListener, removePropertyChangeListener
getClassName, getPresentationString, getPresentationString, getTransferData, getTransferDataFlavors, isDataFlavorSupported, lostOwnership, setClassName, setCreationDate, toString
getNiceVersion
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
addContainerListener, 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, toFront
getInfoBusName, getMemberName, isConnected, setInfoBusName
fireItemAdded, fireItemDeleted, fireItemRevoked, fireItemValueChanged, getProperty, getPropertyGroup, setProperty, setPropertyGroup, suspendChangeManager
getCommands, getPersistentObjectNames
destroyController
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeArray, getPropertyChangeListenerArray, getPropertyChangeListenerArray, isPropertyChangeEventSuspended, removePropertyChangeListener, removePropertyChangeListener, setSource
addVetoableChangeListener, addVetoableChangeListener, getVetoableChangeArray, getVetoableChangeListenerArray, getVetoableChangeListenerArray, removeVetoableChangeListener, removeVetoableChangeListener
getAuthor, 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, setTitleName
getTransferData, getTransferDataFlavors, isDataFlavorSupported
clearCommands
getPresentationString, getPresentationString
addInfoBusPropertyListener, addInfoBusVetoableListener, getInfoBus, removeInfoBusPropertyListener, removeInfoBusVetoableListener, setInfoBus
getCompany, readConstructor, readFromDOM, readingDOM, readingDOM, writeConstructor, writeToDOM, writeToXML
public 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()
FwkInterface
getVersion
in interface FwkInterface
getVersion
in class P2DContainer
public static FwkDescriptionInterface getDescriptor()
public boolean isMVCValid()
isMVCValid
in interface P2DComponentInterface
true
- if the structure is valid.public void initialize()
initialize
in interface P2DComponentInterface
javax.media.Behavior
public void setMemberName(java.lang.String memberName)
setMemberName
in interface FwkInfoBusMemberInterface
setMemberName
in class FwkInfoBusMember
the
- membernamepublic void paint(java.awt.Graphics2D g2)
paint
in interface P2DComponentInterface
g2
- The graphical context.public void paint(P2DContainerInterface container, java.awt.Graphics2D g)
paint
in interface P2DComponentInterface
container
- the toplevel container.g
- The graphics context.public void unregisterContainer(P2DContainerInterface container)
unregisterContainer
in interface P2DComponentModelInterface
container
- The top level container.public void registerContainer(P2DContainerInterface container, java.awt.Graphics2D g)
registerContainer
in interface P2DComponentModelInterface
container
- The toplevel container.g
- The context of the container.public java.awt.geom.AffineTransform getTransform(P2DContainerInterface container)
getTransform
in interface P2DComponentModelInterface
container
- The toplevel container,public void setTransform(P2DContainerInterface container, java.awt.geom.AffineTransform trans)
setTransform
in interface P2DComponentModelInterface
trans
- The transformation.container
- The toplevel container.public java.awt.geom.Point2D transformPoint(P2DContainerInterface container, java.awt.geom.Point2D p)
transformPoint
in interface P2DComponentModelInterface
container
- The toplevel container.p
- The point to be transformed.public java.awt.geom.Point2D transformPoint(java.awt.geom.Point2D p)
transformPoint
in interface P2DComponentModelInterface
p
- The point to be transfromed.public java.awt.geom.AffineTransform getTransform()
getTransform
in interface FwkAppearanceInterface
java.awt.AffineTransform
public void setActive(P2DContainerInterface container, boolean flag)
setActive
in interface P2DComponentModelInterface
setActive
in interface P2DContainerInterface
setActive
in class P2DContainer
flag
- true if the component should be activated.public boolean getActive(P2DContainerInterface container)
getActive
in interface P2DComponentModelInterface
getActive
in interface P2DContainerInterface
getActive
in class P2DContainer
public boolean hasActiveChild(P2DContainerInterface container)
hasActiveChild
in interface P2DComponentModelInterface
public boolean isInside(P2DComponentInterface child, java.awt.geom.Point2D p)
isInside
in interface P2DComponentModelInterface
child
- The childp
- The point in child coordinate system.public boolean isInside(P2DComponentInterface child, P2DBoundingBoxInterface box)
isInside
in interface P2DComponentModelInterface
child
- The childbox
- The boundingbox in child coordinate system.public boolean containsAllChildren(java.awt.geom.Point2D lower, java.awt.geom.Point2D upper)
containsAllChildren
in interface P2DComponentModelInterface
lower,
- upper points defining the boundingbox that
is to be checked wether it contains all the children.public boolean containsAllChildren(P2DBoundingBoxInterface box)
containsAllChildren
in interface P2DComponentModelInterface
box
- The boundingbox that is to be checked wether it contains all the children.public void register()
register
in interface P2DComponentInterface
protected 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 P2DComponentInterface
public void unregister()
unregister
in interface P2DComponentInterface
unregister
in interface P2DContainerInterface
A
- EXTERNAL_ERROR if the counter has already reached 0.public void unregister(boolean flag)
unregister
in interface P2DComponentInterface
flag
- 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 FwkPropertyChangeInterface
suspendPropertyChangeEvents
in class FwkPropertyChange
flag
- If true the property change events will be suspended.public void release()
release
in interface FwkInterface
release
in interface javax.infobus.DataItem
release
in class P2DContainer
public void update()
update
in interface P2DComponentInterface
public javax.infobus.InfoBusEventListener getSource()
public void updateView() throws FwkException
updateView
in interface P2DComponentInterface
FwkException
- with number P2D_CANNOT_UPDATE_VIEWpublic void setView(P2DViewInterface newView)
setView
in interface P2DComponentInterface
newView
- The new view instance for the component.public P2DViewInterface getView()
getView
in interface P2DComponentInterface
public java.lang.String getViewClassId()
getViewClassId
in interface P2DComponentInterface
public void setViewClassId(java.lang.String viewId)
setViewClassId
in interface P2DComponentInterface
modelId
- The new model id string.public P2DViewInterface loadView() throws FwkException
loadView
in interface P2DComponentInterface
FwkException
- with number EXTERNAL_ERRORpublic void updateModel() throws FwkException
updateModel
in interface P2DComponentInterface
FwkException
- with number EXTERNAL_ERRORpublic void setModel(P2DModelInterface newModel)
setModel
in interface P2DComponentInterface
newModel
- The new model instance for the component.public P2DModelInterface getModel()
getModel
in interface P2DComponentInterface
public java.lang.String getModelClassId()
getModelClassId
in interface P2DComponentInterface
public void setModelClassId(java.lang.String modelId)
setModelClassId
in interface P2DComponentInterface
modelId
- The new model id string.public P2DModelInterface loadModel() throws FwkException
loadModel
in interface P2DComponentInterface
FwkException
- with number EXTERNAL_ERRORpublic void updateControl() throws FwkException
updateControl
in interface P2DComponentInterface
FwkException
- with number EXTERNAL_ERRORpublic void setControl(P2DControlInterface newControl)
setControl
in interface P2DComponentInterface
newControl
- The new control instance for the component.public P2DControlInterface getControl()
getControl
in interface P2DComponentInterface
public java.lang.String getControlClassId()
getControlClassId
in interface P2DComponentInterface
public void setControlClassId(java.lang.String controlId)
setControlClassId
in interface P2DComponentInterface
modelId
- The new control id string.public P2DControlInterface loadControl() throws FwkException
loadControl
in interface P2DComponentInterface
FwkException
- with number EXTERNAL_ERRORpublic void revalidate(boolean recursive)
revalidate
in interface P2DComponentModelInterface
revalidate
in interface P2DContainerInterface
revalidate
in class P2DContainer
public void configure(java.awt.Graphics2D g)
configure
in interface FwkAppearanceInterface
g
- The Graphical context.public P2DBoundingBoxInterface getBoundingBox()
getBoundingBox
in interface P2DComponentModelInterface
public void setBoundingBox(P2DBoundingBoxInterface bb)
setBoundingBox
in interface P2DComponentModelInterface
bb
- The new bounding box.public double getWidth()
getWidth
in interface P2DComponentModelInterface
public double getHeight()
getHeight
in interface P2DComponentModelInterface
public java.util.HashMap getDialogPanes()
getDialogPanes
in interface P2DComponentInterface
getDialogPanes
in interface P2DComponentModelInterface
public FwkDialogPaneInterface getDialogPane(java.lang.String ident)
getDialogPane
in interface P2DComponentInterface
getDialogPane
in interface P2DComponentModelInterface
ident
- The identifier string of the requested pane.public void addDialogPane(FwkDialogPaneInterface pane, java.lang.String ident)
addDialogPane
in interface P2DComponentModelInterface
ident
- The identifier string of the requested pane.The
- dialog pane.public void removeDialogPane(java.lang.String ident)
removeDialogPane
in interface P2DComponentModelInterface
ident
- The identifier string of the requested pane.public java.util.HashMap getDialogPaneValues()
getDialogPaneValues
in interface P2DComponentInterface
getDialogPaneValues
in interface P2DComponentModelInterface
public void setDialogPaneValues(java.util.HashMap values)
setDialogPaneValues
in interface P2DComponentInterface
setDialogPaneValues
in interface P2DComponentModelInterface
values
- The hashtable with ident/value pairs.public FwkDialogPaneValueInterface getDialogPaneValue(java.lang.String ident)
getDialogPaneValue
in interface P2DComponentInterface
getDialogPaneValue
in interface P2DComponentModelInterface
ident
- The identifier string of the requested pane.public void resetActiveHandle()
resetActiveHandle
in interface P2DComponentModelInterface
public int getActiveHandle()
getActiveHandle
in interface P2DComponentModelInterface
public P2DBoundingBoxInterface calculateBoundingBoxRelativeTo(P2DBoundingBoxInterface bb, java.awt.geom.Point2D p)
calculateBoundingBoxRelativeTo
in interface P2DComponentInterface
bb
- 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 FwkAppearanceInterface
x,
- y, width, heigth The bounding box.public void setClip(java.awt.Shape clip)
setClip
in interface FwkAppearanceInterface
clip
- The clipping shape.Shape
public java.awt.Shape getClip()
getClip
in interface FwkAppearanceInterface
Shape
public void setStroke(java.awt.Stroke s)
setStroke
in interface FwkAppearanceInterface
s
- The Stroke style.Stroke
public java.awt.Stroke getStroke()
getStroke
in interface FwkAppearanceInterface
Stroke
public void setFill(java.awt.Shape s)
setFill
in interface FwkAppearanceInterface
s
- the filling shape.Shape
public java.awt.Shape getFill()
getFill
in interface FwkAppearanceInterface
Shape
public void setAppearance(FwkAppearanceInterface ap)
setAppearance
in interface P2DComponentModelInterface
ap
- The appearance.public FwkAppearanceInterface getAppearance()
getAppearance
in interface P2DComponentModelInterface
public P2DFrameInterface getFrame()
getFrame
in interface P2DComponentModelInterface
public void setFrameVisible(boolean flag)
setFrameVisible
in interface P2DComponentModelInterface
flag
- true if visible.public boolean getFrameVisible()
getFrameVisible
in interface P2DComponentModelInterface
public void setFrameLinesVisible(boolean flag)
setFrameLinesVisible
in interface P2DComponentModelInterface
flag
- true if visible.public boolean getFrameLinesVisible()
getFrameLinesVisible
in interface P2DComponentModelInterface
public void setFrameHandlesVisible(boolean flag)
setFrameHandlesVisible
in interface P2DComponentModelInterface
flag
- true if visble.public boolean getFrameHandlesVisible()
getFrameHandlesVisible
in interface P2DComponentModelInterface
public boolean frameHasHandles()
frameHasHandles
in interface P2DComponentModelInterface
public java.awt.Color getFrameColor()
getFrameColor
in interface P2DComponentModelInterface
Color
public void setFrameColor(java.awt.Color color)
setFrameColor
in interface P2DComponentModelInterface
color
- The new color.Color
public void setFrameTransparency(float transparency)
setFrameTransparency
in interface P2DComponentModelInterface
trnaparency
- The new transparency.javax.media.j3d.TransparencyAttributes
public float getFrameTransparency()
getFrameTransparency
in interface P2DComponentModelInterface
javax.media.j3d.TransparencyAttributes
public boolean getBackgroundVisible()
getBackgroundVisible
in interface P2DComponentModelInterface
setVisible
public void setBackgroundVisible(boolean flag)
setBackgroundVisible
in interface P2DComponentModelInterface
flag
- The flag the decides whether the background is visble.public void setBackgroundColor(java.awt.Color color)
setBackgroundColor
in interface FwkAppearanceInterface
setBackgroundColor
in interface P2DComponentModelInterface
color
- The new background color.Color
public java.awt.Color getBackgroundColor()
getBackgroundColor
in interface FwkAppearanceInterface
getBackgroundColor
in interface P2DComponentModelInterface
Color
public void setBackgroundTransparency(float transparency)
setBackgroundTransparency
in interface P2DComponentModelInterface
transparency
- The new background transparency value.javax.media.j3d.TransparencyAttributes
public float getBackgroundTransparency()
getBackgroundTransparency
in interface P2DComponentModelInterface
javax.media.j3d.TransparencyAttributes
public void setLineWidth(float w)
setLineWidth
in interface FwkAppearanceInterface
w
- The line width.BasicStroke
public float getLineWidth()
getLineWidth
in interface FwkAppearanceInterface
BasicStroke
public void setDashArray(float[] arr)
setDashArray
in interface FwkAppearanceInterface
arr
- The segment array.BasicStroke
public float[] getDashArray()
getDashArray
in interface FwkAppearanceInterface
BasicStroke
public void setDashPhase(float phase)
setDashPhase
in interface FwkAppearanceInterface
phase
- the dash phase.BasicStroke
public float getDashPhase()
getDashPhase
in interface FwkAppearanceInterface
BasicStroke
public void setEndCap(int cap)
setEndCap
in interface FwkAppearanceInterface
BasicStroke
public int getEndCap()
getEndCap
in interface FwkAppearanceInterface
BasicStroke
public void setLineJoin(int join)
setLineJoin
in interface FwkAppearanceInterface
join
- the line join style.BasicStroke
public int getLineJoin()
getLineJoin
in interface FwkAppearanceInterface
BasicStroke
public void setMiterLimit(float limit)
setMiterLimit
in interface FwkAppearanceInterface
limit
- the limit.BasicStroke
public float getMiterLimit()
getMiterLimit
in interface FwkAppearanceInterface
BasicStroke
public java.awt.Font getFont()
getFont
in interface FwkAppearanceInterface
Font
public void setFont(java.awt.Font newFont)
setFont
in interface FwkAppearanceInterface
newFont
- The new font to be used to draw the model.Font
public void setColor(java.awt.Color color) throws FwkException
setColor
in interface FwkAppearanceInterface
color
- The new color of the shape.FwkException
Color
public java.awt.Color getColor() throws FwkException
getColor
in interface FwkAppearanceInterface
FwkException
Color
public void setTransparency(float transparency)
setTransparency
in interface FwkAppearanceInterface
transparency
- The new transparency value.public float getTransparency()
getTransparency
in interface FwkAppearanceInterface
public boolean isVisible()
isVisible
in interface FwkAppearanceInterface
public boolean getVisible()
getVisible
in interface FwkAppearanceInterface
public void setVisible(boolean flag)
setVisible
in interface FwkAppearanceInterface
flag
- 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 P2DContainerInterface
getAllArmedComponents
in class P2DContainer
x
- 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 P2DContainerInterface
getAllArmedComponents
in class P2DContainer
x
- 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 P2DComponentModelInterface
ev
- The mouseEvent.public P2DComponentInterface getChild(double x, double y)
getChild
in interface P2DComponentModelInterface
ev
- The mouseEvent.public void processMouseEvent(java.awt.event.MouseEvent e)
processMouseEvent
in interface P2DComponentInterface
processMouseEvent
in interface P2DContainerInterface
processMouseEvent
in class P2DContainer
e
- The mouse event.Component
public void processFocusEvent(java.awt.event.FocusEvent e)
processFocusEvent
in interface P2DComponentInterface
processFocusEvent
in interface P2DContainerInterface
processFocusEvent
in class P2DContainer
e
- The focus event.Component
public FwkCommandInterface[] getCommands()
getCommands
in interface FwkInstructionInterface
getCommands
in class P2DContainer
public void addCommand(FwkCommandInterface command)
addCommand
in interface FwkInstructionInterface
addCommand
in class FwkPersistence
command
- The command to be added.public void addCommand(int index, FwkCommandInterface command)
addCommand
in interface FwkInstructionInterface
addCommand
in class FwkPersistence
index
- 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 FwkInstructionInterface
getCommand
in class FwkPersistence
commandName
- The name of the requested command.public void removeCommand(FwkCommandInterface command)
removeCommand
in interface FwkInstructionInterface
removeCommand
in class FwkPersistence
command
- The command to be removed.public void setCommands(FwkCommandInterface[] commands)
setCommands
in interface FwkInstructionInterface
setCommands
in class FwkPersistence
commands
- An array containing all sub-commands.addCommand(FwkCommandInterface command)
public boolean commandsAvailable()
commandsAvailable
in interface FwkInstructionInterface
commandsAvailable
in class FwkPersistence
public void addToGroup(int index, java.lang.String groupIdent, java.lang.String commandName)
addToGroup
in interface FwkInstructionInterface
addToGroup
in class FwkPersistence
index
- 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 FwkInstructionInterface
addToGroup
in class FwkPersistence
groupIdent
- 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 FwkInstructionInterface
removeFromGroup
in class FwkPersistence
groupIdent
- The string identified of the group.commandName
- The name of the command.public void deleteGroup(java.lang.String groupIdent)
deleteGroup
in interface FwkInstructionInterface
deleteGroup
in class FwkPersistence
groupIdent
- The string identified of the group.public FwkCommandInterface[] getGroup(java.lang.String groupIdent)
getGroup
in interface FwkInstructionInterface
getGroup
in class FwkPersistence
groupIdent
- The string identified of the group.public boolean groupExists(java.lang.String groupIdent)
groupExists
in interface FwkInstructionInterface
groupExists
in class FwkPersistence
public void setRatioFix(boolean flag)
setRatioFix
in interface P2DComponentModelInterface
flag
- if true the ratio will be freezed.public boolean getRatioFix()
getRatioFix
in interface P2DComponentModelInterface
setRatioFix(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 FwkAppearanceInterface
xFactor
- 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()
getTransform
public 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 P2DComponentModelInterface
index
- 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 FwkAppearanceInterface
scaleStroke
in interface P2DComponentModelInterface
at
- the transformation to scale the stroke.public java.awt.BasicStroke scaleStroke(java.awt.geom.AffineTransform at, float lw)
scaleStroke
in interface FwkAppearanceInterface
scaleStroke
in interface P2DComponentModelInterface
at
- the transformation to scale the stroke.lw
- The line width to be scaled.public void setTransform(java.awt.geom.AffineTransform t)
setTransform
in interface FwkAppearanceInterface
t
- the affine transformation.java.awt.AffineTransform
public void setTranslation(double x, double y)
setTranslation
in interface FwkAppearanceInterface
x
- Translation in xy
- Translation in yGraphics2D
public java.awt.geom.Point2D getTranslation()
This method has no effect. Use the boundingbox and the scaling methods to configurate the transformation.
getTranslation
in interface FwkAppearanceInterface
setTranlation(double, double)
public java.util.HashMap getContainerMap()
getContainerMap
in interface P2DComponentModelInterface
public void setContainerMap(java.util.HashMap map)
setContainerMap
in interface P2DComponentModelInterface
map
- the new container map.public P2DBackgroundInterface getBackground()
getBackground
in interface P2DComponentModelInterface
public boolean isInternalMouseListenerActive()
isInternalMouseListenerActive
in interface P2DComponentInterface
public void setInternalMouseListenerActive(boolean flag)
setInternalMouseListenerActive
in interface P2DComponentInterface
flag
- true if the internal mouse listener should be active.public boolean getInternalMouseListenerActive()
getInternalMouseListenerActive
in interface P2DComponentInterface
public boolean getSelectable()
getSelectable
in interface P2DContainerInterface
getSelectable
in class P2DContainer
public void mouseClicked(java.awt.geom.Point2D p, java.awt.event.MouseEvent e)
mouseClicked
in interface P2DComponentControlInterface
component
- 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 P2DComponentControlInterface
component
- 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 P2DComponentControlInterface
component
- 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 P2DComponentControlInterface
component
- 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 P2DComponentControlInterface
component
- 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 P2DComponentControlInterface
component
- 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 P2DComponentControlInterface
component
- 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 P2DComponentControlInterface
component
- 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 P2DComponentControlInterface
component
- 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 P2DComponentInterface
parent
- This parameter is used as parent for the dialog box.public boolean openPopupMenu(java.awt.event.MouseEvent ev)
openPopupMenu
in interface P2DContainerInterface
openPopupMenu
in class P2DContainer
ev
- The mouse event.true
- if operation was successful.public java.lang.String getShortName()
getShortName
in interface P2DContainerInterface
getShortName
in class P2DContainer
public void setName(java.lang.String name)
setName
in interface FwkDescriptionInterface
setName
in class FwkInfoBusMember
name
- The new name.FwkPersistence.getName()
public void saveLocalMousePoint(java.awt.geom.Point2D p)
saveLocalMousePoint
in interface P2DContainerInterface
p
- The local mouse point to be saved.public java.awt.geom.Point2D restoreLocalMousePoint()
restoreLocalMousePoint
in interface P2DContainerInterface
public boolean boundsAcceptable(java.awt.geom.Point2D lower, java.awt.geom.Point2D upper)
boundsAcceptable
in interface P2DComponentModelInterface
upper
- 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 P2DComponentModelInterface
flag
- true if the component should be decorated.public boolean getDecorated()
getDecorated
in interface P2DComponentModelInterface