Package com.storedobject.chart
Class AbstractGanttChart
java.lang.Object
com.storedobject.chart.AbstractGanttChart
- All Implemented Interfaces:
Clickable
,ComponentGroup
- Direct Known Subclasses:
ActivityChart
,GanttChart
Abstract Gantt chart is the base class for
GanttChart
and ActivityChart
.- Author:
- Syam
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add parts of this group toSOChart
.Return the co-ordinate system used by this Gantt chart.Get the time axis.Get the time axis zoom component.boolean
Determines whether the current object is clickable.boolean
matchSource
(ChartEvent event) Matches the source of the providedChartEvent
with the current object, if the object is an instance ofComponentPart
and its ID matches the part ID of the event.void
removeParts
(SOChart soChart) Remove parts of this group fromSOChart
.void
setClickable
(boolean clickable) Sets the clickable state of this object.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.storedobject.chart.Clickable
getClickKeyName, getClickValue
Methods inherited from interface com.storedobject.chart.ComponentGroup
validate
-
Constructor Details
-
AbstractGanttChart
-
-
Method Details
-
matchSource
Description copied from interface:Clickable
Matches the source of the providedChartEvent
with the current object, if the object is an instance ofComponentPart
and its ID matches the part ID of the event. If the match is successful, the current object is added as a "source" entry in the event's data map.- Specified by:
matchSource
in interfaceClickable
- Parameters:
event
- TheChartEvent
to be matched against the current object. It contains the part ID to compare and a data map for storing additional information.- Returns:
true
if the object matches the part ID in the event and is added as the source;false
otherwise.
-
setClickable
public void setClickable(boolean clickable) Description copied from interface:Clickable
Sets the clickable state of this object.- Specified by:
setClickable
in interfaceClickable
- Parameters:
clickable
- A boolean value indicating whether the object should be clickable or not. Iftrue
, the object will be clickable; iffalse
, it will not be clickable.
-
isClickable
public boolean isClickable()Description copied from interface:Clickable
Determines whether the current object is clickable.- Specified by:
isClickable
in interfaceClickable
- Returns:
true
if the object is clickable,false
otherwise.
-
addParts
Description copied from interface:ComponentGroup
Add parts of this group toSOChart
. This will be invoked if the group was already added to theSOChart
, and it is about to be rendered.- Specified by:
addParts
in interfaceComponentGroup
- Parameters:
soChart
- Chart to which parts to be added.
-
removeParts
Description copied from interface:ComponentGroup
Remove parts of this group fromSOChart
. This will be invoked when the group is removed from theSOChart
. This method should make sure that all the parts are removed properly including their dependencies.- Specified by:
removeParts
in interfaceComponentGroup
- Parameters:
soChart
- Chart from which parts to be removed.
-
getTimeAxisZoom
Get the time axis zoom component.- Returns:
- Time-axis zoom component.
-
getCoordinateSystem
Return the co-ordinate system used by this Gantt chart. (It will be a rectangular co-ordinate system).- Returns:
- Rectangular co-ordinate system. (An instance of
RectangularCoordinate
).
-
getTimeAxis
-