public class TaskFigure extends GraphicalCompositeFigure
AbstractCompositeFigure.EventHandlerattributescachedBounds, cachedDrawingArea, children, eventHandler, layouterchangingDepth, listenerListpropertySupportLAYOUT_INSETSCONNECTABLE_PROPERTY, REMOVABLE_PROPERTY, SELECTABLE_PROPERTY, TRANSFORMABLE_PROPERTY| Constructor and Description |
|---|
TaskFigure()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDependency(DependencyFigure f) |
TaskFigure |
clone()
Returns a clone of the figure, with clones of all aggregated figures,
such as children and decorators.
|
java.util.Collection<Handle> |
createHandles(int detailLevel)
Return default handles from the presentation figure.
|
java.util.Set<DependencyFigure> |
getDependencies() |
int |
getDuration() |
int |
getLayer()
AbstractFigure always returns 0.
|
java.lang.String |
getName() |
java.util.List<TaskFigure> |
getPredecessors()
Returns predecessor PertTasks which are directly connected via a
PertDependency to this TaskFigure.
|
int |
getStartTime() |
java.util.List<TaskFigure> |
getSuccessors()
Returns dependent PertTasks which are directly connected via a
PertDependency to this TaskFigure.
|
boolean |
isDependentOf(TaskFigure t)
Returns true, if the current task is a direct or
indirect dependent of the specified task.
|
void |
read(DOMInput in) |
void |
removeDependency(DependencyFigure f) |
void |
setDuration(int newValue) |
void |
setName(java.lang.String newValue) |
java.lang.String |
toString() |
void |
updateStartTime() |
void |
write(DOMOutput out) |
addNotify, applyAttributesTo, basicSetPresentationFigureBounds, chop, contains, draw, drawPresentationFigure, get, getAttributeKey, getAttributes, getBounds, getDrawingArea, getPresentationFigure, readAttributes, remap, removeNotify, set, setAttributeEnabled, setBounds, setPresentationFigure, superBasicSetBounds, transform, writeAttributesadd, add, addAll, addAll, addCompositeFigureListener, basicAdd, basicAdd, basicAddAll, basicRemove, basicRemoveAll, basicRemoveAllChildren, basicRemoveChild, bringToFront, changed, contains, createEventHandler, findChild, findChildIndex, findFigureInside, fireFigureAdded, fireFigureRemoved, getAttributesRestoreData, getChild, getChildCount, getChildren, getChildrenFrontToBack, getDecomposition, getLayouter, getPreferredSize, getTransformRestoreData, indexOf, invalidate, layout, remove, removeAll, removeAllChildren, removeChild, removeCompositeFigureListener, restoreAttributesTo, restoreTransformTo, sendToBack, setLayouter, validate, willChangeaddFigureListener, findCompatibleConnector, findConnector, fireAreaInvalidated, fireAreaInvalidated, fireAreaInvalidated, fireAttributeChanged, fireFigureAdded, fireFigureChanged, fireFigureChanged, fireFigureChanged, fireFigureHandlesChanged, fireFigureRemoved, fireFigureRequestRemove, fireUndoableEditHappened, getActions, getChangingDepth, getConnectors, getCursor, getDrawing, getEndPoint, getFontRenderContext, getLock, getStartPoint, getTool, getToolTipText, handleDrop, handleMouseClick, includes, isChanging, isConnectable, isRemovable, isSelectable, isTransformable, isVisible, remap, removeFigureListener, requestRemove, setBounds, setConnectable, setRemovable, setSelectable, setTransformable, setVisibleaddPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListenerequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddFigureListener, addPropertyChangeListener, findCompatibleConnector, findConnector, getActions, getConnectors, getCursor, getEndPoint, getStartPoint, getTool, getToolTipText, handleDrop, handleMouseClick, includes, isConnectable, isRemovable, isSelectable, isTransformable, isVisible, remap, removeFigureListener, removePropertyChangeListener, requestRemovepublic java.util.Collection<Handle> createHandles(int detailLevel)
GraphicalCompositeFigurecreateHandles in interface FigurecreateHandles in class GraphicalCompositeFiguredetailLevel - The detail level of the handles. Usually this is 0 for
bounding box handles and 1 for point handles. The value -1 is used
by the SelectAreaTracker and the HandleTracker to highlight figures, over which the mouse
pointer is hovering.Handlepublic void setName(java.lang.String newValue)
public java.lang.String getName()
public void setDuration(int newValue)
public int getDuration()
public void updateStartTime()
public int getStartTime()
public TaskFigure clone()
Figureclone in interface Figureclone in class GraphicalCompositeFigurepublic void read(DOMInput in) throws java.io.IOException
read in interface DOMStorableread in class GraphicalCompositeFigurejava.io.IOExceptionpublic void write(DOMOutput out) throws java.io.IOException
write in interface DOMStorablewrite in class GraphicalCompositeFigurejava.io.IOExceptionpublic int getLayer()
AbstractFiguregetLayer in interface FiguregetLayer in class AbstractFigurepublic java.util.Set<DependencyFigure> getDependencies()
public void addDependency(DependencyFigure f)
public void removeDependency(DependencyFigure f)
public java.util.List<TaskFigure> getSuccessors()
public java.util.List<TaskFigure> getPredecessors()
public boolean isDependentOf(TaskFigure t)
this is passed as a parameter and for every other
task in the cycle.public java.lang.String toString()
toString in class AbstractFigure