|
JHotDraw 7.0.9 | ||||||||
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, 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.GraphicalCompositeFigure |
---|
addNotify, applyAttributesTo, basicSetPresentationFigureBounds, chop, contains, draw, drawPresentationFigure, getAttribute, getAttributeKey, getAttributes, getBounds, getDrawingArea, getPresentationFigure, readAttributes, remap, removeNotify, setAttribute, setAttributeEnabled, setBounds, setPresentationFigure, superBasicSetBounds, transform, writeAttributes |
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, canConnect, findCompatibleConnector, findConnector, getActions, getConnectors, getCursor, getEndPoint, getStartPoint, getTool, getToolTipText, handleDrop, handleMouseClick, includes, isInteractive, isVisible, remap, removeFigureListener, requestRemove, setVisible |
Constructor Detail |
---|
public TaskFigure()
Method Detail |
---|
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.
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()
Figure
FigureListener.figureChanged
event to
its figure listeners.
FIXME - Replace int value by a Layer object.
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
|
Copyright 1996-2007 (c) JHotDraw.org. Some rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |