|
JHotDraw 7.0.6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jhotdraw.draw.AbstractFigure
org.jhotdraw.draw.AbstractCompositeFigure
org.jhotdraw.draw.GraphicalCompositeFigure
org.jhotdraw.samples.pert.figures.TaskFigure
public class TaskFigure
TaskFigure.
| Field Summary |
|---|
| Fields inherited from class org.jhotdraw.draw.GraphicalCompositeFigure |
|---|
attributes |
| Fields inherited from class org.jhotdraw.draw.AbstractFigure |
|---|
changingDepth, decorator, listenerList |
| Fields inherited from interface org.jhotdraw.draw.CompositeFigure |
|---|
LAYOUT_INSETS |
| Constructor Summary | |
|---|---|
TaskFigure()
Creates a new instance. |
|
| Method Summary | |
|---|---|
void |
addDependency(DependencyFigure f)
|
TaskFigure |
clone()
Returns a clone of the figure. |
java.util.Collection<Handle> |
createHandles(int detailLevel)
Return default handles from the presentation figure. |
java.util.Set<DependencyFigure> |
getDependencies()
|
int |
getDuration()
|
int |
getLayer()
Gets the layer of the figure. |
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)
|
| Methods inherited from class org.jhotdraw.draw.AbstractCompositeFigure |
|---|
add, add, addAll, basicAdd, basicAdd, basicAddAll, basicRemove, basicRemoveAllChildren, basicRemoveChild, changed, drawConnectors, findChild, findChildIndex, findFigureInside, getChild, getChildCount, getChildren, getChildrenFrontToBack, getDecomposition, getLayouter, getPreferredSize, getRestoreData, hasAttribute, invalidate, invalidateBounds, layout, remove, removeAllChildren, removeAttribute, removeChild, restoreTo, sendToBack, sendToFront, setLayouter, undoableEditHappened, validate, willChange |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jhotdraw.draw.Figure |
|---|
addFigureListener, addUndoableEditListener, canConnect, draw, findCompatibleConnector, findConnector, getActions, getCursor, getDecorator, getDrawBounds, getEndPoint, getStartPoint, getTool, getTooltip, handleDrop, handleMouseClick, includes, isConnectorsVisible, isInteractive, isVisible, remap, removeFigureListener, removeUndoableEditListener, requestRemove, setConnectorsVisible, setDecorator, setVisible |
| Constructor Detail |
|---|
public TaskFigure()
| Method Detail |
|---|
public java.util.Collection<Handle> createHandles(int detailLevel)
GraphicalCompositeFigure
createHandles 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.
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()
Figure
clone in interface Figureclone in class GraphicalCompositeFigure
public void read(DOMInput in)
throws java.io.IOException
read in interface DOMStorableread in class AbstractCompositeFigurejava.io.IOException
public void write(DOMOutput out)
throws java.io.IOException
write in interface DOMStorablewrite in class AbstractCompositeFigurejava.io.IOExceptionpublic int getLayer()
FigureFigureListener.figureChanged event to
its figure listeners.
FIXME - Replace int value by a Layer object.
getLayer 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
|
Copyright 1996-2006 © JHotDraw.org | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||