|
|||||||||
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.PolarRender
public class PolarRender
Title: IJChart
Description: a chart library for the Java(tm) platform.
Draw polar chart shapes.Copyright: Copyright (c) 2013
Company:
Field Summary | |
---|---|
static boolean |
DEFAULT_ANGLE_GRIDLINES_VISIBLE
A default flag that controls whether the angle grid-lines are visible. |
static java.awt.Font |
DEFAULT_ANGLE_LABEL_FONT
The default font used to draw the angle labels. |
static boolean |
DEFAULT_ANGLE_LABELS_VISIBLE
A default flag that controls whether or not the angle labels are visible. |
static java.awt.Paint |
DEFAULT_GRIDLINE_PAINT
The default grid line paint. |
static java.awt.Stroke |
DEFAULT_GRIDLINE_STROKE
The default grid line stroke. |
static java.awt.Paint |
DEFAULT_LABEL_PAINT
The paint used to display the angle labels. |
static double |
DEFAULT_MARGIN
The default margin around data area. |
static boolean |
DEFAULT_RADIUS_GRIDLINES_VISIBLE
A default flag that controls whether the radius grid-lines are visible. |
Constructor Summary | |
---|---|
PolarRender(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. |
void |
drawBackground(java.awt.geom.Rectangle2D dataArea,
ChartOrientation orientation,
RenderShapeCollection renderShapes)
Draws a background for the data area. |
boolean |
equals(java.lang.Object obj)
Tests this instance for equality with an arbitrary object. |
java.awt.Paint |
getAngleGridlinePaint()
Returns the paint used to draw the angle grid-lines. |
java.awt.Stroke |
getAngleGridlineStroke()
Returns the stroke used to draw the angle grid-lines. |
java.awt.Font |
getAngleLabelFont()
Returns the font used to draw the angle labels. |
java.awt.Paint |
getAngleLabelPaint()
Returns the paint used to display the angle labels. |
protected java.lang.String[][] |
getAngleTicks()
Returns the angle ticks (in degree). |
XYNumberValueAxis |
getAxis()
Returns the axis for draw tick marks. |
LegendType |
getLegendType()
Return the legend type. |
double |
getMargin()
Returns the margin around data area. |
java.awt.Paint |
getRadiusGridlinePaint()
Returns the paint used to draw the radius grid-lines and sends a RenderChangeEvent to all registered listeners. |
java.awt.Stroke |
getRadiusGridlineStroke()
Returns the stroke used to draw the radius grid-lines. |
int |
hashCode()
Returns a hash code value for the object. |
boolean |
isAngleGridlinesVisible()
Returns the flag that controls whether the angle grid-lines are visible. |
boolean |
isAngleLabelsVisible()
Returns the flag that whether or not the angle labels are visible. |
boolean |
isRadiusGridlinesVisible()
Returns the flag that controls whether the radius grid-lines are visible. |
void |
setAngleGridlinePaint(java.awt.Paint paint)
Sets the paint used to draw the angle grid-lines and sends a RenderChangeEvent to all registered listeners. |
void |
setAngleGridlineStroke(java.awt.Stroke stroke)
Sets the stroke used to draw the angle grid-lines and sends a RenderChangeEvent to all registered listeners. |
void |
setAngleGridlinesVisible(boolean flag)
A flag that controls whether the angle grid-lines are visible and sends a RenderChangeEvent to all registered listeners. |
void |
setAngleLabelFont(java.awt.Font font)
Sets the font used to draw the angle labels and sends a RenderChangeEvent to all registered listeners. |
void |
setAngleLabelPaint(java.awt.Paint paint)
Sets the paint used to display the angle labels and sends a RenderChangeEvent to all registered listeners. |
void |
setAngleLabelsVisible(boolean flag)
Sets the flag that controls whether or not the angle labels are visible and sends a RenderChangeEvent to all registered listeners. |
void |
setAxis(XYNumberValueAxis axis)
Sets the axis for draw tick marks. |
void |
setMargin(double margin)
Sets the margin around data area and sends a RenderChangeEvent to all registered listeners. |
void |
setRadiusGridlinePaint(java.awt.Paint paint)
Sets the paint used to draw the radius grid-lines. |
void |
setRadiusGridlineStroke(java.awt.Stroke stroke)
Sets the stroke used to draw the radius grid-lines and sends a RenderChangeEvent to all registered listeners. |
void |
setRadiusGridlinesVisible(boolean flag)
A flag that controls whether the radius grid-lines are visible 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_MARGIN
public static final java.awt.Stroke DEFAULT_GRIDLINE_STROKE
public static final java.awt.Paint DEFAULT_GRIDLINE_PAINT
public static final boolean DEFAULT_ANGLE_LABELS_VISIBLE
public static final java.awt.Font DEFAULT_ANGLE_LABEL_FONT
public static final java.awt.Paint DEFAULT_LABEL_PAINT
public static final boolean DEFAULT_ANGLE_GRIDLINES_VISIBLE
public static final boolean DEFAULT_RADIUS_GRIDLINES_VISIBLE
Constructor Detail |
---|
public PolarRender(IMatrixDataset dataset)
dataset
- IMatrixDataset
The dataset (null not permitted).Method Detail |
---|
public double getMargin()
public void setMargin(double margin)
RenderChangeEvent
to all registered listeners.
margin
- double
The margin.public boolean isAngleLabelsVisible()
public void setAngleLabelsVisible(boolean flag)
RenderChangeEvent
to all registered listeners.
flag
- boolean
A boolean.public java.awt.Font getAngleLabelFont()
public void setAngleLabelFont(java.awt.Font font)
RenderChangeEvent
to all registered listeners.
font
- Font
The font (null not permitted).public java.awt.Paint getAngleLabelPaint()
public void setAngleLabelPaint(java.awt.Paint paint)
RenderChangeEvent
to all registered listeners.
paint
- Paint
The paint (null not permitted).public boolean isAngleGridlinesVisible()
public void setAngleGridlinesVisible(boolean flag)
RenderChangeEvent
to all registered listeners.
flag
- boolean
A boolean.public java.awt.Stroke getAngleGridlineStroke()
public void setAngleGridlineStroke(java.awt.Stroke stroke)
RenderChangeEvent
to all registered listeners.
stroke
- Stroke
The stroke (null not permitted).public java.awt.Paint getAngleGridlinePaint()
public void setAngleGridlinePaint(java.awt.Paint paint)
RenderChangeEvent
to all registered listeners.
paint
- Paint
The paint (null not permitted).public boolean isRadiusGridlinesVisible()
public void setRadiusGridlinesVisible(boolean flag)
RenderChangeEvent
to all registered listeners.
flag
- boolean
A boolean.public java.awt.Stroke getRadiusGridlineStroke()
public void setRadiusGridlineStroke(java.awt.Stroke stroke)
RenderChangeEvent
to all registered listeners.
stroke
- Stroke
The stroke (null not permitted).public java.awt.Paint getRadiusGridlinePaint()
RenderChangeEvent
to all registered listeners.
public void setRadiusGridlinePaint(java.awt.Paint paint)
paint
- Paint
The paint (null not permitted).public XYNumberValueAxis getAxis()
public void setAxis(XYNumberValueAxis axis)
axis
- XYNumberValueAxis
The axis (null 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 java.lang.String[][] getAngleTicks()
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 void drawBackground(java.awt.geom.Rectangle2D dataArea, ChartOrientation orientation, RenderShapeCollection renderShapes)
drawBackground
in interface IRender
drawBackground
in class AbstractRender
dataArea
- Rectangle2D
The chart data area (null not permitted).orientation
- ChartOrientation
The chart draw orientation (null not permitted).renderShapes
- RenderShapeCollection
Collects information about the render (null not 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 |