|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.graphics.render.RenderingData
REVIEWJAVADOC: RenderingData.java : Ist das hier eine abgespeckte Schnittstelle zur Primitive interface.
The RenderingData class is used to describe the attributes of a
graphical object. It consists of several RenderingDataKey
objects that represent both the attributes of a graphical object and provide
an Illustrator to draw it. The following keys are supported:
KEY_STROKEStrokeFormat the graphical object
may use.
KEY_PAINTPaintFormat the graphical object
may use.
KEY_TEXTKEY_MARKER_BEGINMarkerFormat a line object may use
at the beginning of it.
KEY_MARKER_ENDMarkerFormat a line object may use at the
end of it.
KEY_ILLUSTRATORIllustrator instance that is responsible for
drawing the graphical object. This key is not optional and must
be given.
RenderingDataKey objects are frequently used in conjunction with
objects of class RenderingData. Class RenderingData
provides the supported keys as static constants.
Renderer,
RenderingDataKey| Field Summary | |
protected static int |
ID_KEY_ILLUSTRATOR
Constant that defines an identifier for a RenderingDataKey |
protected static int |
ID_KEY_MARKER_BEGIN
Constant that defines an identifier for a RenderingDataKey |
protected static int |
ID_KEY_MARKER_END
Constant that defines an identifier for a RenderingDataKey |
protected static int |
ID_KEY_PAINT
Constant that defines an identifier for a RenderingDataKey |
protected static int |
ID_KEY_STROKE
Constant that defines an identifier for a RenderingDataKey |
protected static int |
ID_KEY_STROKE_CAPS
Constant that defines an identifier for a RenderingDataKey |
protected static int |
ID_KEY_TEXT
Constant that defines an identifier for a RenderingDataKey |
static RenderingDataKey |
KEY_ILLUSTRATOR
Constant that defines a RenderingDataKey for the
Illustrator instance that renders the graphical
object |
static RenderingDataKey |
KEY_MARKER_BEGIN
Constant that defines a RenderingDataKey for rendering the
MarkerFormat at the begin of a line. |
static RenderingDataKey |
KEY_MARKER_END
Constant that defines a RenderingDataKey for rendering the
MarkerFormat at the end of a line. |
static RenderingDataKey |
KEY_PAINT
Constant that defines a RenderingDataKey for rendering the
PaintFormat of a graphical object |
static RenderingDataKey |
KEY_STROKE
Constant that defines a RenderingDataKey for rendering the
StrokeFormat of a graphical object |
static RenderingDataKey |
KEY_STROKE_CAPS
Constant that defines a RenderingDataKey for rendering the
caps of a stroke |
static RenderingDataKey |
KEY_TEXT
Constant that defines a RenderingDataKey for rendering the
text of a graphical object |
static int |
VALUE_STROKE_CAPS_DEFAULT
|
static int |
VALUE_STROKE_CAPS_NONE
Constants for the stroke caps |
static int |
VALUECOUNT_FONT
Constant that defines the number of values needed for the FontFormat rendering data array. |
static int |
VALUECOUNT_MARKER
Constant that defines the number of values needed for the MarkerFormat rendering data array. |
static int |
VALUECOUNT_PAINT
Constant that defines the number of values needed for the PaintFormat rendering data array. |
static int |
VALUECOUNT_STROKE
Constant that defines the number of values needed for the StrokeFormat rendering data array. |
static int |
VALUECOUNT_TEXT
Constant that defines the number of values needed for the rendering data array for text. |
static int |
VALUEINDEX_FONT_COLOR
Constant that defines the index for the corresponding object in a FontFormat rendering data array. |
static int |
VALUEINDEX_FONT_FAMILY
Constant that defines the index for the corresponding object in a FontFormat rendering data array. |
static int |
VALUEINDEX_FONT_ITALIC
Constant that defines the index for the corresponding object in a FontFormat rendering data array. |
static int |
VALUEINDEX_FONT_SIZE
Constant that defines the index for the corresponding object in a FontFormat rendering data array. |
static int |
VALUEINDEX_FONT_STRIKETHROUGH
Constant that defines the index for the corresponding object in a FontFormat rendering data array. |
static int |
VALUEINDEX_FONT_STRIKETHROUGHSTROKE
Constant that defines the index for the corresponding object in a FontFormat rendering data array. |
static int |
VALUEINDEX_FONT_UNDERLINE
Constant that defines the index for the corresponding object in a FontFormat rendering data array. |
static int |
VALUEINDEX_FONT_UNDERLINESTROKE
Constant that defines the index for the corresponding object in a FontFormat rendering data array. |
static int |
VALUEINDEX_FONT_VISIBLE
Constant that defines the index for the corresponding object in a FontFormat rendering data array. |
static int |
VALUEINDEX_FONT_WEIGHT
Constant that defines the index for the corresponding object in a FontFormat rendering data array. |
static int |
VALUEINDEX_MARKER_PAINT
Constant that defines the index for the corresponding object in a MarkerFormat rendering data array. |
static int |
VALUEINDEX_MARKER_SIZE
Constant that defines the index for the corresponding object in a MarkerFormat rendering data array. |
static int |
VALUEINDEX_MARKER_STROKE
Constant that defines the index for the corresponding object in a MarkerFormat rendering data array. |
static int |
VALUEINDEX_MARKER_TYPE
Constant that defines the index for the corresponding object in a MarkerFormat rendering data array. |
static int |
VALUEINDEX_MARKER_VISIBLE
Constant that defines the index for the corresponding object in a MarkerFormat rendering data array. |
static int |
VALUEINDEX_PAINT_COLORBACK
Constant that defines the index for the corresponding object in a PaintFormat rendering data array. |
static int |
VALUEINDEX_PAINT_COLORFORE
Constant that defines the index for the corresponding object in a PaintFormat rendering data array. |
static int |
VALUEINDEX_PAINT_GRADIENTTYPE
Constant that defines the index for the corresponding object in a PaintFormat rendering data array. |
static int |
VALUEINDEX_PAINT_PATTERNTYPE
Constant that defines the index for the corresponding object in a PaintFormat rendering data array. |
static int |
VALUEINDEX_PAINT_STYLE
Constant that defines the index for the corresponding object in a PaintFormat rendering data array. |
static int |
VALUEINDEX_PAINT_TEXTURE
Constant that defines the index for the corresponding object in a PaintFormat rendering data array. |
static int |
VALUEINDEX_PAINT_TRANSPARENCY
Constant that defines the index for the corresponding object in a PaintFormat rendering data array. |
static int |
VALUEINDEX_PAINT_TRANSPARENT
Constant that defines the index for the corresponding object in a PaintFormat rendering data array. |
static int |
VALUEINDEX_PAINT_VISIBLE
Constant that defines the index for the corresponding object in a PaintFormat rendering data array. |
static int |
VALUEINDEX_STROKE_COLOR
Constant that defines the index for the corresponding object in a StrokeFormat rendering data array. |
static int |
VALUEINDEX_STROKE_PATTERN
Constant that defines the index for the corresponding object in a StrokeFormat rendering data array. |
static int |
VALUEINDEX_STROKE_SCALEVALUES
Constant that defines the index for the corresponding object in a StrokeFormat rendering data array. |
static int |
VALUEINDEX_STROKE_STYLE
Constant that defines the index for the corresponding object in a StrokeFormat rendering data array. |
static int |
VALUEINDEX_STROKE_VISIBLE
Constant that defines the index for the corresponding object in a StrokeFormat rendering data array. |
static int |
VALUEINDEX_STROKE_WEIGHT
Constant that defines the index for the corresponding object in a StrokeFormat rendering data array. |
static int |
VALUEINDEX_TEXT_ALIGNMENTS
Constant that defines the index for the corresponding object in a rendering data array for text. |
static int |
VALUEINDEX_TEXT_BACKGROUND
Constant that defines the index for the corresponding object in a rendering data array for text. |
static int |
VALUEINDEX_TEXT_CLIPP
Constant that defines the index for the corresponding object in a rendering data array for text. |
static int |
VALUEINDEX_TEXT_FONT
Constant that defines the index for the corresponding object in a rendering data array for text. |
static int |
VALUEINDEX_TEXT_PRIMITIVE_BBOX
Constant that defines the index for the corresponding object in a rendering data array for text. |
static int |
VALUEINDEX_TEXT_PRIMITIVE_TRANSFORM
Constant that defines the index for the corresponding object in a rendering data array for text. |
static int |
VALUEINDEX_TEXT_SCALEVALUES
Constant that defines the index for the corresponding object in a rendering data array for text. |
static int |
VALUEINDEX_TEXT_TEXTRUNS
Constant that defines the index for the corresponding object in a rendering data array for text. |
| Constructor Summary | |
RenderingData()
Constructor for RenderingData |
|
| Method Summary | |
java.lang.Object |
get(RenderingDataKey key)
Returns the value of the RenderingDataKey given by
key. |
void |
put(RenderingDataKey key,
java.lang.Object value)
Sets the Object given by value as value for the
RenderingDataKey given by key. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int VALUEINDEX_STROKE_VISIBLE
StrokeFormat rendering data array.
public static final int VALUEINDEX_STROKE_STYLE
StrokeFormat rendering data array.
public static final int VALUEINDEX_STROKE_WEIGHT
StrokeFormat rendering data array.
public static final int VALUEINDEX_STROKE_COLOR
StrokeFormat rendering data array.
public static final int VALUEINDEX_STROKE_SCALEVALUES
StrokeFormat rendering data array.
public static final int VALUEINDEX_STROKE_PATTERN
StrokeFormat rendering data array.
public static final int VALUECOUNT_STROKE
StrokeFormat rendering data array.
public static final int VALUEINDEX_PAINT_VISIBLE
PaintFormat rendering data array.
public static final int VALUEINDEX_PAINT_STYLE
PaintFormat rendering data array.
public static final int VALUEINDEX_PAINT_COLORBACK
PaintFormat rendering data array.
public static final int VALUEINDEX_PAINT_COLORFORE
PaintFormat rendering data array.
public static final int VALUEINDEX_PAINT_GRADIENTTYPE
PaintFormat rendering data array.
public static final int VALUEINDEX_PAINT_PATTERNTYPE
PaintFormat rendering data array.
public static final int VALUEINDEX_PAINT_TEXTURE
PaintFormat rendering data array.
public static final int VALUEINDEX_PAINT_TRANSPARENCY
PaintFormat rendering data array.
public static final int VALUEINDEX_PAINT_TRANSPARENT
PaintFormat rendering data array.
public static final int VALUECOUNT_PAINT
PaintFormat rendering data array.
public static final int VALUEINDEX_FONT_VISIBLE
FontFormat rendering data array.
public static final int VALUEINDEX_FONT_SIZE
FontFormat rendering data array.
public static final int VALUEINDEX_FONT_WEIGHT
FontFormat rendering data array.
public static final int VALUEINDEX_FONT_FAMILY
FontFormat rendering data array.
public static final int VALUEINDEX_FONT_COLOR
FontFormat rendering data array.
public static final int VALUEINDEX_FONT_ITALIC
FontFormat rendering data array.
public static final int VALUEINDEX_FONT_UNDERLINE
FontFormat rendering data array.
public static final int VALUEINDEX_FONT_STRIKETHROUGH
FontFormat rendering data array.
public static final int VALUEINDEX_FONT_UNDERLINESTROKE
FontFormat rendering data array.
public static final int VALUEINDEX_FONT_STRIKETHROUGHSTROKE
FontFormat rendering data array.
public static final int VALUECOUNT_FONT
FontFormat rendering data array.
public static final int VALUEINDEX_MARKER_VISIBLE
MarkerFormat rendering data array.
public static final int VALUEINDEX_MARKER_TYPE
MarkerFormat rendering data array.
public static final int VALUEINDEX_MARKER_SIZE
MarkerFormat rendering data array.
public static final int VALUEINDEX_MARKER_STROKE
MarkerFormat rendering data array.
public static final int VALUEINDEX_MARKER_PAINT
MarkerFormat rendering data array.
public static final int VALUECOUNT_MARKER
MarkerFormat rendering data array.
public static final int VALUEINDEX_TEXT_FONT
public static final int VALUEINDEX_TEXT_PRIMITIVE_TRANSFORM
public static final int VALUEINDEX_TEXT_PRIMITIVE_BBOX
public static final int VALUEINDEX_TEXT_CLIPP
public static final int VALUEINDEX_TEXT_ALIGNMENTS
public static final int VALUEINDEX_TEXT_TEXTRUNS
public static final int VALUEINDEX_TEXT_SCALEVALUES
public static final int VALUEINDEX_TEXT_BACKGROUND
public static final int VALUECOUNT_TEXT
protected static final int ID_KEY_STROKE
RenderingDataKey
protected static final int ID_KEY_PAINT
RenderingDataKey
protected static final int ID_KEY_TEXT
RenderingDataKey
protected static final int ID_KEY_MARKER_BEGIN
RenderingDataKey
protected static final int ID_KEY_MARKER_END
RenderingDataKey
protected static final int ID_KEY_ILLUSTRATOR
RenderingDataKey
protected static final int ID_KEY_STROKE_CAPS
RenderingDataKey
public static final int VALUE_STROKE_CAPS_NONE
public static final int VALUE_STROKE_CAPS_DEFAULT
public static final RenderingDataKey KEY_STROKE
RenderingDataKey for rendering the
StrokeFormat of a graphical object
public static final RenderingDataKey KEY_PAINT
RenderingDataKey for rendering the
PaintFormat of a graphical object
public static final RenderingDataKey KEY_MARKER_BEGIN
RenderingDataKey for rendering the
MarkerFormat at the begin of a line.
public static final RenderingDataKey KEY_MARKER_END
RenderingDataKey for rendering the
MarkerFormat at the end of a line.
public static final RenderingDataKey KEY_TEXT
RenderingDataKey for rendering the
text of a graphical object
public static final RenderingDataKey KEY_ILLUSTRATOR
RenderingDataKey for the
Illustrator instance that renders the graphical
object
public static final RenderingDataKey KEY_STROKE_CAPS
RenderingDataKey for rendering the
caps of a stroke
| Constructor Detail |
public RenderingData()
RenderingData
| Method Detail |
public java.lang.Object get(RenderingDataKey key)
RenderingDataKey given by
key.
key - the RenderingDataKey to return the value for
RenderingDataKey
public void put(RenderingDataKey key,
java.lang.Object value)
Object given by value as value for the
RenderingDataKey given by key.
key - the RenderingDataKey to set the value forvalue - the new value of the RenderingDataKey
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||