|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LyGanttElement
This interface defines an object than can draw itself in a Gantt planning.
LyGantt
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
static short |
POINT_INTERVAL
Constant for point interval type (interval with no end date). |
static short |
REAL_INTERVAL
Constant for real interval type (interval with both begin and end date). |
static short |
SUPER_LINE
Constant for super line type. |
Method Summary | |
---|---|
void |
draw(LyAbstractGanttPanelManager c,
java.awt.Graphics gc,
java.awt.Color background,
int beginX,
int endX,
int beginY,
int endY)
Draws the Gantt element in an instance of LyGanttCanvas. |
java.util.Date |
getBeginDate()
Returns the begin date of the Gantt element. |
java.util.Vector<LyGanttElement> |
getDependencies()
Returns the dependencies of the Gantt element. |
java.awt.Rectangle |
getElementBounds(LyAbstractGanttPanelManager canvas,
java.awt.Graphics g)
Returns the bounds of the Gantt representation. |
java.util.Date |
getEndDate()
Returns the end date of the Gantt element. |
java.awt.Point |
getGanttImageSize()
Returns the size of the Gantt representation (only for point interval). |
java.lang.String |
getId()
Returns the id of the Gantt element. |
int |
getIndex()
Returns the index of the Gantt element in the parent line. |
java.lang.String |
getTooltip()
Returns the tooltip of the element. |
short |
getType()
Returns the type of the Gantt element. |
boolean |
isLeftResizable()
Indicates if the element is resizable from its left extremity. |
boolean |
isMovable()
Indicates if the element is movable. |
boolean |
isRightResizable()
Indicates if the element is resizable from its right extremity. |
boolean |
moveDates(java.util.Date beginDate,
java.util.Date endDate)
Changes the begin and end date of a Gantt element. |
void |
selectParentLine(boolean select)
Selects or unselects the parent line of the Gantt element. |
void |
setColor(java.awt.Color color)
Sets the color of the Gantt element. |
void |
setDependencies(java.util.Vector<LyGanttElement> dependencies)
Sets the dependencies of the Gantt element. |
void |
setDrawingComponent(java.awt.Component c)
Sets the drawing component used to draw the Gantt element. |
void |
setLabel(java.lang.String label)
Sets the label of the Gantt element. |
Field Detail |
---|
static final java.lang.String __VERSION
static final short SUPER_LINE
static final short REAL_INTERVAL
static final short POINT_INTERVAL
Method Detail |
---|
java.lang.String getId()
java.util.Date getBeginDate()
java.util.Date getEndDate()
boolean moveDates(java.util.Date beginDate, java.util.Date endDate)
beginDate
- new begin date of the elementendDate
- new end date of the element
boolean isMovable()
boolean isLeftResizable()
boolean isRightResizable()
java.lang.String getTooltip()
void setDependencies(java.util.Vector<LyGanttElement> dependencies)
dependencies
- new dependencies valuegetDependencies()
void setLabel(java.lang.String label)
label
- new label valuevoid setColor(java.awt.Color color)
color
- new dependencies valuevoid selectParentLine(boolean select)
select
- indicates if parent line must be selected or unselectedshort getType()
SUPER_LINE
, REAL_INTERVAL
or
POINT_INTERVAL
java.util.Vector<LyGanttElement> getDependencies()
setDependencies(Vector)
java.awt.Point getGanttImageSize()
java.awt.Rectangle getElementBounds(LyAbstractGanttPanelManager canvas, java.awt.Graphics g)
canvas
- the canvas containing the elementg
- the graphics context
void setDrawingComponent(java.awt.Component c)
c
- the drawing componentint getIndex()
void draw(LyAbstractGanttPanelManager c, java.awt.Graphics gc, java.awt.Color background, int beginX, int endX, int beginY, int endY)
c
- the instance of LyGanttCanvasgc
- the graphics contextbackground
- the background colorbeginX
- begin X coordinateendX
- end X coordinatebeginY
- begin Y coordinateendY
- end Y coordinate
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |