public class CustomActivitySegmentRenderer
extends ilog.views.gantt.graphic.renderer.IlvBasicActivityBar
Constructor and Description |
---|
CustomActivitySegmentRenderer() |
Modifier and Type | Method and Description |
---|---|
void |
clearOverLappingDates()
Clears the overlapping dates
|
void |
draw(java.awt.Graphics dst,
ilog.views.gantt.graphic.IlvActivityGraphic ag,
ilog.views.IlvTransformer t)
Overridden to mark the activity readonly.
|
java.lang.String |
getLabel()
Returns label
|
int |
getOverlapFlag()
Retuens overlapping flag i.e.
|
int |
getSequenceNum()
Returns sequence number
|
java.lang.String |
getToolTipText(ilog.views.gantt.graphic.IlvActivityGraphic ag,
ilog.views.IlvPoint p,
ilog.views.IlvTransformer t)
Custom tooltip implementation for the activity graphic
|
boolean |
hasOverlappingDates()
Returns true if overlapping dates were set on it.
|
boolean |
isDeleted()
Returns true if this segment has been deleted and marked for deletion
|
boolean |
isDummyHourAdded()
Returns if a dummy hour was added to this segment.
|
boolean |
isEdited()
Returns true if this segment was edited
|
boolean |
isFirstSegment()
Returns true of this renderer is for the first segment.
|
boolean |
isLocked()
Returns true if this segment is locked
|
boolean |
isMoveable(MXActivity pm)
Returns if this segments is movable
|
void |
markOtherSegmentsImmovable(MXActivity pm)
Mark all other segments immovable.
|
void |
setDeleted(boolean bool)
Sets this segment deleted or otherwise
|
void |
setEdited(boolean edited,
MXActivity pm)
Marks this segment as edited and set following flags
1. |
void |
setFirstSegment(boolean isFirstSegment)
Sets if this renderer is for the first segment.
|
void |
setLocked(boolean pmLocked)
Sets locked flag on the segment
|
void |
setMoveable(boolean moveflag,
MXActivity pm)
Returns if this segments is movable
|
void |
setOnlyEditedFlag(boolean edited)
Sets only edited flag the first time this is renderer and skips others flags
|
void |
setOverlapFlag(int flag)
Sets overlapping flag i.e { NO_OVERLAP, OVERLAP_SELECT_NOTOK | OVERLAP_SELECT_OK}
}
|
void |
setOverLappingDates(java.util.Date overLapStart,
java.util.Date overLapEnd)
Sets the overlapping dates to be colors differently on the renderer
|
void |
setSequenceNum(int sequenceNum)
Sets sequence number
|
void |
setupOverlapping(ilog.views.gantt.graphic.IlvActivityGraphic ag,
java.awt.Graphics dst,
ilog.views.IlvTransformer t,
ilog.views.IlvRect rect)
Setups special color when segments are overlapping
|
getBackground, getFont, getForeground, getStyle, getThickness, isAntialiasing, setAntialiasing, setFont, setGraphic, setLabel, setStyle, setThickness
contains, createSelection, getBaseTextDirection, getBottomMargin, getBounds, getDefinitionRect, getEndTime, getEndTimeProperty, getGraphic, getPopupMenu, getPopupMenuName, getStartTime, getStartTimeProperty, getToolTipText, getTopMargin, getVisibilityProperty, isPropertyEditable, isRedrawNeeded, isRedrawNeeded, isRelayoutNeeded, makeSelection, setBackground, setBaseTextDirection, setBottomMargin, setEndTimeProperty, setForeground, setPopupMenu, setPopupMenuName, setStartTimeProperty, setToolTipText, setTopMargin, setVisibilityProperty
public void setEdited(boolean edited, MXActivity pm)
NEWDATENOTNULL
to true
3. Marks the activity as _MODIFIED=trueedited
- booleanpm
- MXActivity of PMpublic boolean isDeleted()
public void setDeleted(boolean bool)
bool
- public void draw(java.awt.Graphics dst, ilog.views.gantt.graphic.IlvActivityGraphic ag, ilog.views.IlvTransformer t)
draw
in interface ilog.views.gantt.graphic.renderer.IlvActivityRenderer
draw
in class ilog.views.gantt.graphic.renderer.IlvActivityGraphicRenderer
public void setupOverlapping(ilog.views.gantt.graphic.IlvActivityGraphic ag, java.awt.Graphics dst, ilog.views.IlvTransformer t, ilog.views.IlvRect rect)
IlvActivityGraphic
- agGraphics
- dstIlvTransformer
- tIlvRect
- rectpublic void markOtherSegmentsImmovable(MXActivity pm)
pm
- public boolean isMoveable(MXActivity pm)
public void setMoveable(boolean moveflag, MXActivity pm)
public boolean isEdited()
public void setOnlyEditedFlag(boolean edited)
public int getSequenceNum()
public void setSequenceNum(int sequenceNum)
public boolean isFirstSegment()
public void setFirstSegment(boolean isFirstSegment)
public java.lang.String getToolTipText(ilog.views.gantt.graphic.IlvActivityGraphic ag, ilog.views.IlvPoint p, ilog.views.IlvTransformer t)
getToolTipText
in interface ilog.views.gantt.graphic.renderer.IlvActivityRenderer
getToolTipText
in class ilog.views.gantt.graphic.renderer.IlvActivityGraphicRenderer
public java.lang.String getLabel()
getLabel
in class ilog.views.gantt.graphic.renderer.IlvBasicActivityBar
public void setOverLappingDates(java.util.Date overLapStart, java.util.Date overLapEnd)
overLapStart
- overLapEnd
- public void clearOverLappingDates()
public void setOverlapFlag(int flag)
flag
- public int getOverlapFlag()
public boolean hasOverlappingDates()
public void setLocked(boolean pmLocked)
pmLocked
- booleanpublic boolean isLocked()
public boolean isDummyHourAdded()