com.tensegrity.graphics.render
Class RenderingData

java.lang.Object
  extended bycom.tensegrity.graphics.render.RenderingData

public class RenderingData
extends java.lang.Object

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:

RenderingDataKey objects are frequently used in conjunction with objects of class RenderingData. Class RenderingData provides the supported keys as static constants.

Version:
$Id: RenderingData.java,v 1.21 2005/11/11 15:44:49 KevinCVS Exp $
Author:
MichaelKegel
See Also:
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

VALUEINDEX_STROKE_VISIBLE

public static final int VALUEINDEX_STROKE_VISIBLE
Constant that defines the index for the corresponding object in a StrokeFormat rendering data array.

See Also:
Constant Field Values

VALUEINDEX_STROKE_STYLE

public static final int VALUEINDEX_STROKE_STYLE
Constant that defines the index for the corresponding object in a StrokeFormat rendering data array.

See Also:
Constant Field Values

VALUEINDEX_STROKE_WEIGHT

public static final int VALUEINDEX_STROKE_WEIGHT
Constant that defines the index for the corresponding object in a StrokeFormat rendering data array.

See Also:
Constant Field Values

VALUEINDEX_STROKE_COLOR

public static final int VALUEINDEX_STROKE_COLOR
Constant that defines the index for the corresponding object in a StrokeFormat rendering data array.

See Also:
Constant Field Values

VALUEINDEX_STROKE_SCALEVALUES

public static final int VALUEINDEX_STROKE_SCALEVALUES
Constant that defines the index for the corresponding object in a StrokeFormat rendering data array.

See Also:
Constant Field Values

VALUEINDEX_STROKE_PATTERN

public static final int VALUEINDEX_STROKE_PATTERN
Constant that defines the index for the corresponding object in a StrokeFormat rendering data array.

See Also:
Constant Field Values

VALUECOUNT_STROKE

public static final int VALUECOUNT_STROKE
Constant that defines the number of values needed for the StrokeFormat rendering data array.

See Also:
Constant Field Values

VALUEINDEX_PAINT_VISIBLE

public static final int VALUEINDEX_PAINT_VISIBLE
Constant that defines the index for the corresponding object in a PaintFormat rendering data array.

See Also:
Constant Field Values

VALUEINDEX_PAINT_STYLE

public static final int VALUEINDEX_PAINT_STYLE
Constant that defines the index for the corresponding object in a PaintFormat rendering data array.

See Also:
Constant Field Values

VALUEINDEX_PAINT_COLORBACK

public static final int VALUEINDEX_PAINT_COLORBACK
Constant that defines the index for the corresponding object in a PaintFormat rendering data array.

See Also:
Constant Field Values

VALUEINDEX_PAINT_COLORFORE

public static final int VALUEINDEX_PAINT_COLORFORE
Constant that defines the index for the corresponding object in a PaintFormat rendering data array.

See Also:
Constant Field Values

VALUEINDEX_PAINT_GRADIENTTYPE

public static final int VALUEINDEX_PAINT_GRADIENTTYPE
Constant that defines the index for the corresponding object in a PaintFormat rendering data array.

See Also:
Constant Field Values

VALUEINDEX_PAINT_PATTERNTYPE

public static final int VALUEINDEX_PAINT_PATTERNTYPE
Constant that defines the index for the corresponding object in a PaintFormat rendering data array.

See Also:
Constant Field Values

VALUEINDEX_PAINT_TEXTURE

public static final int VALUEINDEX_PAINT_TEXTURE
Constant that defines the index for the corresponding object in a PaintFormat rendering data array.

See Also:
Constant Field Values

VALUEINDEX_PAINT_TRANSPARENCY

public static final int VALUEINDEX_PAINT_TRANSPARENCY
Constant that defines the index for the corresponding object in a PaintFormat rendering data array.

See Also:
Constant Field Values

VALUEINDEX_PAINT_TRANSPARENT

public static final int VALUEINDEX_PAINT_TRANSPARENT
Constant that defines the index for the corresponding object in a PaintFormat rendering data array.

See Also:
Constant Field Values

VALUECOUNT_PAINT

public static final int VALUECOUNT_PAINT
Constant that defines the number of values needed for the PaintFormat rendering data array.

See Also:
Constant Field Values

VALUEINDEX_FONT_VISIBLE

public static final int VALUEINDEX_FONT_VISIBLE
Constant that defines the index for the corresponding object in a FontFormat rendering data array.

See Also:
Constant Field Values

VALUEINDEX_FONT_SIZE

public static final int VALUEINDEX_FONT_SIZE
Constant that defines the index for the corresponding object in a FontFormat rendering data array.

See Also:
Constant Field Values

VALUEINDEX_FONT_WEIGHT

public static final int VALUEINDEX_FONT_WEIGHT
Constant that defines the index for the corresponding object in a FontFormat rendering data array.

See Also:
Constant Field Values

VALUEINDEX_FONT_FAMILY

public static final int VALUEINDEX_FONT_FAMILY
Constant that defines the index for the corresponding object in a FontFormat rendering data array.

See Also:
Constant Field Values

VALUEINDEX_FONT_COLOR

public static final int VALUEINDEX_FONT_COLOR
Constant that defines the index for the corresponding object in a FontFormat rendering data array.

See Also:
Constant Field Values

VALUEINDEX_FONT_ITALIC

public static final int VALUEINDEX_FONT_ITALIC
Constant that defines the index for the corresponding object in a FontFormat rendering data array.

See Also:
Constant Field Values

VALUEINDEX_FONT_UNDERLINE

public static final int VALUEINDEX_FONT_UNDERLINE
Constant that defines the index for the corresponding object in a FontFormat rendering data array.

See Also:
Constant Field Values

VALUEINDEX_FONT_STRIKETHROUGH

public static final int VALUEINDEX_FONT_STRIKETHROUGH
Constant that defines the index for the corresponding object in a FontFormat rendering data array.

See Also:
Constant Field Values

VALUEINDEX_FONT_UNDERLINESTROKE

public static final int VALUEINDEX_FONT_UNDERLINESTROKE
Constant that defines the index for the corresponding object in a FontFormat rendering data array.

See Also:
Constant Field Values

VALUEINDEX_FONT_STRIKETHROUGHSTROKE

public static final int VALUEINDEX_FONT_STRIKETHROUGHSTROKE
Constant that defines the index for the corresponding object in a FontFormat rendering data array.

See Also:
Constant Field Values

VALUECOUNT_FONT

public static final int VALUECOUNT_FONT
Constant that defines the number of values needed for the FontFormat rendering data array.

See Also:
Constant Field Values

VALUEINDEX_MARKER_VISIBLE

public static final int VALUEINDEX_MARKER_VISIBLE
Constant that defines the index for the corresponding object in a MarkerFormat rendering data array.

See Also:
Constant Field Values

VALUEINDEX_MARKER_TYPE

public static final int VALUEINDEX_MARKER_TYPE
Constant that defines the index for the corresponding object in a MarkerFormat rendering data array.

See Also:
Constant Field Values

VALUEINDEX_MARKER_SIZE

public static final int VALUEINDEX_MARKER_SIZE
Constant that defines the index for the corresponding object in a MarkerFormat rendering data array.

See Also:
Constant Field Values

VALUEINDEX_MARKER_STROKE

public static final int VALUEINDEX_MARKER_STROKE
Constant that defines the index for the corresponding object in a MarkerFormat rendering data array.

See Also:
Constant Field Values

VALUEINDEX_MARKER_PAINT

public static final int VALUEINDEX_MARKER_PAINT
Constant that defines the index for the corresponding object in a MarkerFormat rendering data array.

See Also:
Constant Field Values

VALUECOUNT_MARKER

public static final int VALUECOUNT_MARKER
Constant that defines the number of values needed for the MarkerFormat rendering data array.

See Also:
Constant Field Values

VALUEINDEX_TEXT_FONT

public static final int VALUEINDEX_TEXT_FONT
Constant that defines the index for the corresponding object in a rendering data array for text.

See Also:
Constant Field Values

VALUEINDEX_TEXT_PRIMITIVE_TRANSFORM

public static final int VALUEINDEX_TEXT_PRIMITIVE_TRANSFORM
Constant that defines the index for the corresponding object in a rendering data array for text.

See Also:
Constant Field Values

VALUEINDEX_TEXT_PRIMITIVE_BBOX

public static final int VALUEINDEX_TEXT_PRIMITIVE_BBOX
Constant that defines the index for the corresponding object in a rendering data array for text.

See Also:
Constant Field Values

VALUEINDEX_TEXT_CLIPP

public static final int VALUEINDEX_TEXT_CLIPP
Constant that defines the index for the corresponding object in a rendering data array for text.

See Also:
Constant Field Values

VALUEINDEX_TEXT_ALIGNMENTS

public static final int VALUEINDEX_TEXT_ALIGNMENTS
Constant that defines the index for the corresponding object in a rendering data array for text.

See Also:
Constant Field Values

VALUEINDEX_TEXT_TEXTRUNS

public static final int VALUEINDEX_TEXT_TEXTRUNS
Constant that defines the index for the corresponding object in a rendering data array for text.

See Also:
Constant Field Values

VALUEINDEX_TEXT_SCALEVALUES

public static final int VALUEINDEX_TEXT_SCALEVALUES
Constant that defines the index for the corresponding object in a rendering data array for text.

See Also:
Constant Field Values

VALUEINDEX_TEXT_BACKGROUND

public static final int VALUEINDEX_TEXT_BACKGROUND
Constant that defines the index for the corresponding object in a rendering data array for text.

See Also:
Constant Field Values

VALUECOUNT_TEXT

public static final int VALUECOUNT_TEXT
Constant that defines the number of values needed for the rendering data array for text.

See Also:
Constant Field Values

ID_KEY_STROKE

protected static final int ID_KEY_STROKE
Constant that defines an identifier for a RenderingDataKey

See Also:
Constant Field Values

ID_KEY_PAINT

protected static final int ID_KEY_PAINT
Constant that defines an identifier for a RenderingDataKey

See Also:
Constant Field Values

ID_KEY_TEXT

protected static final int ID_KEY_TEXT
Constant that defines an identifier for a RenderingDataKey

See Also:
Constant Field Values

ID_KEY_MARKER_BEGIN

protected static final int ID_KEY_MARKER_BEGIN
Constant that defines an identifier for a RenderingDataKey

See Also:
Constant Field Values

ID_KEY_MARKER_END

protected static final int ID_KEY_MARKER_END
Constant that defines an identifier for a RenderingDataKey

See Also:
Constant Field Values

ID_KEY_ILLUSTRATOR

protected static final int ID_KEY_ILLUSTRATOR
Constant that defines an identifier for a RenderingDataKey

See Also:
Constant Field Values

ID_KEY_STROKE_CAPS

protected static final int ID_KEY_STROKE_CAPS
Constant that defines an identifier for a RenderingDataKey

See Also:
Constant Field Values

VALUE_STROKE_CAPS_NONE

public static final int VALUE_STROKE_CAPS_NONE
Constants for the stroke caps

See Also:
Constant Field Values

VALUE_STROKE_CAPS_DEFAULT

public static final int VALUE_STROKE_CAPS_DEFAULT
See Also:
Constant Field Values

KEY_STROKE

public static final RenderingDataKey KEY_STROKE
Constant that defines a RenderingDataKey for rendering the StrokeFormat of a graphical object


KEY_PAINT

public static final RenderingDataKey KEY_PAINT
Constant that defines a RenderingDataKey for rendering the PaintFormat of a graphical object


KEY_MARKER_BEGIN

public static final RenderingDataKey KEY_MARKER_BEGIN
Constant that defines a RenderingDataKey for rendering the MarkerFormat at the begin of a line.


KEY_MARKER_END

public static final RenderingDataKey KEY_MARKER_END
Constant that defines a RenderingDataKey for rendering the MarkerFormat at the end of a line.


KEY_TEXT

public static final RenderingDataKey KEY_TEXT
Constant that defines a RenderingDataKey for rendering the text of a graphical object


KEY_ILLUSTRATOR

public static final RenderingDataKey KEY_ILLUSTRATOR
Constant that defines a RenderingDataKey for the Illustrator instance that renders the graphical object


KEY_STROKE_CAPS

public static final RenderingDataKey KEY_STROKE_CAPS
Constant that defines a RenderingDataKey for rendering the caps of a stroke

Constructor Detail

RenderingData

public RenderingData()
Constructor for RenderingData

Method Detail

get

public java.lang.Object get(RenderingDataKey key)
Returns the value of the RenderingDataKey given by key.

Parameters:
key - the RenderingDataKey to return the value for
Returns:
Object the value of the RenderingDataKey

put

public void put(RenderingDataKey key,
                java.lang.Object value)
Sets the Object given by value as value for the RenderingDataKey given by key.

Parameters:
key - the RenderingDataKey to set the value for
value - the new value of the RenderingDataKey


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.