|
|||||||||
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.RectangleTextChartShape
com.ijchart.xychart.shape.GranttChartShape
public class GranttChartShape
Title: IJChart
Description: a chart library for the Java(tm) platform.
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 | |
---|---|
GranttChartShape(java.awt.geom.Rectangle2D granttArea,
java.awt.geom.Rectangle2D completeArea,
java.awt.geom.Rectangle2D incompleteArea)
构造甘特图图形. |
|
GranttChartShape(java.awt.geom.Rectangle2D granttArea,
java.awt.geom.Rectangle2D completeArea,
java.awt.geom.Rectangle2D incompleteArea,
java.lang.String text)
构造甘特图图形. |
Method Summary | |
---|---|
void |
draw(java.awt.Graphics2D g2)
在图形设备(如屏幕或打印机)上绘制此图形 |
java.awt.geom.Rectangle2D |
getCompleteArea()
返回完成区域. |
java.awt.Paint |
getCompleteAreaPaint()
返回完成区域的Paint. |
java.awt.geom.Rectangle2D |
getGanttArea()
返回甘特图区域. |
protected java.awt.Shape |
getHotspotShape()
返回热点图形. |
java.awt.geom.Rectangle2D |
getIncompleteArea()
返回未完成区域. |
java.awt.Paint |
getIncompleteAreaPaint()
返回未完成区域的Paint. |
ShapeType |
getShapeType()
描述本图形的类型. |
void |
setCompleteArea(java.awt.geom.Rectangle2D completeArea)
设置完成区域,并通知监听器发生变化. |
void |
setCompleteAreaPaint(java.awt.Paint paint)
设置完成区域的Paint,并通知监听器发生变化. |
void |
setGranttArea(java.awt.geom.Rectangle2D granttArea)
设置甘特图区域,并通知监听器发生变化. |
void |
setIncompleteArea(java.awt.geom.Rectangle2D incompleteArea)
设置未完成区域,并通知监听器发生变化. |
void |
setIncompleteAreaPaint(java.awt.Paint paint)
设置未完成区域的Paint,并通知监听器发生变化. |
Methods inherited from class com.ijchart.xychart.shape.RectangleTextChartShape |
---|
calculateTransformedShape, clone, drawBorder, drawSelect, equals, getMinimumBound, hashCode, isBorderVisible, setBorderVisible, toString |
Methods inherited from class com.ijchart.xychart.shape.AbstractRectangleTextChartShape |
---|
drawText, drawTextWithTrimMarginRect, getDrawArea, getLockPoint, getTextMaxShowLine, getTooltipShapeTranslatePoint, getTopLeftPoint, isAutoWrap, isForceInsideTextNoWrap, isForceShowAll, setAutoWrap, setDrawArea, setForceInsideTextNoWrap, setForceShowAllText, setTextMaxShowLine, splitString, translate |
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 GranttChartShape(java.awt.geom.Rectangle2D granttArea, java.awt.geom.Rectangle2D completeArea, java.awt.geom.Rectangle2D incompleteArea)
granttArea
- Rectangle2D 甘特图区域 (不可为null).
completeArea
- Rectangle2D 完成区域 (可为null).
incompleteArea
- Rectangle2D 未完成区域 (可为null).
public GranttChartShape(java.awt.geom.Rectangle2D granttArea, java.awt.geom.Rectangle2D completeArea, java.awt.geom.Rectangle2D incompleteArea, java.lang.String text)
granttArea
- Rectangle2D 甘特图区域 (不可为null).
completeArea
- Rectangle2D 完成区域 (可为null).
incompleteArea
- Rectangle2D 未完成区域 (可为null).
text
- String 要显示的文字 (可为null).
Method Detail |
---|
public java.awt.geom.Rectangle2D getGanttArea()
public void setGranttArea(java.awt.geom.Rectangle2D granttArea)
granttArea
- Rectangle2D 矩形 (不可为null).
public java.awt.geom.Rectangle2D getCompleteArea()
public void setCompleteArea(java.awt.geom.Rectangle2D completeArea)
completeArea
- Rectangle2D 矩形 (可为null).
public java.awt.geom.Rectangle2D getIncompleteArea()
public void setIncompleteArea(java.awt.geom.Rectangle2D incompleteArea)
incompleteArea
- Rectangle2D 矩形 (可为null).
public java.awt.Paint getCompleteAreaPaint()
public void setCompleteAreaPaint(java.awt.Paint paint)
paint
- Paint Paint对象 (可为null).
public java.awt.Paint getIncompleteAreaPaint()
public void setIncompleteAreaPaint(java.awt.Paint paint)
paint
- Paint Paint对象 (可为null).
public void draw(java.awt.Graphics2D g2)
draw
in interface IChartShape
draw
in class RectangleTextChartShape
g2
- Graphics2D 图形设备(如屏幕或打印机) (不可为null)
protected java.awt.Shape getHotspotShape()
getHotspotShape
in class RectangleTextChartShape
public ShapeType getShapeType()
getShapeType
in interface IChartShape
getShapeType
in class RectangleTextChartShape
ShapeType
类定义的常量
(不可为null).
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |