|
|||||||||
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.AbstractWithAxisRender
com.ijchart.xychart.render.xy.AbstractXYRender
com.ijchart.xychart.render.xy.XYLineAndShapeRender
public class XYLineAndShapeRender
Title: IJChart
Description: a chart library for the Java(tm) platform.
A render that draws shapes for each data item, and lines between data items (for use with theXYPlot
class).
Copyright: Copyright (c) 2013
Company:
Field Summary | |
---|---|
static boolean |
DEFAULT_BASE_ALLOW_DUPLICATE_XVALUE
A default flag that control (all rows) whether or not items duplicate x-values are allowed. |
static boolean |
DEFAULT_BASE_ITEM_AUTO_SORT
A default flag indicating whether or not items are automatically sorted. |
static boolean |
DEFAULT_BASE_ITEM_LINE_VISIBLE
A default flag indicating whether or not lines are drawn between non-null points. |
static boolean |
DEFAULT_BASE_ITEM_SHAPE_FILLED
A default flag indicating whether or not shapes are drawn for all points. |
static boolean |
DEFAULT_BASE_ITEM_SHAPE_VISIBLE
A default flag indicating whether or not shapes are drawn for all points. |
Constructor Summary | |
---|---|
XYLineAndShapeRender(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(AbstractValueAxis xAxis,
RectangleEdge xAxisEdge,
AbstractValueAxis yAxis,
RectangleEdge yAxisEdge,
java.awt.geom.Rectangle2D dataArea,
ChartOrientation orientation,
RenderShapeCollection renderShapes,
float alpha)
Draws all data items. |
boolean |
equals(java.lang.Object obj)
Tests this instance for equality with an arbitrary object. |
protected IChartShape[] |
getLegendItemShapes(int legendCount)
Returns the shape array of legend items. |
LegendType |
getLegendType()
Return the legend type. |
int |
hashCode()
Returns a hash code value for the object. |
boolean |
isBaseItemAllowDuplicateXvalues()
Returns a flag that control (all rows) whether or not items duplicate x-values are allowed. |
boolean |
isBaseItemAutoSort()
Returns a flag indicating whether or not items are automatically sorted. |
boolean |
isBaseItemLineVisible()
Returns the base 'lines visible' attribute. |
boolean |
isBaseItemShapeFilled()
Returns the base 'shape filled' attribute. |
boolean |
isBaseItemShapeVisible()
Returns the base 'shape visible' attribute. |
boolean |
isRowItemAllowDuplicateXvalue(int row)
A table of flags that control (per row) whether or not items duplicate x-values are allowed. |
boolean |
isRowItemAutoSort(int row)
Returns a flags that control (per row) whether or not items are automatically sorted. |
boolean |
isRowItemLineVisible(int row)
Returns the flag used to control whether or not the lines for a row is visible. |
boolean |
isRowItemShapeFilled(int row)
Returns the flag used to control whether or not the shapes for a row is filled. |
boolean |
isRowItemShapeVisible(int row)
Returns the flag used to control whether or not the shapes for a row is visible. |
void |
setBaseItemAllowDuplicateXvalues(boolean flag)
Sets a boolean flag that control (all rows) whether or not items duplicate x-values are allowed and sends a RenderChangeEvent to
all registered listeners. |
void |
setBaseItemAutoSort(boolean flag)
A flag indicating whether or not items are automatically sorted and sends a RenderChangeEvent to all registered listeners. |
void |
setBaseItemLineVisible(boolean flag)
Sets the base 'lines visible' flag and sends a RenderChangeEvent to all registered listeners. |
void |
setBaseItemShapeFilled(boolean flag)
Sets the base 'shapes filled' flag and sends a RenderChangeEvent to all registered listeners. |
void |
setBaseItemShapeVisible(boolean flag)
Sets the base 'shapes visible' flag and sends a RenderChangeEvent to all registered listeners. |
void |
setRowItemAllowDuplicateXvalue(int row,
boolean allowDuplicate)
Sets a flag that control (per row) whether or not items duplicate x-values are allowed, and sends a RenderChangeEvent to
all registered listeners. |
void |
setRowItemAutoSort(int row,
boolean autoSort)
A table of flags that control (per row) whether or not items are automatically sorted,and sends a RenderChangeEvent
to all registered listeners. |
void |
setRowItemLineVisible(int row,
boolean flag)
Sets the 'lines visible' flag for a row and sends a RenderChangeEvent to all registered listeners. |
void |
setRowItemShapeFilled(int row,
boolean filled)
Sets the 'shapes filled' flag for a row and sends a RenderChangeEvent to all registered listeners. |
void |
setRowItemShapeVisible(int row,
boolean flag)
Sets the 'shapes visible' flag for a row and sends a RenderChangeEvent . |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class com.ijchart.xychart.render.xy.AbstractXYRender |
---|
addAnnotation, drawAllAnnotation, getAllAnnotations, removeAllAnnotation |
Methods inherited from class com.ijchart.xychart.render.AbstractWithAxisRender |
---|
createItemShape, createValueMarkerShape, drawIntervalValueMarker, drawValueMarker, getValueAxisOffsetType |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final boolean DEFAULT_BASE_ITEM_LINE_VISIBLE
public static final boolean DEFAULT_BASE_ITEM_SHAPE_VISIBLE
public static final boolean DEFAULT_BASE_ITEM_SHAPE_FILLED
public static final boolean DEFAULT_BASE_ITEM_AUTO_SORT
public static final boolean DEFAULT_BASE_ALLOW_DUPLICATE_XVALUE
Constructor Detail |
---|
public XYLineAndShapeRender(IMatrixDataset dataset)
dataset
- IMatrixDataset
The dataset (null not permitted).Method Detail |
---|
public boolean isRowItemLineVisible(int row)
row
- int
The row index (zero-based).
public void setRowItemLineVisible(int row, boolean flag)
RenderChangeEvent
to all registered listeners.
row
- int
The row index (zero-based).flag
- boolean
The flag (null permitted).public boolean isBaseItemLineVisible()
public void setBaseItemLineVisible(boolean flag)
RenderChangeEvent
to all registered listeners.
flag
- boolean
The flag.public boolean isRowItemShapeVisible(int row)
row
- int
The row index (zero-based).
public void setRowItemShapeVisible(int row, boolean flag)
RenderChangeEvent
.
row
- int
The row index (zero-based).flag
- boolean
The flag (null permitted).public boolean isBaseItemShapeVisible()
public void setBaseItemShapeVisible(boolean flag)
RenderChangeEvent
to all registered listeners.
flag
- boolean
The flag.public boolean isRowItemShapeFilled(int row)
row
- boolean
The row index (zero-based).
public void setRowItemShapeFilled(int row, boolean filled)
RenderChangeEvent
to all registered listeners.
row
- int
The row index (zero-based).filled
- boolean
The flag (null permitted).public boolean isBaseItemShapeFilled()
public void setBaseItemShapeFilled(boolean flag)
RenderChangeEvent
to all registered listeners.
flag
- boolean
The flag.public void setRowItemAutoSort(int row, boolean autoSort)
RenderChangeEvent
to all registered listeners.
row
- int
The row index (zero-based).autoSort
- boolean
The flag (null permitted).public boolean isRowItemAutoSort(int row)
row
- boolean
The row index (zero-based).
public boolean isBaseItemAutoSort()
public void setBaseItemAutoSort(boolean flag)
RenderChangeEvent
to all registered listeners.
flag
- boolean
A boolean.public void setRowItemAllowDuplicateXvalue(int row, boolean allowDuplicate)
RenderChangeEvent
to
all registered listeners.
row
- int
The row index (zero-based).allowDuplicate
- boolean
The flag (null permitted).public boolean isRowItemAllowDuplicateXvalue(int row)
row
- boolean
The row index (zero-based).
public boolean isBaseItemAllowDuplicateXvalues()
public void setBaseItemAllowDuplicateXvalues(boolean flag)
RenderChangeEvent
to
all registered listeners.
flag
- boolean
A boolean.public void drawAllItems(AbstractValueAxis xAxis, RectangleEdge xAxisEdge, AbstractValueAxis yAxis, RectangleEdge yAxisEdge, java.awt.geom.Rectangle2D dataArea, ChartOrientation orientation, RenderShapeCollection renderShapes, float alpha)
drawAllItems
in class AbstractXYRender
xAxis
- AbstractValueAxis
The x value axis (null not permitted).xAxisEdge
- RectangleEdge
The x axis edge.yAxis
- AbstractValueAxis
The y value axis (null not permitted).yAxisEdge
- RectangleEdge
The y axis edge (null not permitted).dataArea
- Rectangle2D
The chart data area (null not permitted).orientation
- ChartOrientation
The chart orientation (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).public LegendType getLegendType()
getLegendType
in interface IRender
getLegendType
in class AbstractRender
protected IChartShape[] getLegendItemShapes(int legendCount)
getLegendItemShapes
in class AbstractRender
legendCount
- int
The legend items count.
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 AbstractXYRender
obj
- the object (null permitted).
public int hashCode()
hashCode
in class AbstractXYRender
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class AbstractXYRender
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 AbstractXYRender
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |