com.davisor.graphics.chart
Class MarkerRenderAttributes

java.lang.Object
  extended bycom.davisor.graphics.RenderAttributes
      extended bycom.davisor.graphics.chart.MarkerRenderAttributes
All Implemented Interfaces:
com.davisor.core.Dupable, java.io.Serializable

public class MarkerRenderAttributes
extends RenderAttributes

MarkerRenderAttributes represents rendering attributes for chart axis markers. The attributes cover the following sets of rendering attributes:

Since:
JDK1.2
See Also:
AxisRenderAttributes, BackRenderAttributes, ChartAttributes, PlotRenderAttributes, Serialized Form

Field Summary
static int DEFAULTS
          Index for the default attribute set (0).
static int LABEL
          Index for the label attribute set (3).
static int LINE
          Index for the line attribute set (2).
static int NROFSETS
          Number of marker render attribute sets (4).
static int POINT
          Index for the point attribute set (1).
 
Fields inherited from class com.davisor.graphics.RenderAttributes
ANTIALIASINDEX, ANTIALIASWORDS, AUTO, BACK, CEILING, CENTER, DIAGONAL, DOWN, FLOOR, FRONT, GRAPHICS, HORIZONTAL, INSIDE, LEFT, LEFTWALL, M_alignment, M_color, M_composite, M_defaultIndex, M_defaults, M_font, M_paint, M_shape, M_size, M_stroke, NE, NONE, NW, OFF, ON, OUTSIDE, RIGHT, RIGHTWALL, SE, SW, TEXT, THROUGH, UNSET, UP, VERTICAL
 
Constructor Summary
MarkerRenderAttributes()
          Default constructor.
MarkerRenderAttributes(MarkerRenderAttributes ra)
          Shallow copy constructor.
MarkerRenderAttributes(MarkerRenderAttributes ra, MarkerRenderAttributes defaults)
          Shallow copy constructor, with explicity given default values.
MarkerRenderAttributes(java.awt.Paint[] colors, java.awt.Paint[] paints, java.awt.Stroke[] strokes, java.awt.Shape[] shapes, java.awt.Font[] fonts, int[] aligments, java.awt.Composite[] composites, RenderAttributes defaults)
          Creates a render attributes set with given the initial attribute values.
MarkerRenderAttributes(java.awt.Paint color, java.awt.Paint paint, java.awt.Stroke stroke, java.awt.Shape shape, java.awt.Font font, int aligment, java.awt.Composite composite, RenderAttributes defaults)
          Creates a render attributes set with the given initial default attribute values.
 
Method Summary
 com.davisor.core.Dupable dup()
          Duplicates this object.
 java.lang.String toString()
          Gets marker rendering attributes XML representation.
 
Methods inherited from class com.davisor.graphics.RenderAttributes
equals, exchangeOrientation, getAlignment, getAlignment, getAlignment, getColor, getColor, getColor, getComposite, getComposite, getComposite, getDefaultAlignment, getDefaultColor, getDefaultComposite, getDefaultComposite, getDefaultFont, getDefaultPaint, getDefaults, getDefaultShape, getDefaultStroke, getDefaultStrokeWidth, getDiagonal, getFont, getFont, getFont, getHorizontal, getPaint, getPaint, getPaint, getShape, getShape, getShape, getStroke, getStroke, getStroke, getStrokeWidth, getStrokeWidth, getVertical, init, isDown, isHorizontal, isLeft, isRight, isUp, isVertical, next, setAlignment, setAlignment, setAlignment, setAlignment, setAlignment, setColor, setColor, setColor, setComposite, setComposite, setComposite, setDefaults, setFont, setFont, setFont, setPaint, setPaint, setPaint, setShape, setShape, setShape, setStroke, setStroke, setStroke, size, toAlignment, toAlignment, toAntialiasMode, toAntialiasMode, toString, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULTS

public static final int DEFAULTS
Index for the default attribute set (0).

See Also:
Constant Field Values

POINT

public static final int POINT
Index for the point attribute set (1).

See Also:
Constant Field Values

LINE

public static final int LINE
Index for the line attribute set (2).

See Also:
Constant Field Values

LABEL

public static final int LABEL
Index for the label attribute set (3).

See Also:
Constant Field Values

NROFSETS

public static final int NROFSETS
Number of marker render attribute sets (4).

See Also:
Constant Field Values
Constructor Detail

MarkerRenderAttributes

public MarkerRenderAttributes()
Default constructor.

See Also:
RenderAttributes.RenderAttributes(int)

MarkerRenderAttributes

public MarkerRenderAttributes(MarkerRenderAttributes ra)
Shallow copy constructor.

Parameters:
ra - render attributes to be copied (may be null)
See Also:
RenderAttributes.RenderAttributes(RenderAttributes)

MarkerRenderAttributes

public MarkerRenderAttributes(MarkerRenderAttributes ra,
                              MarkerRenderAttributes defaults)
Shallow copy constructor, with explicity given default values.

Parameters:
ra - render attributes to be copied (may be null)
defaults - default render attibutes (may be null)
See Also:
RenderAttributes.RenderAttributes(RenderAttributes,RenderAttributes)

MarkerRenderAttributes

public MarkerRenderAttributes(java.awt.Paint color,
                              java.awt.Paint paint,
                              java.awt.Stroke stroke,
                              java.awt.Shape shape,
                              java.awt.Font font,
                              int aligment,
                              java.awt.Composite composite,
                              RenderAttributes defaults)
Creates a render attributes set with the given initial default attribute values. The values will be installed on slot zero, the default index is also set to zero and exceptions are disabled. The result is that the attribute set will behave as if it had an equal value initially set for each slot.

Parameters:
color - initial color attribute values (may be null)
paint - initial paint attribute values (may be null)
stroke - initial stroke attribute values (may be null)
shape - initial shape attribute values (may be null)
font - initial font attribute values (may be null)
aligment - initial aligment attribute values (may be null)
composite - initial composite attribute values (may be null)
defaults - default attribute values (may be null)
See Also:
RenderAttributes.RenderAttributes(int,RenderAttributes,int, Paint,Paint,Stroke,Shape,Font,int, Composite)

MarkerRenderAttributes

public MarkerRenderAttributes(java.awt.Paint[] colors,
                              java.awt.Paint[] paints,
                              java.awt.Stroke[] strokes,
                              java.awt.Shape[] shapes,
                              java.awt.Font[] fonts,
                              int[] aligments,
                              java.awt.Composite[] composites,
                              RenderAttributes defaults)
Creates a render attributes set with given the initial attribute values. A null value array will leave all attributes' values as null (or UNSET).

Parameters:
colors - initial color attribute values (may be null)
paints - initial paint attribute values (may be null)
strokes - initial stroke attribute values (may be null)
shapes - initial shape attribute values (may be null)
fonts - initial font attribute values (may be null)
aligments - initial aligment attribute values (may be null)
composites - initial composite attribute values (may be null)
defaults - default attribute values (may be null)
See Also:
RenderAttributes.RenderAttributes(int,RenderAttributes,int, Paint[],Paint[],Stroke[],Shape[], Font[],int[],Composite[])
Method Detail

dup

public com.davisor.core.Dupable dup()
Description copied from class: RenderAttributes
Duplicates this object.

Specified by:
dup in interface com.davisor.core.Dupable
Overrides:
dup in class RenderAttributes

toString

public java.lang.String toString()
Gets marker rendering attributes XML representation. Marker rendering attributes are always part of marker, so their string representation is a attribute list suitable to be appended inside a XML tag.

Overrides:
toString in class RenderAttributes
See Also:
RenderAttributes.toString(int,String)


Copyright © 2001-2004 Davisor Oy. All Rights Reserved.