public class TaskFigure extends GraphicalCompositeFigure
AbstractCompositeFigure.EventHandler
attributes
cachedBounds, cachedDrawingArea, children, eventHandler, layouter
changingDepth, listenerList
propertySupport
LAYOUT_INSETS
CONNECTABLE_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, writeAttributes
add, 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, willChange
addFigureListener, 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, setVisible
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addFigureListener, addPropertyChangeListener, findCompatibleConnector, findConnector, getActions, getConnectors, getCursor, getEndPoint, getStartPoint, getTool, getToolTipText, handleDrop, handleMouseClick, includes, isConnectable, isRemovable, isSelectable, isTransformable, isVisible, remap, removeFigureListener, removePropertyChangeListener, requestRemove
public java.util.Collection<Handle> createHandles(int detailLevel)
GraphicalCompositeFigure
createHandles
in interface Figure
createHandles
in class GraphicalCompositeFigure
detailLevel
- 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.Handle
public 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()
Figure
clone
in interface Figure
clone
in class GraphicalCompositeFigure
public void read(DOMInput in) throws java.io.IOException
read
in interface DOMStorable
read
in class GraphicalCompositeFigure
java.io.IOException
public void write(DOMOutput out) throws java.io.IOException
write
in interface DOMStorable
write
in class GraphicalCompositeFigure
java.io.IOException
public int getLayer()
AbstractFigure
getLayer
in interface Figure
getLayer
in class AbstractFigure
public 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