|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.davisor.graphics.RenderAttributes
com.davisor.graphics.chart.LineRenderAttributes
LineRenderAttributes represents attributes for chart lines. Line
attributes are inherited from RenderAttributes super-class,
and they control the following line rendering aspects:
AxisRenderAttributes,
BackRenderAttributes,
ChartAttributes,
Serialized Form| Field Summary | |
static int |
BACK
Index for back attribute set (4). |
static int |
DEFAULTS
Index for default attribute set (0). |
static int |
LINE
Index for line attribute set (2). |
static int |
NROFSETS
Number of line render attribute sets (5). |
static int |
POINT
Index for point attribute set (1). |
static int |
VALUE
Index for value attribute set (3). |
| Fields inherited from class com.davisor.graphics.RenderAttributes |
ANTIALIASINDEX, ANTIALIASWORDS, AUTO, 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 | |
LineRenderAttributes()
Default constructor. |
|
LineRenderAttributes(LineRenderAttributes lra)
Shallow copy constructor. |
|
LineRenderAttributes(LineRenderAttributes lra,
LineRenderAttributes defaults)
Shallow copy constructor, with explicitly given default values. |
|
LineRenderAttributes(java.awt.Paint[] colors,
java.awt.Paint[] paints,
java.awt.Stroke[] strokes,
java.awt.Shape[] shapes,
java.awt.Font[] fonts,
int[] alignments,
java.awt.Composite[] composites,
RenderAttributes defaults)
Creates a render attributes set with the given initial attribute values. |
|
LineRenderAttributes(java.awt.Paint color,
java.awt.Paint paint,
java.awt.Stroke stroke,
java.awt.Shape shape,
java.awt.Font font,
int alignment,
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. |
protected void |
toString(java.lang.StringBuffer xml)
Generate XML attributes names. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int DEFAULTS
public static final int POINT
public static final int LINE
public static final int VALUE
public static final int BACK
public static final int NROFSETS
| Constructor Detail |
public LineRenderAttributes()
RenderAttributes.RenderAttributes(int)public LineRenderAttributes(LineRenderAttributes lra)
lra - render attributes to be copied (may be null)RenderAttributes.RenderAttributes(RenderAttributes)
public LineRenderAttributes(LineRenderAttributes lra,
LineRenderAttributes defaults)
If given defaults are null, given
principal render attributes defaults are used, if available. If
not, default attributes remains unset. In any case, they may be
later set with RenderAttributes.setDefaults(com.davisor.graphics.RenderAttributes).
If given principal render attributes source lra is
null, render attributes set size is copied from
given defaults, if possible. If both arguments are
null, render attribute set size and defaults
remain undetermined.
lra - render attributes to be copied (may be null)defaults - default render attibutes (may be null)RenderAttributes.RenderAttributes(RenderAttributes,RenderAttributes)
public LineRenderAttributes(java.awt.Paint color,
java.awt.Paint paint,
java.awt.Stroke stroke,
java.awt.Shape shape,
java.awt.Font font,
int alignment,
java.awt.Composite composite,
RenderAttributes defaults)
Minimum and maximum shape size values, if set, will define the size range to which the sizes of dynamically scaled shapes will mapped.
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)alignment - initial alignment attribute values
(RenderAttributes alignment code)composite - initial composite attribute values (may be null)defaults - default attribute values (may be null)
public LineRenderAttributes(java.awt.Paint[] colors,
java.awt.Paint[] paints,
java.awt.Stroke[] strokes,
java.awt.Shape[] shapes,
java.awt.Font[] fonts,
int[] alignments,
java.awt.Composite[] composites,
RenderAttributes defaults)
null (or UNSET).
Minimum and maximum shape size values, if set, will define the size range to which the sizes of dynamically scaled shapes will mapped.
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)alignments - initial alignment attribute values
(array of RenderAttributes alignment codes, may be null)composites - initial composite attribute values (may be null)defaults - default attribute values (may be null)| Method Detail |
public com.davisor.core.Dupable dup()
dup in interface com.davisor.core.Dupabledup in class RenderAttributesprotected void toString(java.lang.StringBuffer xml)
RenderAttributes.toString(int,String) that this method calls with appropriate
arguments.
toString in class RenderAttributesxml - string buffer to write xml attributes intoRenderAttributes.toString(),
RenderAttributes.toString(int,String)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||