org.jhotdraw.samples.mini
Class SmartConnectionFigureSample.SmartConnectionFigure

java.lang.Object
  extended by org.jhotdraw.beans.AbstractBean
      extended by org.jhotdraw.draw.AbstractFigure
          extended by org.jhotdraw.draw.AbstractAttributedFigure
              extended by org.jhotdraw.draw.BezierFigure
                  extended by org.jhotdraw.draw.LineFigure
                      extended by org.jhotdraw.draw.LineConnectionFigure
                          extended by org.jhotdraw.samples.mini.SmartConnectionFigureSample.SmartConnectionFigure
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, ConnectionFigure, Figure, DOMStorable
Enclosing class:
SmartConnectionFigureSample

private static class SmartConnectionFigureSample.SmartConnectionFigure
extends LineConnectionFigure


Field Summary
 
Fields inherited from class org.jhotdraw.draw.LineConnectionFigure
LINER_PROPERTY
 
Fields inherited from class org.jhotdraw.draw.BezierFigure
path
 
Fields inherited from class org.jhotdraw.draw.AbstractFigure
changingDepth, listenerList
 
Fields inherited from class org.jhotdraw.beans.AbstractBean
propertySupport
 
Constructor Summary
SmartConnectionFigureSample.SmartConnectionFigure()
           
 
Method Summary
 void handleConnect(Connector start, Connector end)
          Handles the connection of a connection.
 void handleDisconnect(Connector start, Connector end)
          Handles the disconnection of a connection.
 
Methods inherited from class org.jhotdraw.draw.LineConnectionFigure
addNotify, canConnect, canConnect, canConnect, clone, createHandles, getBezierPath, getEndConnector, getEndFigure, getLiner, getStartConnector, getStartFigure, handleMouseClick, lineout, read, readLiner, readPoints, remap, removeNotify, reverseConnection, setEndConnector, setEndPoint, setLiner, setNode, setPoint, setStartConnector, setStartPoint, transform, updateConnection, validate, write, writeLiner, writePoints
 
Methods inherited from class org.jhotdraw.draw.BezierFigure
addNode, addNode, chop, contains, drawCaps, drawFill, drawStroke, findCompatibleConnector, findConnector, findNode, findSegment, getBounds, getCappedPath, getCenter, getDrawingArea, getEndPoint, getNode, getNodeCount, getOutermostPoint, getPoint, getPoint, getPointOnPath, getStartPoint, getTransformRestoreData, invalidate, isClosed, joinSegments, joinSegments, layout, removeAllNodes, removeNode, restoreTransformTo, set, setBezierPath, setBounds, setClosed, setPoint, splitSegment, splitSegment
 
Methods inherited from class org.jhotdraw.draw.AbstractAttributedFigure
applyAttributesTo, draw, drawText, get, getAttributeKey, getAttributes, getAttributesRestoreData, getStroke, getStrokeMiterLimitFactor, hasAttribute, isAttributeEnabled, readAttributes, removeAttribute, restoreAttributesTo, setAttributeEnabled, setAttributes, writeAttributes
 
Methods inherited from class org.jhotdraw.draw.AbstractFigure
addFigureListener, basicClone, changed, findFigureInside, fireAreaInvalidated, fireAreaInvalidated, fireAreaInvalidated, fireAttributeChanged, fireFigureAdded, fireFigureChanged, fireFigureChanged, fireFigureChanged, fireFigureHandlesChanged, fireFigureRemoved, fireFigureRequestRemove, fireUndoableEditHappened, getActions, getChangingDepth, getConnectors, getCursor, getDecomposition, getDrawing, getFontRenderContext, getLayer, getLock, getPreferredSize, getTool, getToolTipText, handleDrop, includes, isChanging, isRemovable, isSelectable, isTransformable, isVisible, removeFigureListener, requestRemove, setBounds, setRemovable, setSelectable, setTransformable, setVisible, toString, willChange
 
Methods inherited from class org.jhotdraw.beans.AbstractBean
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jhotdraw.draw.ConnectionFigure
getEndPoint, getNode, getNodeCount, getPoint, getStartPoint
 
Methods inherited from interface org.jhotdraw.draw.Figure
addFigureListener, changed, contains, draw, findCompatibleConnector, findConnector, findFigureInside, get, getActions, getAttributes, getAttributesRestoreData, getBounds, getConnectors, getCursor, getDecomposition, getDrawingArea, getLayer, getPreferredSize, getTool, getToolTipText, getTransformRestoreData, handleDrop, includes, isRemovable, isSelectable, isTransformable, isVisible, removeFigureListener, requestRemove, restoreAttributesTo, restoreTransformTo, set, setBounds, willChange
 

Constructor Detail

SmartConnectionFigureSample.SmartConnectionFigure

public SmartConnectionFigureSample.SmartConnectionFigure()
Method Detail

handleConnect

public void handleConnect(Connector start,
                          Connector end)
Description copied from class: LineConnectionFigure
Handles the connection of a connection. Override this method to handle this event.

Note: This method is only invoked, when the Figure is part of a Drawing. If the Figure is added to a Drawing this method is invoked on behalf of the addNotify call to the Figure.

Overrides:
handleConnect in class LineConnectionFigure

handleDisconnect

public void handleDisconnect(Connector start,
                             Connector end)
Description copied from class: LineConnectionFigure
Handles the disconnection of a connection. Override this method to handle this event.

Note: This method is only invoked, when the Figure is part of a Drawing. If the Figure is removed from a Drawing, this method is invoked on behalf of the removeNotify call to the Figure.

Overrides:
handleDisconnect in class LineConnectionFigure
See Also:
LineConnectionFigure.removeNotify(org.jhotdraw.draw.Drawing)