public interface P2DComponentModelInterface extends FwkInstructionInterface
Modifier and Type | Method and Description |
---|---|
void |
addDialogPane(FwkDialogPaneInterface pane,
java.lang.String ident)
Add a spezial dialog pane with the given identifier.
|
boolean |
boundsAcceptable(java.awt.geom.Point2D lower,
java.awt.geom.Point2D upper)
Checks the given bounds to be acceptable bounds.
|
boolean |
containsAllChildren(P2DBoundingBoxInterface box)
Contains all children.
|
boolean |
containsAllChildren(java.awt.geom.Point2D lower,
java.awt.geom.Point2D upper)
Contains all children.
|
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.
|
FwkAppearanceInterface |
getAppearance()
Retrieves the appearance of the view.
|
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 the component that is armed from the given point.
|
P2DComponentInterface |
getChild(java.awt.geom.Point2D p)
Return the component that is armed from the given point.
|
java.util.HashMap |
getContainerMap()
Returns the container map.
|
boolean |
getDecorated()
Get the boolean fo rthe decoration.
|
FwkDialogPaneInterface |
getDialogPane(java.lang.String ident)
Retrieves a spezial dialog pane for the given identifier.
|
java.util.HashMap |
getDialogPanes()
Retrieves the property dialog panes.
|
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.
|
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 frame.
|
boolean |
getFrameVisible()
Inquire whether the frame is visible.
|
double |
getHeight()
Retrieves the height of the box.
|
boolean |
getRatioFix()
Get the current ratio flag.
|
java.awt.geom.AffineTransform |
getTransform(P2DContainerInterface container)
Restores the transformation that belongs to the given toplevel container.
|
double |
getWidth()
Retrieves the width of the box.
|
boolean |
hasActiveChild(P2DContainerInterface container)
Returns a boolean whether the component has an active child in the next level.
|
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.
|
void |
registerContainer(P2DContainerInterface container,
java.awt.Graphics2D g)
Register the given container context.
|
void |
removeDialogPane(java.lang.String ident)
remove a spezial dialog pane with the given identifier.
|
void |
resetActiveHandle()
Reset the active handle.
|
void |
revalidate(boolean recursive)
Request a newly calculation of the component.
|
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 appreance 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 or show the background.
|
void |
setBoundingBox(P2DBoundingBoxInterface bb)
Set the the bounding box of the component.
|
void |
setContainerMap(java.util.HashMap map)
Sets the container map.
|
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 |
setFrameColor(java.awt.Color color)
Sets the frame color.
|
void |
setFrameHandlesVisible(boolean flag)
Hide or show the frame handles.
|
void |
setFrameLinesVisible(boolean flag)
Hide or show the frame lines.
|
void |
setFrameTransparency(float transparency)
Sets the transparency of the frame.
|
void |
setFrameVisible(boolean flag)
Hide or show the whole frame object.
|
void |
setRatioFix(boolean flag)
Fix/Release the ratio of the current value.
|
void |
setTransform(P2DContainerInterface container,
java.awt.geom.AffineTransform trans)
Sets the affine transformation of the component.
|
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 |
unregisterContainer(P2DContainerInterface container)
Unregister the given canvas.
|
addCommand, addCommand, addToGroup, addToGroup, clearCommands, commandsAvailable, deleteGroup, getCommand, getCommands, getGroup, groupExists, removeCommand, removeFromGroup, setCommands
getPresentationString, getPresentationString
getVersion, release
void setRatioFix(boolean flag)
flag
- if true the ratio will be freezed.boolean getRatioFix()
setRatioFix(boolean)
void setDecorated(boolean flag)
flag
- true if the component should be decorated.boolean getDecorated()
void revalidate(boolean recursive)
void setAppearance(FwkAppearanceInterface ap)
ap
- The appearance.FwkAppearanceInterface getAppearance()
P2DBoundingBoxInterface getBoundingBox()
void setBoundingBox(P2DBoundingBoxInterface bb)
bb
- The new bounding box of the component.double getWidth()
double getHeight()
void unregisterContainer(P2DContainerInterface container)
container
- The toplevel container.void registerContainer(P2DContainerInterface container, java.awt.Graphics2D g)
container
- The toplevel container.g
- The graphical context of the container.java.awt.geom.Point2D transformPoint(java.awt.geom.Point2D p)
p
- The point to transformed.java.awt.geom.Point2D transformPoint(P2DContainerInterface container, java.awt.geom.Point2D p)
container
- the toplevel container.p
- The point to transformed.java.awt.geom.AffineTransform getTransform(P2DContainerInterface container)
container
- The toplevel container,void setTransform(P2DContainerInterface container, java.awt.geom.AffineTransform trans)
container
- The toplevel container.trans
- The transformation.boolean getBackgroundVisible()
setVisible
void setBackgroundVisible(boolean flag)
flag
- The visibility flag. True means visible.void setBackgroundColor(java.awt.Color color)
color
- The new background color.javax.media.j3d.ColoringAttributes
,
Color
java.awt.Color getBackgroundColor()
javax.media.j3d.ColoringAttributes
,
Color
void setBackgroundTransparency(float transparency)
transparency
- The new background transparency value.javax.media.j3d.TransparencyAttributes
float getBackgroundTransparency()
javax.media.j3d.TransparencyAttributes
P2DFrameInterface getFrame()
void setFrameVisible(boolean flag)
flag
- The visibility flag. True means visible.boolean getFrameVisible()
void setFrameLinesVisible(boolean flag)
flag
- The visibility flag. True means visible.boolean getFrameLinesVisible()
void setFrameHandlesVisible(boolean flag)
flag
- The visibility flag. True means visible.boolean getFrameHandlesVisible()
boolean frameHasHandles()
void setFrameColor(java.awt.Color color)
javax.media.j3d.ColoringAttributes
,
Color
java.awt.Color getFrameColor()
javax.media.j3d.ColoringAttributes
,
Color
void setFrameTransparency(float transparency)
javax.media.j3d.TransparencyAttributes
float getFrameTransparency()
javax.media.j3d.TransparencyAttributes
void setActive(P2DContainerInterface container, boolean flag)
flag
- true if the component should be activated.boolean getActive(P2DContainerInterface container)
boolean hasActiveChild(P2DContainerInterface container)
boolean isInside(P2DComponentInterface child, java.awt.geom.Point2D p)
child
- The childp
- The point in child coordinate system.boolean isInside(P2DComponentInterface child, P2DBoundingBoxInterface box)
child
- The childbox
- The boundingbox in child coordinate system.boolean containsAllChildren(java.awt.geom.Point2D lower, java.awt.geom.Point2D upper)
lower,
- upper points defining the boundingbox that
is to be checked wether it contains all the children.boolean containsAllChildren(P2DBoundingBoxInterface box)
box
- The boundingbox that is to be checked wether it contains all the children.java.awt.BasicStroke scaleStroke(java.awt.geom.AffineTransform at)
at
- the transformation to scale the stroke.java.awt.BasicStroke scaleStroke(java.awt.geom.AffineTransform at, float lw)
at
- the transformation to scale the stroke.lw
- the line width to be scaled.P2DComponentInterface getChild(double x, double y)
x,y
- The point coordinates.P2DComponentInterface getChild(java.awt.geom.Point2D p)
p
- The point.void resetActiveHandle()
int getActiveHandle()
void setActiveHandle(int index)
index
- The index of the active handle.
It returns -1, if no handle could be activated.java.util.HashMap getContainerMap()
void setContainerMap(java.util.HashMap map)
map
- the new container map.P2DBackgroundInterface getBackground()
java.util.HashMap getDialogPanes()
component
- The componentFwkDialogPaneInterface getDialogPane(java.lang.String ident)
component
- The componentident
- The identifier string of the requested pane.void addDialogPane(FwkDialogPaneInterface pane, java.lang.String ident)
ident
- The identifier string of the requested pane.The
- dialog pane.void removeDialogPane(java.lang.String ident)
ident
- The identifier string of the requested pane.java.util.HashMap getDialogPaneValues()
component
- The componentvoid setDialogPaneValues(java.util.HashMap values)
component
- The componentvalues
- The hashtable with ident/value pairs.FwkDialogPaneValueInterface getDialogPaneValue(java.lang.String ident)
component
- The componentident
- The identifier string of the requested pane.boolean boundsAcceptable(java.awt.geom.Point2D lower, java.awt.geom.Point2D upper)
upper
- The upper point of the bounds to be checked.lower
- The lower point of the bounds to be checked.