public class P2DComponentModel extends FwkInfoBusMember implements P2DModelInterface
| Modifier and Type | Field and Description |
|---|---|
protected FwkAppearanceInterface |
appearance
The appearance of the component.
|
protected P2DBackgroundInterface |
background
The background of the component.
|
static java.lang.String |
BACKGROUND_COLOR_IDENT
The Ident string of the background color command and pane.
|
static java.lang.String |
BACKGROUND_COLOR_TEXT_KEY
The property keyword for the popupmneu background color menuitem text and pane title.
|
static java.lang.String |
BACKGROUND_COLOR_TOOLTIP_KEY
The property keyword for the background color pane tooltip.
|
static java.lang.String |
BACKGROUND_VISIBLE_TEXT_KEY
The property keyword for the popupmneu background visible menuitem.
|
protected P2DBoundingBoxInterface |
boundingBox
The boundingbox of the component.
|
static java.lang.String |
COLOR_IDENT
The Ident string of the color command and pane.
|
static java.lang.String |
COLOR_TEXT_KEY
The property keyword for the popupmneu color menuitem text and pane title.
|
static java.lang.String |
COLOR_TOOLTIP_KEY
The property keyword for the color pane tooltip.
|
protected java.util.HashMap |
containerMap
The container hash.
|
protected boolean |
decorated
The decoration flag.
|
static java.lang.String |
FONT_IDENT
The Ident string of the font command and pane.
|
static java.lang.String |
FONT_TEXT_KEY
The property keyword for the popupmneu font menuitem text and pane title.
|
static java.lang.String |
FONT_TOOLTIP_KEY
The property keyword for the font pane tooltip.
|
protected P2DFrameInterface |
frame
The frame of the component.
|
static java.lang.String |
FRAME_COLOR_IDENT
The Ident string of the frame color command and pane.
|
static java.lang.String |
FRAME_COLOR_TEXT_KEY
The property keyword for the popupmneu frame color menuitem text and pane title.
|
static java.lang.String |
FRAME_COLOR_TOOLTIP_KEY
The property keyword for the frame color pane tooltip.
|
protected boolean |
internalMouseListenerActive
If true the component reacts on mouse events.
|
static java.lang.String |
PROPERTIES_TEXT_KEY
The property keyword for the popupmneu properties menuitem.
|
protected boolean |
ratioFix
The ratio fix flag.
|
protected static java.util.HashMap |
staticPanes
The static hashtable that holds the dialog panes.
|
static java.lang.String |
version |
static java.lang.String |
VISIBLE_TEXT_KEY
The property keyword for the popupmneu color menuitem.
|
infoBusMemberSupportchangeManager, 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, titleNameINFOBUS_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_NAME| Constructor and Description |
|---|
P2DComponentModel()
The default constructor.
|
| 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 ap)
Calculate a new bounding box relative to the given point.
|
P2DBoundingBoxInterface |
closestIntersection(P2DBoundingBoxInterface[] bounds)
Finds closest bounding object which intersects this bounding box
|
void |
configure(P2DComponentInterface component,
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(P2DComponentInterface component,
P2DBoundingBoxInterface box)
Contains all children.
|
boolean |
containsAllChildren(P2DComponentInterface component,
java.awt.geom.Point2D lower,
java.awt.geom.Point2D upper)
Contains all children.
|
protected java.util.HashMap |
createDialogPanes(P2DComponentInterface component)
Create the static dialogpanes for components.
|
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)
Get the appearance of the component.
|
double |
getArea()
Returns the square of the enclosed area.
|
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)
Get the bounding box of 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.
|
java.awt.Shape |
getClip()
Gets the clipping shape.
|
java.awt.Color |
getColor()
Gets this graphics context's current color to the specified color.
|
FwkCommandInterface[] |
getCommands(P2DComponentInterface component)
Get the commands of the component.
|
java.util.HashMap |
getContainerMap(P2DComponentInterface component)
Returns the container map.
|
float[] |
getDashArray()
Returns the array representing the lengths of the
dash segments.
|
float |
getDashPhase()
Returns the current dash phase.
|
boolean |
getDecorated(P2DComponentInterface container)
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 in a hashtable.
|
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.
|
int |
getEndCap()
Returns the end cap style.
|
java.awt.Shape |
getFill()
Gets the filling shape.
|
java.awt.Font |
getFont()
Gets this graphics context's font to the specified font.
|
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.
|
java.awt.geom.AffineTransform |
getInverseTransform(P2DComponentInterface component)
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.
|
boolean |
getRatioFix(P2DComponentInterface component)
Get the current ratio flag.
|
java.awt.geom.Rectangle2D |
getRectangle()
Retrieves the rectanlge defined by this box.
|
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.
|
java.lang.String |
getShortName(P2DComponentInterface component)
Get the short name of the container.
|
java.awt.Stroke |
getStroke()
Gets the Stroke for the Graphics2D context.
|
java.awt.geom.AffineTransform |
getTransform(P2DComponentInterface component)
Get the transformation for this boundingbox.
|
java.awt.geom.AffineTransform |
getTransform(P2DComponentInterface component,
P2DContainerInterface container)
Restores the transformation that belongs to the given toplevel container.
|
java.awt.geom.Point2D |
getTranslation(P2DComponentInterface component)
Get the translation vector.
|
float |
getTransparency()
Get the transparency of the current color (range 0 .. 1.0).
|
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.
|
boolean |
getVisible()
Get the visibility.
|
double |
getWidth(P2DComponentInterface component)
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 |
hasActiveChild(P2DComponentInterface component,
P2DContainerInterface container)
Returns a boolean whether the component has an active child in the next level.
|
void |
initialize()
Initialize the model.
|
void |
install(P2DComponentInterface c)
Install the component model.
|
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(P2DComponentInterface component,
java.awt.geom.Point2D p)
Transform the point.
|
boolean |
isInside(P2DBoundingBoxInterface box)
Checks whether the given box is inside this one.
|
boolean |
isInside(P2DComponentInterface component,
P2DComponentInterface child,
P2DBoundingBoxInterface box)
Check the specified child box.
|
boolean |
isInside(P2DComponentInterface component,
P2DComponentInterface child,
java.awt.geom.Point2D p)
Check the point specified in child coodinates.
|
boolean |
isInternalMouseListenerActive(P2DComponentInterface component)
Get a boolean whether the internal mouse listener is active.
|
boolean |
isVisible()
Returns a boolean whether the object is visible.
|
void |
move(double xDiff,
double yDiff)
Move the box.
|
void |
registerContainer(P2DComponentInterface component,
P2DContainerInterface container,
java.awt.Graphics2D g)
Register container context.
|
void |
release()
Release the object.
|
void |
release(P2DComponentInterface component)
Release the control.
|
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 recursive)
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 appearance)
Set the appearnce 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 / Show the background.
|
void |
setBoundingBox(P2DComponentInterface component,
P2DBoundingBoxInterface boundingBox)
Set the bounding box of 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 c)
Sets this graphics context's current color to the specified color.
|
void |
setContainerMap(P2DComponentInterface component,
java.util.HashMap map)
Sets the container map.
|
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(P2DComponentInterface container,
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 |
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 font)
Sets this graphics context's font to the specified font.
|
void |
setFrameColor(P2DComponentInterface component,
java.awt.Color color)
Sets the frame color.
|
void |
setFrameHandlesVisible(P2DComponentInterface component,
boolean flag)
Hide / Show the frame handles.
|
void |
setFrameLinesVisible(P2DComponentInterface component,
boolean flag)
Hide / Show the frame lines.
|
void |
setFrameTransparency(P2DComponentInterface component,
float transparency)
Sets the transparency of the frame.
|
void |
setFrameVisible(P2DComponentInterface component,
boolean flag)
Hide / Show the whole frame object.
|
void |
setHeight(double height)
Set the height of the box.
|
void |
setInternalMouseListenerActive(P2DComponentInterface component,
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 |
setMiterLimit(float limit)
Retrieves the limit of miter joins.
|
void |
setOffset(double xOffset,
double yOffset)
Scale the bounding box to the given values.
|
void |
setRatioFix(P2DComponentInterface component,
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(P2DComponentInterface component,
java.awt.geom.AffineTransform t)
Sets the transform of the appearance.
|
void |
setTransform(P2DComponentInterface component,
P2DContainerInterface container,
java.awt.geom.AffineTransform trans)
Sets the affine transformation of the component.
|
void |
setTranslation(P2DComponentInterface component,
double x,
double y)
Concatenates the current Graphics2D Transform with a translation transform.
|
void |
setTransparency(float t)
Set the transparency.
|
void |
setUpper(java.awt.geom.Point2D upper)
Set the upper vector.
|
void |
setVisible(boolean flag)
Set the visibility.
|
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.
|
java.awt.geom.Point2D |
transformPoint(P2DComponentInterface component,
P2DContainerInterface container,
java.awt.geom.Point2D p)
Transform the point from parent coordinates to the component coordinates.
|
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.
|
addInfoBusPropertyListener, addInfoBusVetoableListener, finalize, getInfoBus, getInfoBusName, getMemberName, isConnected, joinInfoBus, removeInfoBusPropertyListener, removeInfoBusVetoableListener, setInfoBus, setInfoBusName, setMemberName, setNameaddDataItemChangeListener, fireItemAdded, fireItemDeleted, fireItemRevoked, fireItemValueChanged, getName, getProperty, getPropertyGroup, getSource, isChangeManagerSuspended, removeDataItemChangeListener, setProperty, setPropertyGroup, suspendChangeManageraddCommand, addCommand, addToGroup, addToGroup, addVetoableChangeListener, addVetoableChangeListener, clearCommands, commandsAvailable, compareTo, deleteGroup, destroyController, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getAuthor, getBuild, getCommand, getCommands, getCommands, getCompany, getCompanyInternetAddress, getCopyright, getCreationDate, getCreationDate, getDateFormatString, getDescription, getFwkMimeTypes, getGroup, getIcon, getIcon, getIconKey, getIconKey, getPersistentObjectNames, getSupportEMail, getTitle, getTitleName, getVetoableChangeArray, getVetoableChangeListenerArray, getVetoableChangeListenerArray, groupExists, removeCommand, removeFromGroup, removeVetoableChangeListener, removeVetoableChangeListener, setAuthor, setBuild, setCommands, 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, removePropertyChangeListener, suspendPropertyChangeEventsgetClassName, getPresentationString, getPresentationString, getTransferData, getTransferDataFlavors, isDataFlavorSupported, lostOwnership, setClassName, setCreationDate, toStringgetNiceVersionclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetInfoBusName, getMemberName, isConnected, setInfoBusName, setMemberNamefireItemAdded, fireItemDeleted, fireItemRevoked, fireItemValueChanged, getProperty, getPropertyGroup, setProperty, setPropertyGroup, suspendChangeManagergetCommands, getPersistentObjectNamesdestroyControlleraddPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeArray, getPropertyChangeListenerArray, getPropertyChangeListenerArray, isPropertyChangeEventSuspended, removePropertyChangeListener, removePropertyChangeListener, setSource, suspendPropertyChangeEventsaddVetoableChangeListener, 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, setName, setSupportEMail, setTitleNamegetTransferData, getTransferDataFlavors, isDataFlavorSupportedaddCommand, addCommand, addToGroup, addToGroup, clearCommands, commandsAvailable, deleteGroup, getCommand, getCommands, getGroup, groupExists, removeCommand, removeFromGroup, setCommandsgetPresentationString, getPresentationStringpublic static final java.lang.String version
public static final java.lang.String PROPERTIES_TEXT_KEY
public static final java.lang.String VISIBLE_TEXT_KEY
public static final java.lang.String BACKGROUND_VISIBLE_TEXT_KEY
public static final java.lang.String COLOR_TEXT_KEY
public static final java.lang.String COLOR_TOOLTIP_KEY
public static final java.lang.String BACKGROUND_COLOR_TEXT_KEY
public static final java.lang.String BACKGROUND_COLOR_TOOLTIP_KEY
public static final java.lang.String FRAME_COLOR_TEXT_KEY
public static final java.lang.String FRAME_COLOR_TOOLTIP_KEY
public static final java.lang.String FONT_TEXT_KEY
public static final java.lang.String FONT_TOOLTIP_KEY
public static final java.lang.String COLOR_IDENT
public static final java.lang.String BACKGROUND_COLOR_IDENT
public static final java.lang.String FRAME_COLOR_IDENT
public static final java.lang.String FONT_IDENT
protected P2DBackgroundInterface background
protected FwkAppearanceInterface appearance
protected P2DBoundingBoxInterface boundingBox
protected P2DFrameInterface frame
protected java.util.HashMap containerMap
protected boolean ratioFix
protected boolean decorated
protected boolean internalMouseListenerActive
protected static java.util.HashMap staticPanes
public java.lang.String getVersion()
FwkInterfacegetVersion in interface FwkInterfacegetVersion in class FwkInfoBusMemberpublic void release()
release in interface FwkInterfacerelease in interface javax.infobus.DataItemrelease in class FwkItempublic void release(P2DComponentInterface component)
public void uninstall(P2DComponentInterface component)
uninstall in interface P2DModelInterfacecomponent - The component that belongs to that model.public void initialize()
initialize in interface P2DModelInterfacepublic void install(P2DComponentInterface c)
install in interface P2DModelInterfacec - The component belongs to that model.public void revalidate(P2DComponentInterface component, boolean recursive)
revalidate in interface P2DModelInterfacecomponent - The component that belongs to that model.public void setRatioFix(P2DComponentInterface component, boolean flag)
setRatioFix in interface P2DModelInterfaceflag - if true the ratio will be freezed.component - The component that belongs to that model.public boolean getRatioFix(P2DComponentInterface component)
getRatioFix in interface P2DModelInterfacecomponent - The component that belongs to that model.setRatioFix(boolean)public void registerContainer(P2DComponentInterface component, P2DContainerInterface container, java.awt.Graphics2D g)
registerContainer in interface P2DModelInterfacecontainer - The toplevel container.g - The context of the container.component - The component that belongs to that model.public void unregisterContainer(P2DComponentInterface component, P2DContainerInterface container)
unregisterContainer in interface P2DModelInterfacecontainer - The toplevel container.component - The component that belongs to that model.public java.awt.geom.Point2D transformPoint(P2DComponentInterface component, P2DContainerInterface container, java.awt.geom.Point2D p)
transformPoint in interface P2DModelInterfacecontainer - the toplevel container.p - The point to be transformed.component - The component that belongs to that model.public java.awt.geom.AffineTransform getTransform(P2DComponentInterface component, P2DContainerInterface container)
getTransform in interface P2DModelInterfacecomponent - The component that belongs to that model.container - The toplevel container,public void setTransform(P2DComponentInterface component, P2DContainerInterface container, java.awt.geom.AffineTransform trans)
setTransform in interface P2DModelInterfacetrans - The transformation.component - The component that belongs to that model.container - The toplevel container.public boolean isInside(P2DComponentInterface component, P2DComponentInterface child, java.awt.geom.Point2D p)
isInside in interface P2DModelInterfacechild - The childp - The point in child coordinate system.component - The component that belongs to that model.public boolean isInside(P2DComponentInterface component, P2DComponentInterface child, P2DBoundingBoxInterface box)
isInside in interface P2DModelInterfacechild - The childbox - The boundingbox of the child.component - The component that belongs to that model.public boolean containsAllChildren(P2DComponentInterface component, java.awt.geom.Point2D lower, java.awt.geom.Point2D upper)
containsAllChildren in interface P2DModelInterfacelower, - upper points defining the boundingbox that
is to be checked wether it contains all the children.public boolean containsAllChildren(P2DComponentInterface component, P2DBoundingBoxInterface box)
containsAllChildren in interface P2DModelInterfacebox - The boundingbox that is to be checked wether it contains all the children.component - The component that belongs to that model.public void setAppearance(P2DComponentInterface component, FwkAppearanceInterface appearance)
setAppearance in interface P2DModelInterfaceappearance - the new appearance.component - The component that belongs to that model.public FwkAppearanceInterface getAppearance(P2DComponentInterface component)
getAppearance in interface P2DModelInterfacecomponent - The component that belongs to that model.public boolean isInternalMouseListenerActive(P2DComponentInterface component)
isInternalMouseListenerActive in interface P2DModelInterfacepublic void setInternalMouseListenerActive(P2DComponentInterface component, boolean flag)
setInternalMouseListenerActive in interface P2DModelInterfaceflag - true if the internal mouse listener should be active.public void setColor(java.awt.Color c)
c - the color.Colorpublic java.awt.Color getColor()
Colorpublic void setTransparency(float t)
t - The transparency.public float getTransparency()
public void setFont(java.awt.Font font)
font - The font.Fontpublic java.awt.Font getFont()
Fontpublic void setStroke(java.awt.Stroke s)
s - The Stroke style.Strokepublic java.awt.Stroke getStroke()
Strokepublic void setLineWidth(float w)
w - The line width.BasicStrokepublic float getLineWidth()
BasicStrokepublic void setDashArray(float[] arr)
arr - The segment array.BasicStrokepublic float[] getDashArray()
BasicStrokepublic void setDashPhase(float phase)
phase - the dash phase.BasicStrokepublic float getDashPhase()
BasicStrokepublic void setEndCap(int cap)
BasicStrokepublic int getEndCap()
BasicStrokepublic void setLineJoin(int join)
join - the line join style.BasicStrokepublic int getLineJoin()
BasicStrokepublic void setMiterLimit(float limit)
limit - the limit.BasicStrokepublic float getMiterLimit()
BasicStrokepublic void setFill(java.awt.Shape s)
s - the filling shape.Shapepublic java.awt.Shape getFill()
Shapepublic void setTransform(P2DComponentInterface component, java.awt.geom.AffineTransform t)
This method has no effect. Use the boundingbox and the scaling methods to configurate the transformation.
t - the affine transformation.java.awt.AffineTransformpublic void setTranslation(P2DComponentInterface component, double x, double y)
This method has no effect. Use the boundingbox and the scaling methods to configurate the transformation.
x - Translation in xy - Translation in yGraphics2Dpublic java.awt.geom.Point2D getTranslation(P2DComponentInterface component)
This method has no effect. Use the boundingbox and the scaling methods to configurate the transformation.
setTranlation(double, double)public void setClip(double x,
double y,
double width,
double height)
x, - y, width, heigth The bounding box.public void setClip(java.awt.Shape clip)
clip - The clipping shape.Shapepublic java.awt.Shape getClip()
Shapepublic void configure(P2DComponentInterface component, java.awt.Graphics2D g)
configure in interface P2DModelInterfaceg - The Graphical context.component - The component that belongs to that model.public boolean isVisible()
public void setVisible(boolean flag)
flag - true if the object should be visible.public boolean getVisible()
public java.awt.BasicStroke scaleStroke(P2DComponentInterface component, java.awt.geom.AffineTransform at)
scaleStroke in interface P2DModelInterfaceat - the transformation to scale the stroke.component - The component that belongs to that model.public java.awt.BasicStroke scaleStroke(P2DComponentInterface component, java.awt.geom.AffineTransform at, float lw)
scaleStroke in interface P2DModelInterfaceat - the transformation to scale the stroke.lw - the line width to be scaled.component - The component that belongs to that model.public void setBoundingBox(P2DComponentInterface component, P2DBoundingBoxInterface boundingBox)
setBoundingBox in interface P2DModelInterfaceboundingBox - the new bounding box.component - The component that belongs to that model.public P2DBoundingBoxInterface getBoundingBox(P2DComponentInterface component)
getBoundingBox in interface P2DModelInterfacecomponent - The component that belongs to that model.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 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 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 getWidth(P2DComponentInterface component)
getWidth in interface P2DModelInterfacecomponent - The component that belongs to that model.public double getHeight(P2DComponentInterface component)
getHeight in interface P2DModelInterfacecomponent - The component that belongs to that model.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)
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 getTransform(P2DComponentInterface component)
public java.awt.geom.AffineTransform getInverseTransform(P2DComponentInterface component)
getTransformpublic java.awt.geom.Point2D transformPoint(P2DComponentInterface component, java.awt.geom.Point2D p)
transformPoint in interface P2DModelInterfacep - The point to be transformed to the out coordinate system.component - The component that belongs to that model.public java.awt.geom.Point2D inverseTransformPoint(P2DComponentInterface component, java.awt.geom.Point2D p)
p - The point to be transformed to the defined coordinate system.public boolean getBackgroundVisible(P2DComponentInterface component)
getBackgroundVisible in interface P2DModelInterfacecomponent - The component that belongs to that model.setVisiblepublic void setBackgroundVisible(P2DComponentInterface component, boolean flag)
setBackgroundVisible in interface P2DModelInterfaceflag - The flag the decides whether the background is visble.component - The component that belongs to that model.public void setBackgroundColor(P2DComponentInterface component, java.awt.Color color)
setBackgroundColor in interface P2DModelInterfacecolor - The new background color.component - The component that belongs to that model.javax.media.j3d.ColoringAttributes,
Colorpublic java.awt.Color getBackgroundColor(P2DComponentInterface component)
getBackgroundColor in interface P2DModelInterfacecomponent - The component that belongs to that model.javax.media.j3d.ColoringAttributes,
javax.vecmath.Color3fpublic void setBackgroundTransparency(P2DComponentInterface component, float transparency)
setBackgroundTransparency in interface P2DModelInterfacecomponent - The component that belongs to that model.transparency - The new background transparency value.javax.media.j3d.TransparencyAttributespublic float getBackgroundTransparency(P2DComponentInterface component)
getBackgroundTransparency in interface P2DModelInterfacecomponent - The component that belongs to that model.javax.media.j3d.TransparencyAttributespublic P2DFrameInterface getFrame(P2DComponentInterface component)
getFrame in interface P2DModelInterfacecomponent - The component that belongs to that model.public void setFrameVisible(P2DComponentInterface component, boolean flag)
setFrameVisible in interface P2DModelInterfaceflag - true if visible.component - The component that belongs to that model.public boolean getFrameVisible(P2DComponentInterface component)
getFrameVisible in interface P2DModelInterfacecomponent - The component that belongs to that model.public void setFrameLinesVisible(P2DComponentInterface component, boolean flag)
setFrameLinesVisible in interface P2DModelInterfaceflag - true if visible.component - The component that belongs to that model.public boolean getFrameLinesVisible(P2DComponentInterface component)
getFrameLinesVisible in interface P2DModelInterfacecomponent - The component that belongs to that model.public void setFrameHandlesVisible(P2DComponentInterface component, boolean flag)
setFrameHandlesVisible in interface P2DModelInterfaceflag - true if visble.component - The component that belongs to that model.public boolean getFrameHandlesVisible(P2DComponentInterface component)
getFrameHandlesVisible in interface P2DModelInterfacecomponent - The component that belongs to that model.public boolean frameHasHandles(P2DComponentInterface component)
frameHasHandles in interface P2DModelInterfacecomponent - The component that belongs to that model.public void setFrameColor(P2DComponentInterface component, java.awt.Color color)
setFrameColor in interface P2DModelInterfacecolor - The new color.component - The component that belongs to that model.javax.media.j3d.ColoringAttributes,
Colorpublic java.awt.Color getFrameColor(P2DComponentInterface component)
getFrameColor in interface P2DModelInterfacecomponent - The component that belongs to that model.javax.media.j3d.ColoringAttributes,
javax.vecmath.Color3fpublic void setFrameTransparency(P2DComponentInterface component, float transparency)
setFrameTransparency in interface P2DModelInterfacetrnaparency - The new transparency.javax.media.j3d.TransparencyAttributespublic float getFrameTransparency(P2DComponentInterface component)
getFrameTransparency in interface P2DModelInterfacecomponent - The component that belongs to that model.javax.media.j3d.TransparencyAttributespublic void setActive(P2DComponentInterface component, P2DContainerInterface container, boolean flag)
setActive in interface P2DModelInterfaceflag - true if the component should be activated.component - The component that belongs to that model.public boolean getActive(P2DComponentInterface component, P2DContainerInterface container)
getActive in interface P2DModelInterfacecomponent - The component that belongs to that model.public boolean hasActiveChild(P2DComponentInterface component, P2DContainerInterface container)
hasActiveChild in interface P2DModelInterfacecomponent - The component that belongs to that model.public void resetActiveHandle(P2DComponentInterface component)
resetActiveHandle in interface P2DModelInterfacecomponent - The component that belongs to that model.public int getActiveHandle(P2DComponentInterface component)
getActiveHandle in interface P2DModelInterfacecomponent - The component that belongs to that model.public void setActiveHandle(P2DComponentInterface component, int index)
setActiveHandle in interface P2DModelInterfaceindex - The index of the active handle.
It returns -1, if no handle could be activated.component - The component that belongs to that model.public void getAllArmedComponents(P2DComponentInterface component, P2DContainerInterface container, double x, double y, FwkArrayInterface arr)
getAllArmedComponents in interface P2DModelInterfacex - 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.component - The component that belongs to that model.public void getAllArmedComponents(P2DComponentInterface component, P2DContainerInterface container, java.awt.geom.Point2D p, FwkArrayInterface arr)
getAllArmedComponents in interface P2DModelInterfacep - The armed coordinate in container coordinates.arr - The array to collect all armed components.component - The component that belongs to that model.public P2DComponentInterface getChild(P2DComponentInterface component, java.awt.geom.Point2D p)
getChild in interface P2DModelInterfacep - The point in parent coordinates.The - componentpublic P2DComponentInterface getChild(P2DComponentInterface component, double x, double y)
getChild in interface P2DModelInterfacex,y - The point in parent coordinates.The - componentpublic java.util.HashMap getContainerMap(P2DComponentInterface component)
getContainerMap in interface P2DModelInterfacecomponent - The component that belongs to that model.public void setContainerMap(P2DComponentInterface component, java.util.HashMap map)
setContainerMap in interface P2DModelInterfacemap - the new container map.component - The component that belongs to that model.public P2DBackgroundInterface getBackground(P2DComponentInterface component)
getBackground in interface P2DModelInterfacecomponent - The component that belongs to that model.public FwkCommandInterface[] getCommands(P2DComponentInterface component)
getCommands in interface P2DModelInterfacecomponent - The component that belongs to that model.protected java.util.HashMap createDialogPanes(P2DComponentInterface component)
public java.util.HashMap getDialogPaneValues(P2DComponentInterface component)
getDialogPaneValues in interface P2DModelInterfacecomponent - The component that belongs to that model.public void setDialogPaneValues(P2DComponentInterface component, java.util.HashMap values)
setDialogPaneValues in interface P2DModelInterfacevalues - The hashtable with ident/value pairs.component - The component that belongs to that model.public FwkDialogPaneValueInterface getDialogPaneValue(P2DComponentInterface component, java.lang.String ident)
getDialogPaneValue in interface P2DModelInterfaceident - The identifier string of the requested pane.component - The component that belongs to that model.public java.util.HashMap getDialogPanes(P2DComponentInterface component)
getDialogPanes in interface P2DModelInterfacecomponent - The component that belongs to that model.public FwkDialogPaneInterface getDialogPane(P2DComponentInterface component, java.lang.String ident)
getDialogPane in interface P2DModelInterfaceident - The identifier string of the requested pane.component - The component that belongs to that model.public void addDialogPane(P2DComponentInterface component, FwkDialogPaneInterface pane, java.lang.String ident)
addDialogPane in interface P2DModelInterfaceident - The identifier string of the requested pane.The - dialog pane.public void removeDialogPane(P2DComponentInterface component, java.lang.String ident)
removeDialogPane in interface P2DModelInterfaceident - The identifier string of the requested pane.component - The component that belongs to that model.public P2DBoundingBoxInterface calculateBoundingBoxRelativeTo(P2DComponentInterface component, P2DBoundingBoxInterface bb, java.awt.geom.Point2D ap)
calculateBoundingBoxRelativeTo in interface P2DModelInterfacebb - The boundingbox.ap - The point for that the new bounding box should be calculated.component - The component that belongs to that model.public java.lang.String getShortName(P2DComponentInterface component)
getShortName in interface P2DModelInterfacecomponent - The component that belongs to that model.public boolean boundsAcceptable(P2DComponentInterface component, java.awt.geom.Point2D lower, java.awt.geom.Point2D upper)
boundsAcceptable in interface P2DModelInterfacecomponent - 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.public void setDecorated(P2DComponentInterface container, boolean flag)
setDecorated in interface P2DModelInterfaceflag - true if the component should be decorated.container - The component that belongs to that model.public boolean getDecorated(P2DComponentInterface container)
getDecorated in interface P2DModelInterfacecontainer - The component that belongs to that model.