public interface P2DFrameInterface extends FwkInterface
Modifier and Type | Method and Description |
---|---|
void |
allHandles()
Order all handles.
|
FwkAppearanceInterface |
getAppearance()
Get the appearance of the frame.
|
int |
getArmedHandle()
Returns the armed handle.
|
int |
getArmedHandle(java.awt.geom.Point2D ap)
Calculate the armed handle for the given point.
|
P2DBoundingBoxInterface |
getBoundingBox()
Retrieve the bounding box the component.
|
java.awt.Color |
getColor()
Gets the background color.
|
float[] |
getDashArray()
Returns the array representing the lengths of the
dash segments.
|
float |
getDashPhase()
Returns the current dash phase.
|
int |
getEndCap()
Returns the end cap style.
|
boolean |
getHandle(int index)
Retrieves the handle at the specified position.
|
boolean |
getHandlesVisible()
Returns a boolean whether the handles are visible.
|
int |
getLineJoin()
Returns the line join style.
|
boolean |
getLinesVisible()
Returns a boolean whether the handles are visible.
|
float |
getLineWidth()
Returns the line width.
|
float |
getMiterLimit()
Returns the limit of miter joins.
|
java.awt.Stroke |
getStroke()
Gets the Stroke for the Graphics2D context.
|
float |
getTransparency()
Gets the transparency of the background.
|
boolean |
getVisible()
Returns a boolean whether the component is visble.
|
boolean |
hasHandles()
Returns a boolean whether the frame has handles.
|
void |
hideHandles()
Hide all the handles.
|
void |
hideLines()
Hide the lines.
|
boolean |
isVisible()
Returns a boolean whether the component is visble.
|
void |
noHandles()
Order no handles.
|
void |
paint(java.awt.Graphics2D g)
Paint the frame.
|
void |
resetArmedHandle()
Reset the active handle.
|
void |
setAppearance(FwkAppearanceInterface appearance)
Get the appearance of the frame.
|
void |
setArmedHandle(int index)
Sets the armed handle.
|
void |
setBoundingBox(P2DBoundingBoxInterface bb)
Set the the bounding box of the component.
|
void |
setColor(java.awt.Color color)
Sets the background color.
|
void |
setDashArray(float[] arr)
Sets the array representing the lengths of the
dash segments.
|
void |
setDashPhase(float phase)
Sets the current dash phase.
|
void |
setEndCap(int cap)
Retrieves the end cap style.
|
void |
setHandle(int index,
boolean flag)
Set the handle at the specified position.
|
void |
setHandlesVisible(boolean flag)
Set the handle visibility.
|
void |
setLineJoin(int join)
Retrieves the line join style.
|
void |
setLinesVisible(boolean flag)
Set the line visiblility.
|
void |
setLineWidth(float w)
Sets the line width of the stroke.
|
void |
setMiterLimit(float limit)
Retrieves the limit of miter joins.
|
void |
setStroke(java.awt.Stroke s)
Sets the Stroke for the Graphics2D context.
|
void |
setTransparency(float transparency)
Sets the transparency of the background.
|
void |
setVisible(boolean flag)
Sets the visibility of the component.
|
void |
showHandles()
Show all handles.
|
void |
showLines()
Show lines.
|
void |
updateGeometry()
Update the geometry.
|
getVersion, release
void paint(java.awt.Graphics2D g)
g
- The graphics context.void updateGeometry()
FwkAppearanceInterface getAppearance()
void setAppearance(FwkAppearanceInterface appearance)
P2DBoundingBoxInterface getBoundingBox()
void setBoundingBox(P2DBoundingBoxInterface bb)
bb
- The new bounding box of the component.boolean hasHandles()
void setHandle(int index, boolean flag)
0 - 1 - 2
3 - 4 - 5
6 - 7 - 8
index
- The index of the handles to be set.flag
- true if the flag should be enabled.getHandle(int)
boolean getHandle(int index)
0 - 1 - 2
3 - 4 - 5
6 - 7 - 8
index
- The index of the handles to be set.setHandle(int, boolean)
void setHandlesVisible(boolean flag)
flag
- true if the handle should be visible.void hideHandles()
void showHandles()
boolean getHandlesVisible()
void setLinesVisible(boolean flag)
flag
- true if the frame lines are visible.void hideLines()
void showLines()
boolean getLinesVisible()
void setColor(java.awt.Color color)
P2DShape
java.awt.Color getColor()
void setTransparency(float transparency)
transparency
- The new transparency value.float getTransparency()
boolean isVisible()
boolean getVisible()
void setVisible(boolean flag)
flag
- The flag that indicates the visiblity of the component.void setStroke(java.awt.Stroke s)
s
- The Stroke style.Stroke
java.awt.Stroke getStroke()
Stroke
void setLineWidth(float w)
w
- The line width.BasicStroke
float getLineWidth()
BasicStroke
void setDashArray(float[] arr)
arr
- The segment array.BasicStroke
float[] getDashArray()
BasicStroke
void setDashPhase(float phase)
phase
- the dash phase.BasicStroke
float getDashPhase()
BasicStroke
void setEndCap(int cap)
BasicStroke
int getEndCap()
BasicStroke
void setLineJoin(int join)
join
- the line join style.BasicStroke
int getLineJoin()
BasicStroke
void setMiterLimit(float limit)
limit
- the limit.BasicStroke
float getMiterLimit()
BasicStroke
int getArmedHandle(java.awt.geom.Point2D ap)
p
- The point for that the active handle should be calculated.int getArmedHandle()
void setArmedHandle(int index)
index
- The index of the active handle.
It returns -1, if no handle could be activated.void resetArmedHandle()
void noHandles()
void allHandles()