|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jdrawing.graphics.GraphicsElement
Base class for entities, that can be added to GraphicsModel
.
Field Summary | |
static java.lang.String |
BACKGROUND
Background style. |
static java.lang.String |
COLOR
Color style. |
static java.lang.String |
COMPOSITE
Composite style. |
static java.lang.String |
FONT
Font style. |
static java.lang.String |
PAINT
Paint style. |
protected Group |
parent
Parent Group of this element |
protected int |
position
Index of this elements in the children list of the parent Group |
static java.lang.String |
STROKE
Stroke style. |
static java.lang.String |
TRANSFORM
Transform style. |
Constructor Summary | |
GraphicsElement()
|
Method Summary | |
void |
addStyle(java.lang.String style,
java.lang.Object value)
Add style to this element |
Group |
getParent()
Returns this parent Group of this element. |
java.lang.Object |
getStyle(java.lang.String style)
Gets style of the element with given name |
java.lang.String[] |
getStyles()
Returns an array of names of all styles, assigned to this element. |
java.awt.geom.AffineTransform |
getTransform()
Returns the AffineTransform that is concatenation of
transform of parent group of the element and transform style of the element. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String COLOR
Color
public static final java.lang.String FONT
Font
public static final java.lang.String STROKE
Stroke
public static final java.lang.String BACKGROUND
Color
public static final java.lang.String COMPOSITE
Composite
public static final java.lang.String PAINT
Paint
public static final java.lang.String TRANSFORM
AffineTransform
protected Group parent
Group
of this element
protected int position
Group
Constructor Detail |
public GraphicsElement()
Method Detail |
public Group getParent()
Group
of this element.
Group
of this elementpublic void addStyle(java.lang.String style, java.lang.Object value)
style
- Name of the stylevalue
- Value of the stylepublic java.lang.Object getStyle(java.lang.String style)
style
- Name of the style
public java.lang.String[] getStyles()
public java.awt.geom.AffineTransform getTransform()
AffineTransform
that is concatenation of
transform of parent group of the element and transform style of the element.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |