|
|||||||||
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.BoxAndWhiskerChartShape
public class BoxAndWhiskerChartShape
Title: IJChart
Description: a chart library for the Java(tm) platform.
绘制BoxAndWhisker图形.Copyright: Copyright (c) 2013
Company:
Field Summary | |
---|---|
static java.awt.Paint |
DEFAULT_ARTIFACT_PAINT
缺省填充椭圆和绘制横线的Paint. |
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 | |
---|---|
BoxAndWhiskerChartShape(double leftX,
double bottomY,
double width,
double height,
double topLineLength,
double bottomLineLength,
java.awt.geom.Ellipse2D ellipse,
double lineY,
java.awt.Paint artifactPaint)
绘制工字形的图形. |
|
BoxAndWhiskerChartShape(double leftX,
double bottomY,
double width,
double height,
double topLineLength,
double bottomLineLength,
java.awt.geom.Ellipse2D ellipse,
double lineY,
java.awt.Paint artifactPaint,
java.awt.geom.Ellipse2D[] averageValueEllipse,
java.awt.Shape highFarBorderTriangle,
java.awt.Shape lawFarBorder)
绘制工字形的图形. |
|
BoxAndWhiskerChartShape(double leftX,
double bottomY,
double width,
double height,
double topLineLength,
double bottomLineLength,
java.awt.geom.Ellipse2D ellipse,
double lineY,
java.awt.Paint artifactPaint,
java.lang.String text)
绘制工字形的图形. |
|
BoxAndWhiskerChartShape(double leftX,
double bottomY,
double width,
double height,
double topLineLength,
double bottomLineLength,
java.awt.geom.Ellipse2D ellipse,
double lineY,
java.awt.Paint artifactPaint,
java.lang.String text,
java.awt.geom.Ellipse2D[] averageValueEllipse,
java.awt.Shape highFarBorderTriangle,
java.awt.Shape lowFarBorder)
绘制工字形的图形. |
Method Summary | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
protected void |
calculateTransformedShape()
计算变换后的图形. |
||||||||||||||||
java.lang.Object |
clone()
返回克隆的对象. |
||||||||||||||||
void |
draw(java.awt.Graphics2D g2)
在图形设备(如屏幕或打印机)上绘制此图形 |
||||||||||||||||
protected void |
drawSelect(java.awt.Graphics2D g2)
在图形设备(如屏幕或打印机)上绘制图形的选中部分,因为图形可能会有重叠,所以绘制图形时要先绘制完所有的图形后, 再调用此方法绘制选中部分. |
||||||||||||||||
boolean |
equals(java.lang.Object obj)
测试两个对象是否相等. |
||||||||||||||||
java.awt.Paint |
getArtifactPaint()
返回填充椭圆和绘制横线的Paint. |
||||||||||||||||
java.awt.geom.Ellipse2D[] |
getAverageValueEllipse()
返回表示平均值的圆形. |
||||||||||||||||
java.awt.geom.Ellipse2D |
getAvgEllipse()
返回椭圆图形. |
||||||||||||||||
double |
getBottomLineLength()
返回矩形图形之下的线的长度. |
||||||||||||||||
double |
getBottomY()
返回左下角的点的Y坐标. |
||||||||||||||||
double |
getHeight()
返回工字形的高度. |
||||||||||||||||
java.awt.Shape |
getHighFarBorderTriangle()
返回表示高离值的三角形. |
||||||||||||||||
protected java.awt.Shape |
getHotspotShape()
返回热点图形. |
||||||||||||||||
double |
getLeftX()
返回左下角的点的X坐标. |
||||||||||||||||
double |
getLineY()
返回直线的起始y坐标. |
||||||||||||||||
java.awt.geom.Point2D |
getLockPoint()
返回鼠标点击时锁定图形的点. |
||||||||||||||||
java.awt.Shape |
getLowFarBorderTriangle()
返回表示低离值的三角形.. |
||||||||||||||||
ShapeType |
getShapeType()
描述本图形的类型. |
||||||||||||||||
java.awt.geom.Point2D |
getTopLeftPoint()
返回图形左上角的坐标(不考虑图形的旋转). |
||||||||||||||||
double |
getTopLineLength()
返回矩形图形之上的线的长度. |
||||||||||||||||
double |
getWidth()
设置工字形的宽度. |
||||||||||||||||
int |
hashCode()
计算对象的hashcode值. |
||||||||||||||||
void |
setArtifactPaint(java.awt.Paint paint)
设置填充椭圆和绘制横线的Paint,并向所有监听器发送 ChartShapeChangeEvent 事件.
|
||||||||||||||||
void |
setAverageValueEllipse(java.awt.geom.Ellipse2D[] ellipses)
设置表示平均值的圆形,并向所有监听器发送 ChartShapeChangeEvent 事件.
|
||||||||||||||||
void |
setAvgEllipse(java.awt.geom.Ellipse2D ellipse)
设置椭圆图形,并向所有监听器发送 ChartShapeChangeEvent 事件.
|
||||||||||||||||
void |
setBottomLineLength(double length)
设置矩形图形之下的线的长度,并向所有监听器发送 ChartShapeChangeEvent 事件.
|
||||||||||||||||
void |
setBottomY(double bottomY)
设置左下角的点的Y坐标,并向所有监听器发送 ChartShapeChangeEvent 事件.
|
||||||||||||||||
void |
setHeight(double height)
设置工字形的高度,并向所有监听器发送 ChartShapeChangeEvent 事件.
|
||||||||||||||||
void |
setHighFarBorderTriangle(java.awt.Shape lines)
设置表示高离值的三角形,并向所有监听器发送 ChartShapeChangeEvent 事件.
|
||||||||||||||||
void |
setLeftX(double leftX)
设置左下角的点的X坐标,并向所有监听器发送 ChartShapeChangeEvent 事件.
|
||||||||||||||||
void |
setLineY(double lineY)
设置直线的起始y坐标,并向所有监听器发送 ChartShapeChangeEvent 事件.
|
||||||||||||||||
void |
setLowFarBorderTriangle(java.awt.Shape lines)
设置表示低离值的三角形.,并向所有监听器发送 ChartShapeChangeEvent 事件.
|
||||||||||||||||
void |
setTopLineLength(double length)
设置矩形图形之上的线的长度,并向所有监听器发送 ChartShapeChangeEvent 事件.
|
||||||||||||||||
void |
setWidth(double width)
设置工字形的宽度,并向所有监听器发送 ChartShapeChangeEvent 事件.
|
||||||||||||||||
java.lang.String |
toString()
覆盖toString方法.
BoxAndWhiskerChartShapepublic BoxAndWhiskerChartShape(double leftX, double bottomY, double width, double height, double topLineLength, double bottomLineLength, java.awt.geom.Ellipse2D ellipse, double lineY, java.awt.Paint artifactPaint)
BoxAndWhiskerChartShapepublic BoxAndWhiskerChartShape(double leftX, double bottomY, double width, double height, double topLineLength, double bottomLineLength, java.awt.geom.Ellipse2D ellipse, double lineY, java.awt.Paint artifactPaint, java.lang.String text)
BoxAndWhiskerChartShapepublic BoxAndWhiskerChartShape(double leftX, double bottomY, double width, double height, double topLineLength, double bottomLineLength, java.awt.geom.Ellipse2D ellipse, double lineY, java.awt.Paint artifactPaint, java.awt.geom.Ellipse2D[] averageValueEllipse, java.awt.Shape highFarBorderTriangle, java.awt.Shape lawFarBorder)
BoxAndWhiskerChartShapepublic BoxAndWhiskerChartShape(double leftX, double bottomY, double width, double height, double topLineLength, double bottomLineLength, java.awt.geom.Ellipse2D ellipse, double lineY, java.awt.Paint artifactPaint, java.lang.String text, java.awt.geom.Ellipse2D[] averageValueEllipse, java.awt.Shape highFarBorderTriangle, java.awt.Shape lowFarBorder)
getLeftXpublic double getLeftX()
setLeftXpublic void setLeftX(double leftX)
getBottomYpublic double getBottomY()
setBottomYpublic void setBottomY(double bottomY)
getWidthpublic double getWidth()
setWidthpublic void setWidth(double width)
getHeightpublic double getHeight()
setHeightpublic void setHeight(double height)
getTopLineLengthpublic double getTopLineLength()
setTopLineLengthpublic void setTopLineLength(double length)
getBottomLineLengthpublic double getBottomLineLength()
setBottomLineLengthpublic void setBottomLineLength(double length)
getAvgEllipsepublic java.awt.geom.Ellipse2D getAvgEllipse()
setAvgEllipsepublic void setAvgEllipse(java.awt.geom.Ellipse2D ellipse)
getLineYpublic double getLineY()
setLineYpublic void setLineY(double lineY)
getArtifactPaintpublic java.awt.Paint getArtifactPaint()
setArtifactPaintpublic void setArtifactPaint(java.awt.Paint paint)
getAverageValueEllipsepublic java.awt.geom.Ellipse2D[] getAverageValueEllipse()
setAverageValueEllipsepublic void setAverageValueEllipse(java.awt.geom.Ellipse2D[] ellipses)
getHighFarBorderTrianglepublic java.awt.Shape getHighFarBorderTriangle()
setHighFarBorderTrianglepublic void setHighFarBorderTriangle(java.awt.Shape lines)
getLowFarBorderTrianglepublic java.awt.Shape getLowFarBorderTriangle()
setLowFarBorderTrianglepublic void setLowFarBorderTriangle(java.awt.Shape lines)
drawpublic void draw(java.awt.Graphics2D g2)
drawSelectprotected void drawSelect(java.awt.Graphics2D g2)
translatepublic void translate(double tx, double ty)
getTopLeftPointpublic java.awt.geom.Point2D getTopLeftPoint()
getLockPointpublic java.awt.geom.Point2D getLockPoint()
calculateTransformedShapeprotected void calculateTransformedShape()
getHotspotShapeprotected java.awt.Shape getHotspotShape()
getShapeTypepublic ShapeType getShapeType()
equalspublic boolean equals(java.lang.Object obj)
hashCodepublic int hashCode()
clonepublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
toStringpublic java.lang.String toString()
|