|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ijchart.xychart.shape.AbstractChartShape
com.ijchart.xychart.shape.MinMaxChartShape
public class MinMaxChartShape
Title: IJChart
Description: a chart library for the Java(tm) platform.
Draw a min and max valueIChartShape.
Copyright: Copyright (c) 2013
Company:
| Field Summary | |
|---|---|
static boolean |
DEFAULT_DRAW_GROUP_LINE
A default flag controls whether or not draw group line. |
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.Paint |
DEFAULT_MAX_SHAPE_PAINT
The default paint used to draw maximum value shape. |
static java.awt.Stroke |
DEFAULT_MAX_SHAPE_STROKE
The default stroke used to draw maximum value shape. |
static java.awt.Shape |
DEFAULT_MIN_SHAPE
The default minimum value shape. |
static java.awt.Paint |
DEFAULT_MIN_SHAPE_PAINT
The default paint used to draw minimum value shape. |
static java.awt.Stroke |
DEFAULT_MIN_SHAPE_STROKE
The default stroke used to draw minimum value shape. |
| Fields inherited from class com.ijchart.xychart.shape.AbstractChartShape |
|---|
DEFAULT_DRAW_TYPE, DEFAULT_SHAPE_ID, DEFAULT_VISIBLE, transformedShape |
| Constructor Summary | |
|---|---|
MinMaxChartShape(java.awt.geom.Point2D minShapePos,
java.awt.geom.Point2D maxShapePos)
Constructor. |
|
MinMaxChartShape(java.awt.geom.Point2D minShapePos,
java.awt.geom.Point2D maxShapePos,
java.awt.Shape minShape,
java.awt.Shape maxShape)
Constructor. |
|
| Method Summary | |
|---|---|
protected void |
calculateTransformedShape()
Calculate the transformed shape. |
java.lang.Object |
clone()
Creates and returns a copy of this object. |
void |
draw(java.awt.Graphics2D g2)
Draw the ChartShape on a Java 2d graphics device(such as the screen or the printer). |
protected void |
drawSelect(java.awt.Graphics2D g2)
Draw the selected ChartShape on a Java 2d graphics device(such as the screen or the printer). |
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. |
java.awt.Paint |
getGroupLinePaint()
Returns the paint used to draw group line. |
java.awt.Stroke |
getGroupLineStroke()
Returns the stroke used to draw group line. |
protected java.awt.Shape |
getHotspotShape()
Returns the hotspot shape. |
java.awt.geom.Point2D |
getLockPoint()
Returns the lock coordinates of this shape. |
java.awt.Shape |
getMaxShape()
Returns the maximum value shape. |
java.awt.Paint |
getMaxShapePaint()
Returns the paint used to draw maximum value shape. |
java.awt.geom.Point2D |
getMaxShapePos()
Returns the position of maximum value shape. |
java.awt.Stroke |
getMaxShapeStroke()
Returns the stroke used to draw maximum value shape. |
java.awt.Shape |
getMinShape()
Returns the minimum value shape. |
java.awt.Paint |
getMinShapePaint()
Returns the paint used to draw minimum value shape. |
java.awt.geom.Point2D |
getMinShapePos()
Returns the position of minimum value shape. |
java.awt.Stroke |
getMinShapeStroke()
Returns the stroke used to draw minimum value shape. |
ShapeType |
getShapeType()
The type for describe this shape. |
java.awt.geom.Point2D |
getTopLeftPoint()
Returns the top left corner coordinates of this shape (not consider rotation). |
int |
hashCode()
Returns a hash code value for the object. |
boolean |
isDrawGroupLine()
Returns a flag controls whether or not draw group line. |
void |
setDrawGroupLine(boolean flag)
Sets a flag controls whether or not draw group line and sends a ChartShapeChangeEvent to all registered listeners. |
void |
setGroupLinePaint(java.awt.Paint paint)
Sets the paint used to draw group line and sends a ChartShapeChangeEvent to all registered listeners. |
void |
setGroupLineStroke(java.awt.Stroke stroke)
Sets the stroke used to draw group line and sends a ChartShapeChangeEvent to all registered listeners. |
void |
setMaxShape(java.awt.Shape shape)
Sets the maximum value shape and sends a ChartShapeChangeEvent to all registered listeners. |
void |
setMaxShapePaint(java.awt.Paint paint)
Sets the paint used to draw maximum value shape and sends a ChartShapeChangeEvent to all registered listeners. |
void |
setMaxShapePos(java.awt.geom.Point2D point)
Sets the position of maximum value shape and sends a ChartShapeChangeEvent to all registered listeners. |
void |
setMaxShapeStroke(java.awt.Stroke stroke)
Sets the stroke used to draw maximum value shape and sends a ChartShapeChangeEvent to all registered listeners. |
void |
setMinShape(java.awt.Shape shape)
Sets the minimum value shape and sends a ChartShapeChangeEvent to all registered listeners. |
void |
setMinShapePaint(java.awt.Paint paint)
Sets the paint used to draw minimum value shape and sends a ChartShapeChangeEvent to all registered listeners. |
void |
setMinShapePos(java.awt.geom.Point2D point)
Sets the position of minimum value shape and sends a ChartShapeChangeEvent to all registered listeners. |
void |
setMinShapeStroke(java.awt.Stroke stroke)
Sets the stroke used to draw minimum value shape and sends a ChartShapeChangeEvent to all registered listeners. |
java.lang.String |
toString()
Returns a string representation of the object. |
void |
translate(double tx,
double ty)
Concatenates the current Graphics2D Transform with a translation transform.and sends a ChartShapeChangeEvent to all registered listeners. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.awt.Shape DEFAULT_MIN_SHAPE
public static final java.awt.Shape DEFAULT_MAX_SHAPE
public static final java.awt.Paint DEFAULT_MIN_SHAPE_PAINT
public static final java.awt.Paint DEFAULT_MAX_SHAPE_PAINT
public static final java.awt.Paint DEFAULT_GROUP_LINE_PAINT
public static final java.awt.Stroke DEFAULT_MIN_SHAPE_STROKE
public static final java.awt.Stroke DEFAULT_MAX_SHAPE_STROKE
public static final java.awt.Stroke DEFAULT_GROUP_LINE_STROKE
public static final boolean DEFAULT_DRAW_GROUP_LINE
| Constructor Detail |
|---|
public MinMaxChartShape(java.awt.geom.Point2D minShapePos,
java.awt.geom.Point2D maxShapePos)
minShapePos - Point2D
The position of minimum value shape (null permitted).maxShapePos - Point2D
The position of maximum value shape (null permitted).
public MinMaxChartShape(java.awt.geom.Point2D minShapePos,
java.awt.geom.Point2D maxShapePos,
java.awt.Shape minShape,
java.awt.Shape maxShape)
minShapePos - Point2D
The position of minimum value shape (null permitted).maxShapePos - Point2D
The position of maximum value shape (null permitted).minShape - Shape
The minimum value shape (null permitted).maxShape - Shape
The maximum value shape (null permitted).| Method Detail |
|---|
public java.awt.Shape getMinShape()
public void setMinShape(java.awt.Shape shape)
ChartShapeChangeEvent to all registered listeners.
shape - Shape
The minimum value shape (null permitted).public java.awt.Shape getMaxShape()
public void setMaxShape(java.awt.Shape shape)
ChartShapeChangeEvent to all registered listeners.
shape - Shape
The maximum value shape (null permitted).public java.awt.Paint getMinShapePaint()
public void setMinShapePaint(java.awt.Paint paint)
ChartShapeChangeEvent to all registered listeners.
paint - Paint
The paint used to draw minimum value shape (null permitted).public java.awt.Paint getMaxShapePaint()
public void setMaxShapePaint(java.awt.Paint paint)
ChartShapeChangeEvent to all registered listeners.
paint - Paint
The paint used to draw maximum value shape (null permitted).public java.awt.Paint getGroupLinePaint()
public void setGroupLinePaint(java.awt.Paint paint)
ChartShapeChangeEvent to all registered listeners.
paint - Paint
The paint used to draw group line (null permitted).public java.awt.Stroke getMinShapeStroke()
public void setMinShapeStroke(java.awt.Stroke stroke)
ChartShapeChangeEvent to all registered listeners.
stroke - Stroke
The stroke used to draw minimum value shape (null permitted).public java.awt.Stroke getMaxShapeStroke()
public void setMaxShapeStroke(java.awt.Stroke stroke)
ChartShapeChangeEvent to all registered listeners.
stroke - Stroke
The stroke used to draw maximum value shape (null permitted).public java.awt.Stroke getGroupLineStroke()
public void setGroupLineStroke(java.awt.Stroke stroke)
ChartShapeChangeEvent to all registered listeners.
stroke - Stroke
The stroke used to draw group line (null permitted).public java.awt.geom.Point2D getMinShapePos()
public void setMinShapePos(java.awt.geom.Point2D point)
ChartShapeChangeEvent to all registered listeners.
point - Point2D
The position of minimum value shape (null permitted).public java.awt.geom.Point2D getMaxShapePos()
public void setMaxShapePos(java.awt.geom.Point2D point)
ChartShapeChangeEvent to all registered listeners.
point - Point2D
The position of maximum value shape (null permitted).public boolean isDrawGroupLine()
public void setDrawGroupLine(boolean flag)
ChartShapeChangeEvent to all registered listeners.
flag - boolean
A flag controls whether or not draw group line.public void draw(java.awt.Graphics2D g2)
draw in interface IChartShapeg2 - Graphics2D
The graphics device (such as the screen or the printer) (null not permitted).protected void drawSelect(java.awt.Graphics2D g2)
drawSelect in class AbstractChartShapeg2 - Graphics2D
the graphics device (such as the screen or the printer) (null not permitted).
public void translate(double tx,
double ty)
ChartShapeChangeEvent to all registered listeners.
Subsequent rendering is translated by the specified
distance relative to the previous position.
This is equivalent to calling transform(T), where T is an
AffineTransform represented by the following matrix:
[ 1 0 tx ]
[ 0 1 ty ]
[ 0 0 1 ]
.
translate in interface IChartShapetx - double
The distance to translate along the x-axis.ty - double
The distance to translate along the y-axis.public java.awt.geom.Point2D getTopLeftPoint()
getTopLeftPoint in interface IChartShapepublic java.awt.geom.Point2D getLockPoint()
getLockPoint in interface IChartShapegetLockPoint in class AbstractChartShapeprotected void calculateTransformedShape()
calculateTransformedShape in class AbstractChartShapeprotected java.awt.Shape getHotspotShape()
getHotspotShape in class AbstractChartShapepublic ShapeType getShapeType()
getShapeType in interface IChartShapeShapeType.public boolean equals(java.lang.Object obj)
equals in class AbstractChartShapeobj -
the reference object with which to compare.
public int hashCode()
hashCode in class AbstractChartShape
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class AbstractChartShapejava.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 java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||