public interface P2DModelInterface extends FwkInfoBusMemberInterface
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
Modifier and Type | Method and Description |
---|---|
void |
addDialogPane(P2DComponentInterface component,
FwkDialogPaneInterface pane,
java.lang.String ident)
Add a spezial dialog pane with the given identifier.
|
boolean |
boundsAcceptable(P2DComponentInterface component,
java.awt.geom.Point2D lower,
java.awt.geom.Point2D upper)
Checks the given bounds to be acceptable bounds.
|
P2DBoundingBoxInterface |
calculateBoundingBoxRelativeTo(P2DComponentInterface component,
P2DBoundingBoxInterface bb,
java.awt.geom.Point2D p)
Calculate a new bounding box relative to the given point.
|
void |
configure(P2DComponentInterface component,
java.awt.Graphics2D g)
Configurate the graphical context with the settings of the appearance.
|
boolean |
containsAllChildren(P2DComponentInterface component,
P2DBoundingBoxInterface box)
Contains all children.
|
boolean |
containsAllChildren(P2DComponentInterface component,
java.awt.geom.Point2D lower,
java.awt.geom.Point2D upper)
Contains all children.
|
boolean |
frameHasHandles(P2DComponentInterface component)
Inquire whether the frame has handles.
|
boolean |
getActive(P2DComponentInterface component,
P2DContainerInterface container)
Get the active flag.
|
int |
getActiveHandle(P2DComponentInterface component)
Get the index of the active handle.
|
void |
getAllArmedComponents(P2DComponentInterface component,
P2DContainerInterface container,
double x,
double y,
FwkArrayInterface arr)
return all armed component.
|
void |
getAllArmedComponents(P2DComponentInterface component,
P2DContainerInterface container,
java.awt.geom.Point2D p,
FwkArrayInterface arr)
return all armed component.
|
FwkAppearanceInterface |
getAppearance(P2DComponentInterface component)
Retrieves the appearance of the view.
|
P2DBackgroundInterface |
getBackground(P2DComponentInterface component)
Get the component's background.
|
java.awt.Color |
getBackgroundColor(P2DComponentInterface component)
Gets the background color.
|
float |
getBackgroundTransparency(P2DComponentInterface component)
Gets the transparency of the background.
|
boolean |
getBackgroundVisible(P2DComponentInterface component)
Inquire whether the background is visible.
|
P2DBoundingBoxInterface |
getBoundingBox(P2DComponentInterface component)
Retrieve the bounding box the component.
|
P2DComponentInterface |
getChild(P2DComponentInterface component,
double x,
double y)
Return the component that is armed from the given point.
|
P2DComponentInterface |
getChild(P2DComponentInterface component,
java.awt.geom.Point2D p)
Return the component that is armed from the given point.
|
FwkCommandInterface[] |
getCommands(P2DComponentInterface component)
Get the command belongs to that component.
|
java.util.HashMap |
getContainerMap(P2DComponentInterface component)
Returns the container map.
|
boolean |
getDecorated(P2DComponentInterface component)
Get the boolean fo rthe decoration.
|
FwkDialogPaneInterface |
getDialogPane(P2DComponentInterface component,
java.lang.String ident)
Retrieves a spezial dialog pane for the given identifier.
|
java.util.HashMap |
getDialogPanes(P2DComponentInterface component)
Retrieves the property dialog panes.
|
FwkDialogPaneValueInterface |
getDialogPaneValue(P2DComponentInterface component,
java.lang.String ident)
Retrieves a spezial dialog pane value for the given identifier.
|
java.util.HashMap |
getDialogPaneValues(P2DComponentInterface component)
Retrieves the property dialog pane values.
|
P2DFrameInterface |
getFrame(P2DComponentInterface component)
Get the frame of the component.
|
java.awt.Color |
getFrameColor(P2DComponentInterface component)
Gets the frame color.
|
boolean |
getFrameHandlesVisible(P2DComponentInterface component)
Inquire whether the frame handles are visible.
|
boolean |
getFrameLinesVisible(P2DComponentInterface component)
Inquire whether the frame lines are visible.
|
float |
getFrameTransparency(P2DComponentInterface component)
Gets the transparency of the frame.
|
boolean |
getFrameVisible(P2DComponentInterface component)
Inquire whether the frame is visible.
|
double |
getHeight(P2DComponentInterface component)
Retrieves the height of the box.
|
boolean |
getRatioFix(P2DComponentInterface component)
Get the current ratio flag.
|
java.lang.String |
getShortName(P2DComponentInterface component)
Get the short name of the container.
|
java.awt.geom.AffineTransform |
getTransform(P2DComponentInterface component,
P2DContainerInterface container)
Restores the transformation that belongs to the given toplevel container.
|
double |
getWidth(P2DComponentInterface component)
Retrieves the width of the box.
|
boolean |
hasActiveChild(P2DComponentInterface component,
P2DContainerInterface container)
Returns a boolean whether the component has an active child in the next level.
|
void |
initialize()
Initialize the object.
|
void |
install(P2DComponentInterface component)
Install the model for the given component.
|
boolean |
isInside(P2DComponentInterface component,
P2DComponentInterface child,
P2DBoundingBoxInterface box)
Check the specified box in child coodinates.
|
boolean |
isInside(P2DComponentInterface component,
P2DComponentInterface child,
java.awt.geom.Point2D p)
Check the point specified in child coodinates.
|
boolean |
isInternalMouseListenerActive(P2DComponentInterface child)
Get a boolean whether the internal mouse listener is active.
|
void |
registerContainer(P2DComponentInterface component,
P2DContainerInterface container,
java.awt.Graphics2D g)
Register the given container context.
|
void |
removeDialogPane(P2DComponentInterface component,
java.lang.String ident)
remove a spezial dialog pane with the given identifier.
|
void |
resetActiveHandle(P2DComponentInterface component)
Reset the active handle.
|
void |
revalidate(P2DComponentInterface component,
boolean recusive)
Request a newly calculation of the component.
|
java.awt.BasicStroke |
scaleStroke(P2DComponentInterface component,
java.awt.geom.AffineTransform at)
Scale the line with.
|
java.awt.BasicStroke |
scaleStroke(P2DComponentInterface component,
java.awt.geom.AffineTransform at,
float lw)
Scale the line with.
|
void |
setActive(P2DComponentInterface component,
P2DContainerInterface container,
boolean flag)
Activate the component.
|
void |
setActiveHandle(P2DComponentInterface component,
int index)
Sets the armed handle.
|
void |
setAppearance(P2DComponentInterface component,
FwkAppearanceInterface ap)
Sets the appreance of the component.
|
void |
setBackgroundColor(P2DComponentInterface component,
java.awt.Color color)
Sets the background color.
|
void |
setBackgroundTransparency(P2DComponentInterface component,
float transparency)
Sets the transparency of the background.
|
void |
setBackgroundVisible(P2DComponentInterface component,
boolean flag)
Hide or show the background.
|
void |
setBoundingBox(P2DComponentInterface component,
P2DBoundingBoxInterface bb)
Set the the bounding box of the component.
|
void |
setContainerMap(P2DComponentInterface component,
java.util.HashMap map)
Sets the container map.
|
void |
setDecorated(P2DComponentInterface component,
boolean flag)
Set the boolean fo rthe decoration.
|
void |
setDialogPaneValues(P2DComponentInterface component,
java.util.HashMap values)
Sets the property dialog pane values for the component.
|
void |
setFrameColor(P2DComponentInterface component,
java.awt.Color color)
Sets the frame color.
|
void |
setFrameHandlesVisible(P2DComponentInterface component,
boolean flag)
Hide or show the frame handles.
|
void |
setFrameLinesVisible(P2DComponentInterface component,
boolean flag)
Hide or show the frame lines.
|
void |
setFrameTransparency(P2DComponentInterface component,
float transparency)
Sets the transparency of the frame.
|
void |
setFrameVisible(P2DComponentInterface component,
boolean flag)
Hide or show the whole frame object.
|
void |
setInternalMouseListenerActive(P2DComponentInterface child,
boolean flag)
Set the activity flag for the internal mouse listener.
|
void |
setRatioFix(P2DComponentInterface component,
boolean flag)
Fix/Release the ratio of the current value.
|
void |
setTransform(P2DComponentInterface component,
P2DContainerInterface container,
java.awt.geom.AffineTransform trans)
Sets the affine transformation of the component.
|
java.awt.geom.Point2D |
transformPoint(P2DComponentInterface component,
P2DContainerInterface container,
java.awt.geom.Point2D p)
Transform the point
|
java.awt.geom.Point2D |
transformPoint(P2DComponentInterface component,
java.awt.geom.Point2D p)
Transform the point
|
void |
uninstall(P2DComponentInterface component)
Uninstall the model for the given component.
|
void |
unregisterContainer(P2DComponentInterface component,
P2DContainerInterface container)
Unregister the given canvas.
|
getInfoBusName, getMemberName, isConnected, setInfoBusName, setMemberName
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, suspendPropertyChangeEvents
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, setName, setSupportEMail, setTitleName
getTransferData, getTransferDataFlavors, isDataFlavorSupported
addCommand, addCommand, addToGroup, addToGroup, clearCommands, commandsAvailable, deleteGroup, getCommand, getCommands, getGroup, groupExists, removeCommand, removeFromGroup, setCommands
getPresentationString, getPresentationString
getVersion, release
void initialize()
void install(P2DComponentInterface component)
component
- The component that belongs to that model.void uninstall(P2DComponentInterface component)
component
- The component that belongs to that model.P2DBoundingBoxInterface calculateBoundingBoxRelativeTo(P2DComponentInterface component, P2DBoundingBoxInterface bb, java.awt.geom.Point2D p)
component
- The component that belongs to that model.bb
- The boundingbox.p
- The point for that the new bounding box should be calculated.java.util.HashMap getDialogPanes(P2DComponentInterface component)
component
- The component that belongs to that model.FwkDialogPaneInterface getDialogPane(P2DComponentInterface component, java.lang.String ident)
component
- The component that belongs to that model.ident
- The identifier string of the requested pane.void addDialogPane(P2DComponentInterface component, FwkDialogPaneInterface pane, java.lang.String ident)
component
- The component that belongs to that model.ident
- The identifier string of the requested pane.The
- dialog pane.void removeDialogPane(P2DComponentInterface component, java.lang.String ident)
component
- The component that belongs to that model.ident
- The identifier string of the requested pane.java.util.HashMap getDialogPaneValues(P2DComponentInterface component)
component
- The component that belongs to that model.void setDialogPaneValues(P2DComponentInterface component, java.util.HashMap values)
component
- The component that belongs to that model.values
- The hashtable with ident/value pairs.FwkDialogPaneValueInterface getDialogPaneValue(P2DComponentInterface component, java.lang.String ident)
component
- The component that belongs to that model.ident
- The identifier string of the requested pane.FwkCommandInterface[] getCommands(P2DComponentInterface component)
component
- The component that belongs to that model.void setRatioFix(P2DComponentInterface component, boolean flag)
component
- The component that belongs to that model.flag
- if true the ratio will be freezed.boolean getRatioFix(P2DComponentInterface component)
component
- The component that belongs to that model.setRatioFix(boolean)
void setDecorated(P2DComponentInterface component, boolean flag)
component
- The component that belongs to that model.flag
- true if the component should be decorated.boolean getDecorated(P2DComponentInterface component)
component
- The component that belongs to that model.void revalidate(P2DComponentInterface component, boolean recusive)
component
- The component that belongs to that model.void setAppearance(P2DComponentInterface component, FwkAppearanceInterface ap)
component
- The component that belongs to that model.ap
- The appearance.FwkAppearanceInterface getAppearance(P2DComponentInterface component)
component
- The component that belongs to that model.P2DBoundingBoxInterface getBoundingBox(P2DComponentInterface component)
component
- The component that belongs to that model.void setBoundingBox(P2DComponentInterface component, P2DBoundingBoxInterface bb)
component
- The component that belongs to that model.bb
- The new bounding box of the component.double getWidth(P2DComponentInterface component)
component
- The component that belongs to that model.double getHeight(P2DComponentInterface component)
component
- The component that belongs to that model.void unregisterContainer(P2DComponentInterface component, P2DContainerInterface container)
component
- The component that belongs to that model.container
- The toplevel container.void registerContainer(P2DComponentInterface component, P2DContainerInterface container, java.awt.Graphics2D g)
component
- The component that belongs to that model.container
- The toplevel container.g
- The graphical context of the container.java.awt.geom.Point2D transformPoint(P2DComponentInterface component, java.awt.geom.Point2D p)
component
- The component that belongs to that model.p
- The point to transformed.java.awt.geom.Point2D transformPoint(P2DComponentInterface component, P2DContainerInterface container, java.awt.geom.Point2D p)
component
- The component that belongs to that model.container
- the toplevel container.p
- The point to transformed.java.awt.geom.AffineTransform getTransform(P2DComponentInterface component, P2DContainerInterface container)
component
- The component that belongs to that model.container
- The toplevel container,void setTransform(P2DComponentInterface component, P2DContainerInterface container, java.awt.geom.AffineTransform trans)
component
- The component that belongs to that model.container
- The toplevel container.trans
- The transformation.void configure(P2DComponentInterface component, java.awt.Graphics2D g)
component
- The component that belongs to that model.g
- The Graphical context.boolean getBackgroundVisible(P2DComponentInterface component)
component
- The component that belongs to that model.setVisible
void setBackgroundVisible(P2DComponentInterface component, boolean flag)
component
- The component that belongs to that model.flag
- The visibility flag. True means visible.void setBackgroundColor(P2DComponentInterface component, java.awt.Color color)
component
- The component that belongs to that model.color
- The new background color.javax.media.j3d.ColoringAttributes
,
Color
java.awt.Color getBackgroundColor(P2DComponentInterface component)
component
- The component that belongs to that model.javax.media.j3d.ColoringAttributes
,
Color
void setBackgroundTransparency(P2DComponentInterface component, float transparency)
component
- The component that belongs to that model.transparency
- The new background transparency value.javax.media.j3d.TransparencyAttributes
float getBackgroundTransparency(P2DComponentInterface component)
component
- The component that belongs to that model.javax.media.j3d.TransparencyAttributes
P2DFrameInterface getFrame(P2DComponentInterface component)
component
- The component that belongs to that model.component
- The component that belongs to that model.void setFrameVisible(P2DComponentInterface component, boolean flag)
component
- The component that belongs to that model.flag
- The visibility flag. True means visible.boolean getFrameVisible(P2DComponentInterface component)
component
- The component that belongs to that model.void setFrameLinesVisible(P2DComponentInterface component, boolean flag)
component
- The component that belongs to that model.flag
- The visibility flag. True means visible.boolean getFrameLinesVisible(P2DComponentInterface component)
component
- The component that belongs to that model.void setFrameHandlesVisible(P2DComponentInterface component, boolean flag)
component
- The component that belongs to that model.flag
- The visibility flag. True means visible.boolean getFrameHandlesVisible(P2DComponentInterface component)
component
- The component that belongs to that model.boolean frameHasHandles(P2DComponentInterface component)
component
- The component that belongs to that model.void setFrameColor(P2DComponentInterface component, java.awt.Color color)
component
- The component that belongs to that model.javax.media.j3d.ColoringAttributes
,
Color
java.awt.Color getFrameColor(P2DComponentInterface component)
component
- The component that belongs to that model.javax.media.j3d.ColoringAttributes
,
Color
void setFrameTransparency(P2DComponentInterface component, float transparency)
component
- The component that belongs to that model.javax.media.j3d.TransparencyAttributes
float getFrameTransparency(P2DComponentInterface component)
component
- The component that belongs to that model.javax.media.j3d.TransparencyAttributes
void setActive(P2DComponentInterface component, P2DContainerInterface container, boolean flag)
component
- The component that belongs to that model.flag
- true if the component should be activated.boolean getActive(P2DComponentInterface component, P2DContainerInterface container)
component
- The component that belongs to that model.boolean hasActiveChild(P2DComponentInterface component, P2DContainerInterface container)
component
- The component that belongs to that model.boolean isInside(P2DComponentInterface component, P2DComponentInterface child, java.awt.geom.Point2D p)
component
- The component that belongs to that model.child
- The childp
- The point in child coordinate system.boolean isInside(P2DComponentInterface component, P2DComponentInterface child, P2DBoundingBoxInterface box)
component
- The component that belongs to that model.child
- The childbox
- The boundingbox in child coordinate system.boolean containsAllChildren(P2DComponentInterface component, java.awt.geom.Point2D lower, java.awt.geom.Point2D upper)
component
- The component that belongs to that model.lower,
- upper points defining the boundingbox that
is to be checked wether it contains all the children.boolean containsAllChildren(P2DComponentInterface component, P2DBoundingBoxInterface box)
component
- The component that belongs to that model.box
- The boundingbox that is to be checked wether it contains all the children.java.awt.BasicStroke scaleStroke(P2DComponentInterface component, java.awt.geom.AffineTransform at)
component
- The component that belongs to that model.at
- the transformation to scale the stroke.java.awt.BasicStroke scaleStroke(P2DComponentInterface component, java.awt.geom.AffineTransform at, float lw)
component
- The component that belongs to that model.at
- the transformation to scale the stroke.lw
- The line width to be scaled.void getAllArmedComponents(P2DComponentInterface component, P2DContainerInterface container, double x, double y, FwkArrayInterface arr)
component
- The component that belongs to that model.x
- The x part of the armed coordinate in container coordinate system.y
- The y part of the armed coordinate in container coordinate system.arr
- The array to collect all armed components.void getAllArmedComponents(P2DComponentInterface component, P2DContainerInterface container, java.awt.geom.Point2D p, FwkArrayInterface arr)
component
- The component that belongs to that model.p
- The armed coordinate in container coordinates.arr
- The array to collect all armed components.P2DComponentInterface getChild(P2DComponentInterface component, double x, double y)
component
- The component that belongs to that model.x,y
- The point coordinates.P2DComponentInterface getChild(P2DComponentInterface component, java.awt.geom.Point2D p)
component
- The component that belongs to that model.p
- The point.void resetActiveHandle(P2DComponentInterface component)
component
- The component that belongs to that model.int getActiveHandle(P2DComponentInterface component)
component
- The component that belongs to that model.void setActiveHandle(P2DComponentInterface component, int index)
component
- The component that belongs to that model.index
- The index of the active handle.
It returns -1, if no handle could be activated.java.util.HashMap getContainerMap(P2DComponentInterface component)
component
- The component that belongs to that model.void setContainerMap(P2DComponentInterface component, java.util.HashMap map)
component
- The component that belongs to that model.map
- the new container map.P2DBackgroundInterface getBackground(P2DComponentInterface component)
component
- The component that belongs to that model.java.lang.String getShortName(P2DComponentInterface component)
component
- The component that belongs to that model.boolean boundsAcceptable(P2DComponentInterface component, java.awt.geom.Point2D lower, java.awt.geom.Point2D upper)
component
- The component that belongs to that model.upper
- The upper point of the bounds to be checked.lower
- The lower point of the bounds to be checked.boolean isInternalMouseListenerActive(P2DComponentInterface child)
void setInternalMouseListenerActive(P2DComponentInterface child, boolean flag)
flag
- true if the internal mouse listener should be active.