|
|||||||||
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.category.AbstractCategoryRender
com.ijchart.xychart.render.category.MinMaxRender
public class MinMaxRender
Title: IJChart
Description: a chart library for the Java(tm) platform.
A render that draws individual data items as horizontal or vertical lines, spaced in the same way as bars in a bar chart.Copyright: Copyright (c) 2013
Company:
Field Summary | |
---|---|
static boolean |
DEFAULT_DRAW_GROUP_LINES
A default boolean flag controls whether or not draw plot lines. |
static java.awt.Paint |
DEFAULT_GROUP_LINE_PAINT
The default paint used to draw group line. |
static java.awt.Stroke |
DEFAULT_GROUP_LINE_STROKE
The default stroke used to draw group line. |
static java.awt.Shape |
DEFAULT_MAX_SHAPE
The default maximum value shape. |
static java.awt.Shape |
DEFAULT_MIN_SHAPE
The default minimum value shape. |
Fields inherited from class com.ijchart.xychart.render.category.AbstractCategoryRender |
---|
DEFAULT_BASE_VALUE, DEFAULT_ITEM_MARGIN, DEFAULT_MAXIMUM_BAR_WIDTH, DEFAULT_MINIMUM_BAR_WIDTH |
Constructor Summary | |
---|---|
MinMaxRender(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(CategoryAxis categoryAxis,
AbstractValueAxis valueAxis,
RectangleEdge valueAxisEdge,
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. |
java.awt.Paint |
getGroupLinePaint()
Returns the paint used to draw group line. |
java.awt.Stroke |
getGroupLineStroke()
Returns the stroke used to draw group line. |
LegendType |
getLegendType()
Return the legend type. |
java.awt.Shape |
getMaxShape()
Returns the maximum value shape. |
java.awt.Shape |
getMinShape()
Returns the minimum value shape. |
int |
hashCode()
Returns a hash code value for the object. |
boolean |
isDrawPlotLine()
Returns a boolean flag controls whether or not draw plot lines. |
void |
setDrawPlotLine(boolean flag)
Sets a boolean flag controls whether or not draw plot lines and sends a RenderChangeEvent to all registered listeners. |
void |
setGroupLinePaint(java.awt.Paint paint)
Sets the paint used to draw group line and sends a RenderChangeEvent to all registered listeners. |
void |
setGroupLineStroke(java.awt.Stroke stroke)
Sets the stroke used to draw group line and sends a RenderChangeEvent to all registered listeners. |
void |
setMaxShape(java.awt.Shape shape)
Sets the maximum value shape and sends a RenderChangeEvent to all registered listeners. |
void |
setMinShape(java.awt.Shape shape)
Sets the minimum value shape 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.category.AbstractCategoryRender |
---|
addAnnotation, createCategoryMarkerShape, drawAllAnnotation, drawCategoryMarker, getAllAnnotations, getBaseValue, getItemMargin, getMaximumBarWidth, getMinimumBarWidth, removeAllAnnotation, setBaseValue, setItemMargin, setMaximumBarWidth, setMinimumBarWidth |
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_DRAW_GROUP_LINES
public static final java.awt.Paint DEFAULT_GROUP_LINE_PAINT
public static final java.awt.Stroke DEFAULT_GROUP_LINE_STROKE
public static final java.awt.Shape DEFAULT_MIN_SHAPE
public static final java.awt.Shape DEFAULT_MAX_SHAPE
Constructor Detail |
---|
public MinMaxRender(IMatrixDataset dataset)
dataset
- IMatrixDataset
The dataset (null not permitted).Method Detail |
---|
public boolean isDrawPlotLine()
public void setDrawPlotLine(boolean flag)
RenderChangeEvent
to all registered listeners.
flag
- boolean
A boolean.public java.awt.Paint getGroupLinePaint()
public void setGroupLinePaint(java.awt.Paint paint)
RenderChangeEvent
to all registered listeners.
paint
- Paint
The paint used to draw group line (null permitted).public java.awt.Stroke getGroupLineStroke()
public void setGroupLineStroke(java.awt.Stroke stroke)
RenderChangeEvent
to all registered listeners.
stroke
- Stroke
The stroke used to draw group line (null permitted).public java.awt.Shape getMinShape()
public void setMinShape(java.awt.Shape shape)
RenderChangeEvent
to all registered listeners.
shape
- Shape
The minimum value shape (null permitted).public java.awt.Shape getMaxShape()
public void setMaxShape(java.awt.Shape shape)
RenderChangeEvent
to all registered listeners.
shape
- Shape
The maximum value shape (null permitted).public void drawAllItems(CategoryAxis categoryAxis, AbstractValueAxis valueAxis, RectangleEdge valueAxisEdge, java.awt.geom.Rectangle2D dataArea, ChartOrientation orientation, RenderShapeCollection renderShapes, float alpha)
drawAllItems
in class AbstractCategoryRender
categoryAxis
- CategoryAxis
The category axis (null not permitted).valueAxis
- AbstractValueAxis
The value axis (null not permitted).valueAxisEdge
- RectangleEdge
The value 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 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 AbstractCategoryRender
obj
- the object (null permitted).
public int hashCode()
hashCode
in class AbstractCategoryRender
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class AbstractCategoryRender
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 AbstractCategoryRender
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |