public interface FwkAppearanceInterface extends FwkInterface
Graphics2D| Modifier and Type | Field and Description |
|---|---|
static java.awt.BasicStroke |
DASH_STROKE
The DASH stroke.
|
static java.awt.BasicStroke |
DOT_DASH_STROKE
The DOT DASH stroke.
|
static java.awt.BasicStroke |
DOT_DOT_DASH_STROKE
The DOT DOT DASH stroke.
|
static java.awt.BasicStroke |
DOT_STROKE
The DOT stroke.
|
static java.awt.BasicStroke |
LINE_STROKE
The line stroke.
|
| Modifier and Type | Method and Description |
|---|---|
void |
configure(java.awt.Graphics2D g)
Configurate the graphical context with the settings of the appearance.
|
java.awt.Color |
getBackgroundColor()
Gets the background color for the Graphics2D context.
|
java.awt.Shape |
getClip()
Gets the clipping shape.
|
java.awt.Color |
getColor()
Gets this graphics context's current color to the specified 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.
|
java.awt.Shape |
getFill()
Gets the filling shape.
|
java.awt.Font |
getFont()
Gets this graphics context's font to the specified font.
|
int |
getLineJoin()
Returns the line join style.
|
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.
|
java.awt.geom.AffineTransform |
getTransform()
Retruns the transform of the appearance.
|
java.awt.geom.Point2D |
getTranslation()
Get the translation vector.
|
float |
getTransparency()
Get the transparency of the current color (range 0 .. 1.0).
|
boolean |
getVisible()
Get the visibility.
|
boolean |
isVisible()
Returns a boolean whether the object is visible.
|
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 |
setBackgroundColor(java.awt.Color color)
Sets the background color for the Graphics2D context.
|
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 |
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 |
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 |
setLineJoin(int join)
Retrieves the line join style.
|
void |
setLineWidth(float w)
Sets the line width of the stroke.
|
void |
setMiterLimit(float limit)
Retrieves the limit of miter joins.
|
void |
setScale(double sx,
double sy)
Sets the possibly non-uniform scale component of the current transform.
|
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 |
setTranslation(double x,
double y)
Concatenates the current Graphics2D Transform with a translation transform.
|
void |
setTransparency(float t)
Set the transparency.
|
void |
setVisible(boolean flag)
Set the visibility.
|
getVersion, releasestatic final java.awt.BasicStroke LINE_STROKE
static final java.awt.BasicStroke DOT_STROKE
static final java.awt.BasicStroke DASH_STROKE
static final java.awt.BasicStroke DOT_DASH_STROKE
static final java.awt.BasicStroke DOT_DOT_DASH_STROKE
void setColor(java.awt.Color c)
c - the color.Colorjava.awt.Color getColor()
Colorvoid setTransparency(float t)
t - The transparency.float getTransparency()
void setFont(java.awt.Font font)
font - The font.Fontjava.awt.Font getFont()
Fontvoid setBackgroundColor(java.awt.Color color)
color - The color of the backgroundGraphics2Djava.awt.Color getBackgroundColor()
Graphics2Dvoid setStroke(java.awt.Stroke s)
s - The Stroke style.Strokejava.awt.Stroke getStroke()
Strokevoid setFill(java.awt.Shape s)
s - the filling shape.Shapejava.awt.Shape getFill()
Shapevoid setTransform(java.awt.geom.AffineTransform t)
t - the affine transformation.java.awt.AffineTransformjava.awt.geom.AffineTransform getTransform()
java.awt.AffineTransformvoid setTranslation(double x,
double y)
x - Translation in xy - Translation in yGraphics2Djava.awt.geom.Point2D getTranslation()
setTranlation(double, double)void setScale(double sx,
double sy)
sx - scale value in x.sy - scale value in y.void setClip(double x,
double y,
double width,
double height)
x, - y, width, heigth The bounding box.void setClip(java.awt.Shape clip)
clip - The clipping shape.Shapejava.awt.Shape getClip()
Shapevoid configure(java.awt.Graphics2D g)
g - The Graphical context.boolean isVisible()
void setVisible(boolean flag)
flag - true if the object should be visible.boolean getVisible()
void setLineWidth(float w)
w - The line width.BasicStrokefloat getLineWidth()
BasicStrokevoid setDashArray(float[] arr)
arr - The segment array.BasicStrokefloat[] getDashArray()
BasicStrokevoid setDashPhase(float phase)
phase - the dash phase.BasicStrokefloat getDashPhase()
BasicStrokevoid setEndCap(int cap)
BasicStrokeint getEndCap()
BasicStrokevoid setLineJoin(int join)
join - the line join style.BasicStrokeint getLineJoin()
BasicStrokevoid setMiterLimit(float limit)
limit - the limit.BasicStrokefloat getMiterLimit()
BasicStrokejava.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.