|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectvisual.statik.AbstractTransformableContent
visual.statik.described.Content
public class Content
Described visual content that knows how to render and transform itself
| Field Summary |
|---|
| Fields inherited from class visual.statik.AbstractTransformableContent |
|---|
angle, relocated, rerotated, rescaled, x, xRotation, xScale, y, yRotation, yScale |
| Constructor Summary | |
|---|---|
Content()
Default Constructor |
|
Content(java.awt.Shape shape,
java.awt.Color color,
java.awt.Paint paint,
java.awt.Stroke stroke)
Explicit Value Constructor |
|
| Method Summary | |
|---|---|
java.awt.geom.Rectangle2D |
getBounds2D(boolean transformed)
Returns a high precision bounding box of the Content either before or after it is transformed |
java.awt.Color |
getColor()
Get the stroke Color |
java.awt.Paint |
getPaint()
Get the fill Paint |
java.awt.geom.PathIterator |
getPathIterator(boolean transformed)
Get a PathIterator |
java.awt.Stroke |
getStroke()
Get the Stroke |
void |
render(java.awt.Graphics g)
Render this described visual content |
void |
setColor(java.awt.Color color)
Set the Color to use for stroking |
void |
setPaint(java.awt.Paint paint)
Set the Paint to use for filling |
void |
setShape(java.awt.Shape shape)
Set the Shape |
void |
setStroke(java.awt.Stroke stroke)
Set the Stroke to use |
| Methods inherited from class visual.statik.AbstractTransformableContent |
|---|
getAffineTransform, getBounds2D, isTransformationRequired, setLocation, setRotation, setScale, setScale, setTransformationRequired |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface visual.statik.TransformableContent |
|---|
setLocation, setRotation, setScale |
| Constructor Detail |
|---|
public Content()
public Content(java.awt.Shape shape,
java.awt.Color color,
java.awt.Paint paint,
java.awt.Stroke stroke)
shape - The Shapecolor - The Color to stroke with (or null for no stroke)paint - The Paint to fill with (or null for no fill)stroke - The Stroke (or null for the default)| Method Detail |
|---|
public java.awt.geom.Rectangle2D getBounds2D(boolean transformed)
getBounds2D in interface TransformableContentgetBounds2D in class AbstractTransformableContenttransformed - true to get the BB of the transformed content
public java.awt.Color getColor()
public java.awt.Paint getPaint()
public java.awt.geom.PathIterator getPathIterator(boolean transformed)
transformed - true to get the transformed version
public java.awt.Stroke getStroke()
public void render(java.awt.Graphics g)
render in interface SimpleContentg - The rendering engine to usepublic void setColor(java.awt.Color color)
color - The Color to use (or null to prevent stroking)public void setPaint(java.awt.Paint paint)
paint - The Paint to use (or null to prevent filling)public void setShape(java.awt.Shape shape)
shape - The Shape (or null to render nothing)public void setStroke(java.awt.Stroke stroke)
stroke - The Stroke to use (or null to use the default)
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||