|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ijchart.xychart.render.AbstractRender
com.ijchart.xychart.render.noaxis.AbstractNoAxisRender
com.ijchart.xychart.render.noaxis.SpiderWebRender
public class SpiderWebRender
Title: IJChart
Description: a chart library for the Java(tm) platform.
Draw spider web chart shapes.Copyright: Copyright (c) 2013
Company:
Field Summary | |
---|---|
static java.awt.Paint |
DEFAULT_AXIS_LINE_PAINT
The default paint used to draw the axis lines. |
static java.awt.Stroke |
DEFAULT_AXIS_LINE_STROKE
The default stroke used to draw the axis lines. |
static Rotation |
DEFAULT_DIRECTION
The default rotation of draw axis. |
static double |
DEFAULT_HEAD_SIZE
The default head radius percent (currently 1%). |
static double |
DEFAULT_INTERIOR_GAP
The default space left around the outside of the plot as a percentage. |
static java.awt.Font |
DEFAULT_LABEL_FONT
The default font used to display the labels. |
static java.awt.Paint |
DEFAULT_LABEL_PAINT
The default color used to draw the category labels. |
static double |
DEFAULT_START_ANGLE
The default starting angle. |
Constructor Summary | |
---|---|
SpiderWebRender(IMatrixDataset dataset)
constructor. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Creates and returns a copy of this object. |
protected IChartShape |
createItemShapeOnly(java.awt.geom.Rectangle2D rect,
java.lang.String text,
java.lang.Object appendParam)
Create a shape with no attribute specified. |
void |
drawAllItems(java.awt.geom.Rectangle2D dataArea,
RenderShapeCollection renderShapes,
float alpha)
Draws all data items. |
boolean |
equals(java.lang.Object obj)
Tests this instance for equality with an arbitrary object. |
java.awt.Paint |
getAxisLinePaint()
Returns the paint used to draw the axis lines. |
java.awt.Stroke |
getAxisLineStroke()
Returns the stroke used to draw the axis lines. |
Rotation |
getDirection()
Returns the rotation of draw axis. |
double |
getHeadSize()
Returns the head size. |
double |
getInteriorGap()
Returns the space left around the outside of the plot as a percentage. |
java.awt.Font |
getLabelFont()
Returns the font used to display the labels. |
protected IChartShape[] |
getLegendItemShapes(int legendCount)
Returns the shape array of legend items. |
LegendType |
getLegendType()
Return the legend type. |
double |
getStartAngle()
Returns the starting angle. |
int |
hashCode()
Returns a hash code value for the object. |
void |
setAxisLinePaint(java.awt.Paint paint)
Sets the paint used to draw the axis lines and sends a RenderChangeEvent to all registered listeners. |
void |
setAxisLineStroke(java.awt.Stroke stroke)
Sets the stroke used to draw the axis lines and sends a RenderChangeEvent to all registered listeners. |
void |
setDirection(Rotation direction)
Sets the rotation of draw axis and sends a RenderChangeEvent to all registered listeners. |
void |
setHeadSize(double size)
Sets the head size and sends a RenderChangeEvent to all registered listeners. |
void |
setInteriorGap(double gap)
Sets the space left around the outside of the plot as a percentage and sends a RenderChangeEvent to all registered listeners. |
void |
setLabelFont(java.awt.Font font)
Sets the font used to display the labels and sends a RenderChangeEvent to all registered listeners. |
void |
setStartAngle(double angle)
Sets the starting angle and sends a RenderChangeEvent to all registered listeners. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class com.ijchart.xychart.render.noaxis.AbstractNoAxisRender |
---|
createItemShape |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final double DEFAULT_HEAD_SIZE
public static final double DEFAULT_INTERIOR_GAP
public static final java.awt.Paint DEFAULT_AXIS_LINE_PAINT
public static final java.awt.Stroke DEFAULT_AXIS_LINE_STROKE
public static final Rotation DEFAULT_DIRECTION
public static final double DEFAULT_START_ANGLE
public static final java.awt.Font DEFAULT_LABEL_FONT
public static final java.awt.Paint DEFAULT_LABEL_PAINT
Constructor Detail |
---|
public SpiderWebRender(IMatrixDataset dataset)
dataset
- IMatrixDataset
The dataset (null not permitted).Method Detail |
---|
public double getHeadSize()
public void setHeadSize(double size)
RenderChangeEvent
to all registered listeners.
size
- double
The head size,in percent.public double getInteriorGap()
public void setInteriorGap(double gap)
RenderChangeEvent
to all registered listeners.
gap
- double
The space size.public java.awt.Paint getAxisLinePaint()
public void setAxisLinePaint(java.awt.Paint paint)
RenderChangeEvent
to all registered listeners.
paint
- Paint
The paint (null not permitted).public java.awt.Stroke getAxisLineStroke()
public void setAxisLineStroke(java.awt.Stroke stroke)
RenderChangeEvent
to all registered listeners.
stroke
- Stroke
The stroke (null not permitted).public Rotation getDirection()
public void setDirection(Rotation direction)
RenderChangeEvent
to all registered listeners.
direction
- Rotation
The rotation (null not permitted).public double getStartAngle()
public void setStartAngle(double angle)
RenderChangeEvent
to all registered listeners.
angle
- double
The starting angle.public java.awt.Font getLabelFont()
public void setLabelFont(java.awt.Font font)
RenderChangeEvent
to all registered listeners.
font
- Font
The font (null not permitted).public void drawAllItems(java.awt.geom.Rectangle2D dataArea, RenderShapeCollection renderShapes, float alpha)
drawAllItems
in class AbstractNoAxisRender
dataArea
- Rectangle2D
The chart data area (null not permitted).renderShapes
- RenderShapeCollection
Collects information about the render (null not permitted).alpha
- float
The alpha transparency (in the range 0.0f to 1.0f, where 0.0f is fully transparent,
and 1.0f is fully opaque).protected IChartShape[] getLegendItemShapes(int legendCount)
getLegendItemShapes
in class AbstractRender
legendCount
- int
The legend items count.
public LegendType getLegendType()
getLegendType
in interface IRender
getLegendType
in class AbstractRender
protected IChartShape createItemShapeOnly(java.awt.geom.Rectangle2D rect, java.lang.String text, java.lang.Object appendParam)
createItemShapeOnly
in class AbstractRender
rect
- Rectangle2D
The bar rectangle (null not permitted).text
- String
The text (null permitted).appendParam
- Object
The append parameter,used for special propose (null permitted).
public boolean equals(java.lang.Object obj)
equals
in class AbstractNoAxisRender
obj
- the object (null permitted).
public int hashCode()
hashCode
in class AbstractNoAxisRender
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class AbstractNoAxisRender
java.lang.CloneNotSupportedException
- if the object's class does not
support the Cloneable interface. Subclasses
that override the clone method can also
throw this exception to indicate that an instance cannot
be cloned.public java.lang.String toString()
toString
in class AbstractNoAxisRender
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |