org.joone.edit
Class LayerFigure
- java.lang.Object
-
- CH.ifa.draw.standard.AbstractFigure
-
- CH.ifa.draw.standard.CompositeFigure
-
- org.joone.edit.ConcreteGenericFigure
-
- org.joone.edit.LayerFigure
-
- All Implemented Interfaces:
- Figure, FigureChangeListener, Storable, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, GenericFigure, UpdatableFigure
- Direct Known Subclasses:
- InputLayerFigure, InputPluginLayerFigure, OutputLayerFigure, OutputPluginLayerFigure
public class LayerFigure extends ConcreteGenericFigure
Graphic representation of a Layer in the net- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.joone.edit.ConcreteGenericFigure
log
-
Fields inherited from interface CH.ifa.draw.framework.Figure
POPUP_MENU
-
-
Constructor Summary
Constructors Constructor and Description LayerFigure()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddPostConn(LayerFigure figure, OutputPatternListener conn)booleanaddPreConn(LayerFigure figure, InputPatternListener conn)Adds an incoming connection.booleancanConnect(GenericFigure start, ConnectionFigure conn)java.lang.ObjectgetLayer()Get the Layer objectWrappergetWrapper()Returns the wrapper for the FigurebooleanhasCycle(Figure start)voidread(StorableInput dr)Reads the contained figures from StorableInput.java.util.VectorreadConn(StorableInput dr)voidremovePostConn(LayerFigure figure)voidremovePostConn(LayerFigure figure, OutputPatternListener conn)voidremovePreConn(LayerFigure figure)voidremovePreConn(LayerFigure figure, InputPatternListener conn)voidsetLayer(java.lang.Object newMyLayer)Can be used to set the Layer object represented (not used)static voidsetNumLayers(int newValue)voidwrite(StorableOutput dw)Writes the contained figures to the StorableOutput.voidwriteConn(StorableOutput dw, java.util.Vector v)-
Methods inherited from class org.joone.edit.ConcreteGenericFigure
basicDisplayBox, connectionInsets, displayBox, draw, figureChanged, figureRemoved, getParam, getPopupMenu, handles, initialize, notifyPostConn, setParam, setParams, update, update
-
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
-
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 classConcreteGenericFigure
-
writeConn
public void writeConn(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 classConcreteGenericFigure- Throws:
java.io.IOException
-
readConn
public java.util.Vector readConn(StorableInput dr) throws java.io.IOException
- Throws:
java.io.IOException
-
removePostConn
public void removePostConn(LayerFigure figure)
-
removePreConn
public void removePreConn(LayerFigure figure)
-
removePostConn
public void removePostConn(LayerFigure figure, OutputPatternListener conn)
-
removePreConn
public void removePreConn(LayerFigure figure, InputPatternListener conn)
-
addPostConn
public void addPostConn(LayerFigure figure, OutputPatternListener conn)
-
addPreConn
public boolean addPreConn(LayerFigure figure, InputPatternListener conn)
Adds an incoming connection.- Returns:
- true if the connection doesn't exist
-
setLayer
public void setLayer(java.lang.Object newMyLayer)
Can be used to set the Layer object represented (not used)- Parameters:
newMyLayer- org.joone.engine.Layer
-
canConnect
public boolean canConnect(GenericFigure start, ConnectionFigure conn)
- Specified by:
canConnectin interfaceGenericFigure- Overrides:
canConnectin classConcreteGenericFigure
-
setNumLayers
public static void setNumLayers(int newValue)
-
getWrapper
public Wrapper getWrapper()
Returns the wrapper for the Figure- Specified by:
getWrapperin interfaceGenericFigure- Specified by:
getWrapperin classConcreteGenericFigure- Returns:
- the Wrapper object
-
getLayer
public java.lang.Object getLayer()
Get the Layer object- Specified by:
getLayerin classConcreteGenericFigure- Returns:
- the Layer object
-
-
DataMelt 3.0 © DataMelt by jWork.ORG