CH.ifa.draw.samples.pert
Class PertFigure
- java.lang.Object
-
- CH.ifa.draw.standard.AbstractFigure
-
- CH.ifa.draw.standard.CompositeFigure
-
- CH.ifa.draw.samples.pert.PertFigure
-
- All Implemented Interfaces:
- Figure, FigureChangeListener, Storable, java.io.Serializable, java.lang.Cloneable, java.util.EventListener
public class PertFigure extends CompositeFigure
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface CH.ifa.draw.framework.Figure
POPUP_MENU
-
-
Constructor Summary
Constructors Constructor and Description PertFigure()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddPostTask(PertFigure figure)voidaddPreTask(PertFigure figure)voidbasicDisplayBox(java.awt.Point origin, java.awt.Point corner)Sets the display box of a figure.java.awt.InsetsconnectionInsets()Returns the connection inset.java.awt.RectangledisplayBox()Gets the display box of a figure.voiddraw(java.awt.Graphics g)Draws all the contained figuresintduration()intend()voidfigureChanged(FigureChangeEvent e)Sent when a figure changedvoidfigureRemoved(FigureChangeEvent e)Sent when a figure was removedjava.util.Vectorhandles()Returns the handles of a Figure that can be used to manipulate some of its attributes.booleanhasCycle(Figure start)voidnotifyPostTasks()voidread(StorableInput dr)Reads the contained figures from StorableInput.java.util.VectorreadTasks(StorableInput dr)voidremovePostTask(PertFigure figure)voidremovePreTask(PertFigure figure)voidsetEnd(int value)intstart()voidupdate(FigureChangeEvent e)voidupdateDurations()voidwrite(StorableOutput dw)Writes the contained figures to the StorableOutput.voidwriteTasks(StorableOutput dw, java.util.Vector v)-
Methods inherited from class CH.ifa.draw.standard.CompositeFigure
add, addAll, bringToFront, figureAt, figureCount, figureInvalidated, figureRequestRemove, figureRequestUpdate, figures, figuresReverse, findFigure, findFigure, findFigure, findFigureInside, findFigureInsideWithout, findFigureWithout, includes, orphan, orphanAll, release, remove, removeAll, removeAll, replace, sendToBack
-
Methods inherited from class CH.ifa.draw.standard.AbstractFigure
addFigureChangeListener, addToContainer, canConnect, center, changed, clone, connectedTextLocator, connectorAt, connectorVisibility, containsPoint, decompose, displayBox, displayBox, getAttribute, invalidate, isEmpty, listener, moveBy, removeFigureChangeListener, removeFromContainer, setAttribute, size, willChange
-
-
-
-
Method Detail
-
start
public int start()
-
end
public int end()
-
duration
public int duration()
-
setEnd
public void setEnd(int value)
-
addPreTask
public void addPreTask(PertFigure figure)
-
addPostTask
public void addPostTask(PertFigure figure)
-
removePreTask
public void removePreTask(PertFigure figure)
-
removePostTask
public void removePostTask(PertFigure figure)
-
displayBox
public java.awt.Rectangle displayBox()
Description copied from class:AbstractFigureGets the display box of a figure.- Specified by:
displayBoxin interfaceFigure- Specified by:
displayBoxin classAbstractFigure- See Also:
Figure.basicDisplayBox(java.awt.Point, java.awt.Point)
-
basicDisplayBox
public void basicDisplayBox(java.awt.Point origin, java.awt.Point corner)Description copied from class:AbstractFigureSets the display box of a figure. This is the method that subclassers override. Clients usually call displayBox.- Specified by:
basicDisplayBoxin interfaceFigure- Specified by:
basicDisplayBoxin classAbstractFigure- Parameters:
origin- the new origincorner- the new corner- See Also:
AbstractFigure.displayBox(java.awt.Point, java.awt.Point)
-
draw
public void draw(java.awt.Graphics g)
Description copied from class:CompositeFigureDraws all the contained figures- Specified by:
drawin interfaceFigure- Overrides:
drawin classCompositeFigure- Parameters:
g- the Graphics to draw into- See Also:
Figure.draw(java.awt.Graphics)
-
handles
public java.util.Vector handles()
Description copied from class:AbstractFigureReturns the handles of a Figure that can be used to manipulate some of its attributes.- Specified by:
handlesin interfaceFigure- Specified by:
handlesin classAbstractFigure- Returns:
- a Vector of handles
- See Also:
Handle
-
update
public void update(FigureChangeEvent e)
-
figureChanged
public void figureChanged(FigureChangeEvent e)
Description copied from interface:FigureChangeListenerSent when a figure changed- Specified by:
figureChangedin interfaceFigureChangeListener- Overrides:
figureChangedin classCompositeFigure
-
figureRemoved
public void figureRemoved(FigureChangeEvent e)
Description copied from interface:FigureChangeListenerSent when a figure was removed- Specified by:
figureRemovedin interfaceFigureChangeListener- Overrides:
figureRemovedin classCompositeFigure
-
notifyPostTasks
public void notifyPostTasks()
-
updateDurations
public void updateDurations()
-
hasCycle
public boolean hasCycle(Figure start)
-
write
public void write(StorableOutput dw)
Description copied from class:CompositeFigureWrites the contained figures to the StorableOutput.- Specified by:
writein interfaceStorable- Overrides:
writein classCompositeFigure
-
writeTasks
public void writeTasks(StorableOutput dw, java.util.Vector v)
-
read
public void read(StorableInput dr) throws java.io.IOException
Description copied from class:CompositeFigureReads the contained figures from StorableInput.- Specified by:
readin interfaceStorable- Overrides:
readin classCompositeFigure- Throws:
java.io.IOException
-
connectionInsets
public java.awt.Insets connectionInsets()
Description copied from class:AbstractFigureReturns the connection inset. The connection inset defines the area where the display box of a figure can't be connected. By default the entire display box can be connected.- Specified by:
connectionInsetsin interfaceFigure- Overrides:
connectionInsetsin classAbstractFigure
-
readTasks
public java.util.Vector readTasks(StorableInput dr) throws java.io.IOException
- Throws:
java.io.IOException
-
-
DataMelt 3.0 © DataMelt by jWork.ORG