|
|||||||||
| 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.AbstractTextChartShape
com.ijchart.xychart.shape.AbstractRectangleTextChartShape
com.ijchart.xychart.shape.StockChartShape
public class StockChartShape
Title: IJChart
Description: a chart library for the Java(tm) platform.
Draw a stockIChartShape.
Copyright: Copyright (c) 2013
Company:
| Field Summary |
|---|
| Fields inherited from class com.ijchart.xychart.shape.AbstractRectangleTextChartShape |
|---|
DEFAULT_DRAW_AUTO_WRAP, DEFAULT_FORCE_INSIDE_TEXT_NO_WRAP, DEFAULT_FORCE_SHOW_ALL, DEFAULT_TEXT_MAX_SHOW_LINE |
| Fields inherited from class com.ijchart.xychart.shape.AbstractTextChartShape |
|---|
DEFAULT_TEXT_DIRECTION, DEFAULT_TEXT_HORIZONTAL_ALIGNMENT, DEFAULT_TEXT_POSITION, DEFAULT_TEXT_VERTICAL_ALIGNMENT |
| Fields inherited from class com.ijchart.xychart.shape.AbstractChartShape |
|---|
DEFAULT_DRAW_TYPE, DEFAULT_SHAPE_ID, DEFAULT_VISIBLE, transformedShape |
| Constructor Summary | |
|---|---|
StockChartShape(java.lang.String text,
java.awt.geom.Rectangle2D volumeRect,
java.awt.Paint volumePaint,
java.awt.geom.Rectangle2D openCloseRect,
java.awt.Paint openCloseBorderPaint,
java.awt.Paint openCloseFillPaint,
java.awt.geom.Line2D highLowLine,
java.awt.Paint highLowPaint)
Draw text in area drawArea. |
|
| 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.geom.Line2D |
getHighLowLine()
Returns the high-low line. |
java.awt.Paint |
getHighLowPaint()
Returns the paint used to fill high-low rectangle border. |
protected java.awt.Shape |
getHotspotShape()
Returns the hotspot shape. |
java.awt.Paint |
getOpenCloseBorderPaint()
Returns the paint used to draw open-close rectangle border. |
java.awt.Paint |
getOpenCloseFillPaint()
Returns the paint used to draw open-close rectangle border. |
java.awt.geom.Rectangle2D |
getOpenCloseRect()
Returns the open-close rectangle. |
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). |
java.awt.Paint |
getVolumePaint()
Returns the volume paint. |
java.awt.geom.Rectangle2D |
getVolumeRect()
Returns the volume rectangle. |
int |
hashCode()
Returns a hash code value for the object. |
void |
setHighLowLine(java.awt.geom.Line2D line)
Sets the high-low line,and sends a ChartShapeChangeEvent to all registered listeners. |
void |
setHighLowPaint(java.awt.Paint paint)
Sets the paint used to fill high-low rectangle border,and sends a ChartShapeChangeEvent to all registered listeners. |
void |
setOpenCloseBorderPaint(java.awt.Paint paint)
Sets the paint used to draw open-close rectangle border,and sends a ChartShapeChangeEvent to all registered listeners. |
void |
setOpenCloseFillPaint(java.awt.Paint paint)
Sets the volume paint,and sends a ChartShapeChangeEvent to all registered listeners. |
void |
setOpenCloseRect(java.awt.geom.Rectangle2D rect)
Sets the open-close rectangle,and sends a ChartShapeChangeEvent to all registered listeners. |
void |
setVolumePaint(java.awt.Paint paint)
Sets the volume paint,and sends a ChartShapeChangeEvent to all registered listeners. |
void |
setVolumeRect(java.awt.geom.Rectangle2D rect)
Sets the volume rectangle,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 com.ijchart.xychart.shape.AbstractRectangleTextChartShape |
|---|
drawText, drawTextWithTrimMarginRect, getDrawArea, getLockPoint, getTextMaxShowLine, getTooltipShapeTranslatePoint, isAutoWrap, isForceInsideTextNoWrap, isForceShowAll, setAutoWrap, setDrawArea, setForceInsideTextNoWrap, setForceShowAllText, setTextMaxShowLine, splitString |
| Methods inherited from class com.ijchart.xychart.shape.AbstractTextChartShape |
|---|
getText, getTextDirection, getTextFont, getTextHorizontalAlign, getTextPaint, getTextPosition, getTextVerticalAlign, isDrawText, setDrawText, setText, setTextDirection, setTextFont, setTextHorizontalAlign, setTextPaint, setTextPosition, setTextVerticalAlign |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StockChartShape(java.lang.String text,
java.awt.geom.Rectangle2D volumeRect,
java.awt.Paint volumePaint,
java.awt.geom.Rectangle2D openCloseRect,
java.awt.Paint openCloseBorderPaint,
java.awt.Paint openCloseFillPaint,
java.awt.geom.Line2D highLowLine,
java.awt.Paint highLowPaint)
text - String
The text (null permitted).volumeRect - Rectangle2D
The volume rectangle (null permitted).volumePaint - Paint
The volume paint (null permitted).openCloseRect - Rectangle2D
The open-close rectangle (null not permitted).openCloseBorderPaint - Paint
The paint used to draw open-close rectangle border (null not permitted).openCloseFillPaint - Paint
The paint used to fill open-close rectangle border (null not permitted).highLowLine - Line2D
The high-low line (null not permitted).highLowPaint - Paint
The paint used to fill high-low rectangle border (null not permitted).| Method Detail |
|---|
public java.awt.geom.Rectangle2D getVolumeRect()
public void setVolumeRect(java.awt.geom.Rectangle2D rect)
ChartShapeChangeEvent to all registered listeners.
rect - Rectangle2D
The rectangle (null permitted).public java.awt.Paint getVolumePaint()
public void setVolumePaint(java.awt.Paint paint)
ChartShapeChangeEvent to all registered listeners.
paint - Paint
The paint (null permitted).public java.awt.geom.Rectangle2D getOpenCloseRect()
public void setOpenCloseRect(java.awt.geom.Rectangle2D rect)
ChartShapeChangeEvent to all registered listeners.
rect - Rectangle2D
The rectangle (null not permitted).public java.awt.Paint getOpenCloseBorderPaint()
public void setOpenCloseBorderPaint(java.awt.Paint paint)
ChartShapeChangeEvent to all registered listeners.
paint - Paint
The paint (null not permitted).public java.awt.Paint getOpenCloseFillPaint()
public void setOpenCloseFillPaint(java.awt.Paint paint)
ChartShapeChangeEvent to all registered listeners.
paint - Paint
The paint (null not permitted).public java.awt.geom.Line2D getHighLowLine()
public void setHighLowLine(java.awt.geom.Line2D line)
ChartShapeChangeEvent to all registered listeners.
line - Line2D
The line (null not permitted).public java.awt.Paint getHighLowPaint()
public void setHighLowPaint(java.awt.Paint paint)
ChartShapeChangeEvent to all registered listeners.
paint - Paint
The paint (null not permitted).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 IChartShapetranslate in class AbstractRectangleTextChartShapetx - 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 IChartShapegetTopLeftPoint in class AbstractRectangleTextChartShapeprotected 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 AbstractRectangleTextChartShapeobj -
the reference object with which to compare.
public int hashCode()
hashCode in class AbstractRectangleTextChartShape
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class AbstractRectangleTextChartShapejava.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 AbstractRectangleTextChartShape
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||