CH.ifa.draw.figures
Class ElbowConnection
- java.lang.Object
-
- CH.ifa.draw.standard.AbstractFigure
-
- CH.ifa.draw.figures.PolyLineFigure
-
- CH.ifa.draw.figures.LineConnection
-
- CH.ifa.draw.figures.ElbowConnection
-
- All Implemented Interfaces:
- ConnectionFigure, Figure, FigureChangeListener, Storable, java.io.Serializable, java.lang.Cloneable, java.util.EventListener
public class ElbowConnection extends LineConnection
A LineConnection that constrains a connection to orthogonal lines.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class CH.ifa.draw.figures.PolyLineFigure
ARROW_TIP_BOTH, ARROW_TIP_END, ARROW_TIP_NONE, ARROW_TIP_START
-
Fields inherited from interface CH.ifa.draw.framework.Figure
POPUP_MENU
-
-
Constructor Summary
Constructors Constructor and Description ElbowConnection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description LocatorconnectedTextLocator(Figure f)Returns the locator used to located connected text.java.util.Vectorhandles()Gets the handles of the figure.voidlayoutConnection()Lays out the connection.voidupdateConnection()Updates the connection.-
Methods inherited from class CH.ifa.draw.figures.LineConnection
canConnect, canConnect, connectEnd, connectsSame, connectStart, disconnectEnd, disconnectStart, end, endFigure, endPoint, endPoint, figureChanged, figureInvalidated, figureRemoved, figureRequestRemove, figureRequestUpdate, insertPointAt, read, release, removePointAt, setPointAt, start, startFigure, startPoint, startPoint, write
-
Methods inherited from class CH.ifa.draw.figures.PolyLineFigure
addPoint, basicDisplayBox, connectorAt, containsPoint, displayBox, draw, findSegment, getAttribute, getEndDecoration, getStartDecoration, isEmpty, joinSegments, locator, pointAt, pointCount, points, setAttribute, setEndDecoration, setStartDecoration, splitSegment
-
Methods inherited from class CH.ifa.draw.standard.AbstractFigure
addFigureChangeListener, addToContainer, center, changed, clone, connectionInsets, connectorVisibility, decompose, displayBox, displayBox, figures, findFigureInside, includes, invalidate, listener, moveBy, removeFigureChangeListener, removeFromContainer, size, willChange
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface CH.ifa.draw.framework.ConnectionFigure
joinSegments, pointAt, pointCount, splitSegment
-
Methods inherited from interface CH.ifa.draw.framework.Figure
addFigureChangeListener, addToContainer, basicDisplayBox, center, changed, clone, connectionInsets, connectorAt, connectorVisibility, containsPoint, decompose, displayBox, displayBox, displayBox, draw, figures, findFigureInside, getAttribute, includes, invalidate, isEmpty, listener, moveBy, removeFigureChangeListener, removeFromContainer, setAttribute, size, willChange
-
-
-
-
Method Detail
-
updateConnection
public void updateConnection()
Description copied from class:LineConnectionUpdates the connection.- Specified by:
updateConnectionin interfaceConnectionFigure- Overrides:
updateConnectionin classLineConnection
-
layoutConnection
public void layoutConnection()
Description copied from class:LineConnectionLays out the connection. This is called when the connection itself changes. By default the connection is recalculated- Overrides:
layoutConnectionin classLineConnection
-
handles
public java.util.Vector handles()
Gets the handles of the figure.- Specified by:
handlesin interfaceFigure- Overrides:
handlesin classLineConnection- Returns:
- a Vector of handles
- See Also:
Handle
-
connectedTextLocator
public Locator connectedTextLocator(Figure f)
Description copied from class:AbstractFigureReturns the locator used to located connected text.- Specified by:
connectedTextLocatorin interfaceFigure- Overrides:
connectedTextLocatorin classAbstractFigure
-
-
DataMelt 3.0 © DataMelt by jWork.ORG