|
|||||||||
| 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)
Construct a grantt chart shape. |
|
GranttChartShape(java.awt.geom.Rectangle2D granttArea,
java.awt.geom.Rectangle2D completeArea,
java.awt.geom.Rectangle2D incompleteArea,
java.lang.String text)
Construct a grantt chart shape. |
|
| Method Summary | |
|---|---|
void |
draw(java.awt.Graphics2D g2)
Draw the ChartShape on a Java 2d graphics device(such as the screen or the printer). |
java.awt.geom.Rectangle2D |
getCompleteArea()
Returns the complete area. |
java.awt.Paint |
getCompleteAreaPaint()
Returns the complete area paint. |
java.awt.geom.Rectangle2D |
getGanttArea()
Returns the grantt area. |
protected java.awt.Shape |
getHotspotShape()
Returns the hotspot shape. |
java.awt.geom.Rectangle2D |
getIncompleteArea()
Returns the incomplete area. |
java.awt.Paint |
getIncompleteAreaPaint()
Returns the incomplete area paint. |
ShapeType |
getShapeType()
The type for describe this shape. |
void |
setCompleteArea(java.awt.geom.Rectangle2D completeArea)
Sets the complete area,and sends a ChartShapeChangeEvent
to all registered listeners. |
void |
setCompleteAreaPaint(java.awt.Paint paint)
Sets the complete area paint,and sends a ChartShapeChangeEvent to all registered listeners. |
void |
setGranttArea(java.awt.geom.Rectangle2D granttArea)
The grantt area,and sends a ChartShapeChangeEvent to all
registered listeners. |
void |
setIncompleteArea(java.awt.geom.Rectangle2D incompleteArea)
Sets the incomplete area,and sends a ChartShapeChangeEvent to all registered listeners. |
void |
setIncompleteAreaPaint(java.awt.Paint paint)
Sets the incomplete area paint,and sends a ChartShapeChangeEvent to all registered listeners. |
| 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
The grantt area (null not permitted).completeArea - Rectangle2D
The complete area (null permitted).incompleteArea - Rectangle2D
The incomplete area (null permitted).
public GranttChartShape(java.awt.geom.Rectangle2D granttArea,
java.awt.geom.Rectangle2D completeArea,
java.awt.geom.Rectangle2D incompleteArea,
java.lang.String text)
granttArea - Rectangle2D
The grantt area (null not permitted).completeArea - Rectangle2D
The complete area (null permitted).incompleteArea - Rectangle2D
The incomplete area (null permitted).text - String
The draw text (null permitted).| Method Detail |
|---|
public java.awt.geom.Rectangle2D getGanttArea()
public void setGranttArea(java.awt.geom.Rectangle2D granttArea)
ChartShapeChangeEvent to all
registered listeners.
granttArea - Rectangle2D
The rectangle (null not permitted).public java.awt.geom.Rectangle2D getCompleteArea()
public void setCompleteArea(java.awt.geom.Rectangle2D completeArea)
ChartShapeChangeEvent
to all registered listeners.
completeArea - Rectangle2D
The rectangle (null permitted).public java.awt.geom.Rectangle2D getIncompleteArea()
public void setIncompleteArea(java.awt.geom.Rectangle2D incompleteArea)
ChartShapeChangeEvent to all registered listeners.
incompleteArea - Rectangle2D
The rectangle (null permitted).public java.awt.Paint getCompleteAreaPaint()
public void setCompleteAreaPaint(java.awt.Paint paint)
ChartShapeChangeEvent to all registered listeners.
paint - Paint
The paint (null permitted).public java.awt.Paint getIncompleteAreaPaint()
public void setIncompleteAreaPaint(java.awt.Paint paint)
ChartShapeChangeEvent to all registered listeners.
paint - Paint
The paint (null permitted).public void draw(java.awt.Graphics2D g2)
draw in interface IChartShapedraw in class RectangleTextChartShapeg2 - Graphics2D
The graphics device (such as the screen or the printer) (null not permitted).protected java.awt.Shape getHotspotShape()
getHotspotShape in class RectangleTextChartShapepublic ShapeType getShapeType()
getShapeType in interface IChartShapegetShapeType in class RectangleTextChartShapeShapeType.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||