Class ErdConnection
- java.lang.Object
-
- org.eclipse.draw2d.Figure
-
- org.eclipse.draw2d.Shape
-
- org.eclipse.draw2d.AbstractPointListShape
-
- org.eclipse.draw2d.Polyline
-
- org.eclipse.draw2d.PolylineConnection
-
- com._1c.g5.v8.dt.diagram.framework.ui.model.AbstractDiagramConnection
-
- com._1c.g5.v8.dt.diagram.framework.ui.model.AbstractPathPointConnection
-
- com._1c.g5.v8.dt.erd.ui.model.draw2d.ErdConnection
-
- All Implemented Interfaces:
com._1c.g5.v8.dt.diagram.framework.ui.model.IRecolorable
,com._1c.g5.v8.dt.diagram.framework.ui.model.IRestylable
,com._1c.g5.v8.dt.diagram.framework.ui.model.ISelectable
,org.eclipse.draw2d.AnchorListener
,org.eclipse.draw2d.Connection
,org.eclipse.draw2d.IFigure
public class ErdConnection extends com._1c.g5.v8.dt.diagram.framework.ui.model.AbstractPathPointConnection implements com._1c.g5.v8.dt.diagram.framework.ui.model.IRecolorable, com._1c.g5.v8.dt.diagram.framework.ui.model.IRestylable
Instance of this class represents entity connection.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com._1c.g5.v8.dt.diagram.framework.ui.model.AbstractPathPointConnection
com._1c.g5.v8.dt.diagram.framework.ui.model.AbstractPathPointConnection.PathPointConnectionMouseListener
-
-
Constructor Summary
Constructors Constructor Description ErdConnection(com._1c.g5.v8.dt.diagram.framework.IRelation associatedRelation, com._1c.g5.v8.dt.diagram.framework.ui.IDiagram diagram, DiagramTabItem tab)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
connectionChanged(org.eclipse.draw2d.Connection connection, org.eclipse.draw2d.geometry.PointList oldPath, org.eclipse.draw2d.geometry.PointList newPath)
protected com._1c.g5.v8.dt.diagram.framework.ui.model.AbstractPathPoint
createPathPoint(org.eclipse.draw2d.geometry.Point point)
protected boolean
drawJumpLinks()
protected boolean
drawRoundedBendAngles()
protected com._1c.g5.v8.dt.diagram.framework.ui.IDiagram
getDiagramGui()
protected void
pathPointAdded(com._1c.g5.v8.dt.diagram.framework.ui.model.AbstractPathPoint pathPoint)
protected void
pathPointRemoved(com._1c.g5.v8.dt.diagram.framework.ui.model.AbstractPathPoint pathPoint)
void
recolor()
void
reloadColors()
Reloads colors from preference store.void
reloadStyles()
void
restyle()
void
setSelected(boolean isSelected)
protected void
showMenu(org.eclipse.draw2d.Connection source)
-
Methods inherited from class com._1c.g5.v8.dt.diagram.framework.ui.model.AbstractPathPointConnection
getClearPoints, getPathPoitns, getTolerance, initMouseListeners, isNew, isRemoved, isSelected, renewPathPoints, setPathPointsVisible, setPoints
-
Methods inherited from class com._1c.g5.v8.dt.diagram.framework.ui.model.AbstractDiagramConnection
getAssociatedRelation, outlineShape
-
Methods inherited from class org.eclipse.draw2d.PolylineConnection
addNotify, addRoutingListener, anchorMoved, getBounds, getConnectionRouter, getRoutingConstraint, getSourceAnchor, getSourceDecoration, getTargetAnchor, getTargetDecoration, layout, removeNotify, removeRoutingListener, revalidate, setConnectionRouter, setRoutingConstraint, setSourceAnchor, setSourceDecoration, setTargetAnchor, setTargetDecoration
-
Methods inherited from class org.eclipse.draw2d.Polyline
containsPoint, fillShape, isOpaque, primTranslate, removeAllPoints, repaint, setLineWidth, setTolerance, shapeContainsPoint
-
Methods inherited from class org.eclipse.draw2d.AbstractPointListShape
addPoint, childrenContainsPoint, getEnd, getPoints, getStart, insertPoint, removePoint, setEnd, setEndpoints, setPoint, setStart
-
Methods inherited from class org.eclipse.draw2d.Shape
getAlpha, getAntialias, getLineAttributes, getLineCap, getLineDash, getLineDashOffset, getLineJoin, getLineMiterLimit, getLineStyle, getLineWidth, getLineWidthFloat, paintFigure, setAlpha, setAlpha, setAntialias, setAntialias, setFill, setFillXOR, setLineAttributes, setLineCap, setLineDash, setLineDashOffset, setLineJoin, setLineMiterLimit, setLineStyle, setLineWidthFloat, setOutline, setOutlineXOR, setXOR
-
Methods inherited from class org.eclipse.draw2d.Figure
add, add, add, add, addAncestorListener, addCoordinateListener, addFigureListener, addFocusListener, addKeyListener, addLayoutListener, addListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, containsPoint, erase, findDescendantAtExcluding, findFigureAt, findFigureAt, findFigureAt, findFigureAtExcluding, findMouseEventTargetAt, findMouseEventTargetInDescendantsAt, fireCoordinateSystemChanged, fireFigureMoved, fireMoved, firePropertyChange, firePropertyChange, firePropertyChange, getBackgroundColor, getBorder, getChildren, getClientArea, getClientArea, getClippingStrategy, getCursor, getFlag, getFont, getForegroundColor, getInsets, getLayoutManager, getListeners, getLocalBackgroundColor, getLocalFont, getLocalForegroundColor, getLocation, getMaximumSize, getMinimumSize, getMinimumSize, getParent, getPreferredSize, getPreferredSize, getSize, getToolTip, getUpdateManager, handleFocusGained, handleFocusLost, handleKeyPressed, handleKeyReleased, handleMouseDoubleClicked, handleMouseDragged, handleMouseEntered, handleMouseExited, handleMouseHover, handleMouseMoved, handleMousePressed, handleMouseReleased, hasFocus, internalGetEventDispatcher, intersects, invalidate, invalidateTree, isCoordinateSystem, isEnabled, isFocusTraversable, isMirrored, isMouseEventTarget, isRequestFocusEnabled, isShowing, isValid, isValidationRoot, isVisible, paint, paintBorder, paintChildren, paintClientArea, remove, removeAll, removeAncestorListener, removeCoordinateListener, removeFigureListener, removeFocusListener, removeKeyListener, removeLayoutListener, removeListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, requestFocus, setBackgroundColor, setBorder, setBounds, setChildrenDirection, setChildrenEnabled, setChildrenOrientation, setClippingStrategy, setConstraint, setCursor, setEnabled, setFlag, setFocusTraversable, setFont, setForegroundColor, setLayoutManager, setLocation, setMaximumSize, setMinimumSize, setOpaque, setParent, setPreferredSize, setPreferredSize, setRequestFocusEnabled, setSize, setSize, setToolTip, setValid, setVisible, translate, translateFromParent, translateToAbsolute, translateToParent, translateToRelative, useLocalCoordinates, validate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.draw2d.IFigure
add, add, add, add, addAncestorListener, addCoordinateListener, addFigureListener, addFocusListener, addKeyListener, addLayoutListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, containsPoint, containsPoint, erase, findFigureAt, findFigureAt, findFigureAt, findFigureAtExcluding, findMouseEventTargetAt, getBackgroundColor, getBorder, getChildren, getClientArea, getClientArea, getClippingStrategy, getCursor, getFont, getForegroundColor, getInsets, getLayoutManager, getLocalBackgroundColor, getLocalForegroundColor, getMaximumSize, getMinimumSize, getMinimumSize, getParent, getPreferredSize, getPreferredSize, getSize, getToolTip, getUpdateManager, handleFocusGained, handleFocusLost, handleKeyPressed, handleKeyReleased, handleMouseDoubleClicked, handleMouseDragged, handleMouseEntered, handleMouseExited, handleMouseHover, handleMouseMoved, handleMousePressed, handleMouseReleased, hasFocus, internalGetEventDispatcher, intersects, invalidate, invalidateTree, isCoordinateSystem, isEnabled, isFocusTraversable, isMirrored, isOpaque, isRequestFocusEnabled, isShowing, isVisible, paint, remove, removeAncestorListener, removeCoordinateListener, removeFigureListener, removeFocusListener, removeKeyListener, removeLayoutListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, setBackgroundColor, setBorder, setBounds, setClippingStrategy, setConstraint, setCursor, setEnabled, setFocusTraversable, setFont, setForegroundColor, setLayoutManager, setLocation, setMaximumSize, setMinimumSize, setOpaque, setParent, setPreferredSize, setRequestFocusEnabled, setSize, setSize, setToolTip, setVisible, translate, translateFromParent, translateToAbsolute, translateToParent, translateToRelative, validate
-
-
-
-
Constructor Detail
-
ErdConnection
public ErdConnection(com._1c.g5.v8.dt.diagram.framework.IRelation associatedRelation, com._1c.g5.v8.dt.diagram.framework.ui.IDiagram diagram, DiagramTabItem tab)
Default constructor.- Parameters:
associatedRelation
- - relation to create connection for. Can't benull
.diagram
- - diagram to create connection for. Can't benull
tab
- - tab to add entity to. Can't benull
.
-
-
Method Detail
-
setSelected
public void setSelected(boolean isSelected)
- Specified by:
setSelected
in interfacecom._1c.g5.v8.dt.diagram.framework.ui.model.ISelectable
- Overrides:
setSelected
in classcom._1c.g5.v8.dt.diagram.framework.ui.model.AbstractPathPointConnection
-
recolor
public void recolor()
- Specified by:
recolor
in interfacecom._1c.g5.v8.dt.diagram.framework.ui.model.IRecolorable
-
restyle
public void restyle()
- Specified by:
restyle
in interfacecom._1c.g5.v8.dt.diagram.framework.ui.model.IRestylable
-
reloadColors
public void reloadColors()
Reloads colors from preference store.- Specified by:
reloadColors
in interfacecom._1c.g5.v8.dt.diagram.framework.ui.model.IRecolorable
-
reloadStyles
public void reloadStyles()
- Specified by:
reloadStyles
in interfacecom._1c.g5.v8.dt.diagram.framework.ui.model.IRestylable
-
createPathPoint
protected com._1c.g5.v8.dt.diagram.framework.ui.model.AbstractPathPoint createPathPoint(org.eclipse.draw2d.geometry.Point point)
- Specified by:
createPathPoint
in classcom._1c.g5.v8.dt.diagram.framework.ui.model.AbstractPathPointConnection
-
drawJumpLinks
protected boolean drawJumpLinks()
- Specified by:
drawJumpLinks
in classcom._1c.g5.v8.dt.diagram.framework.ui.model.AbstractDiagramConnection
-
drawRoundedBendAngles
protected boolean drawRoundedBendAngles()
- Specified by:
drawRoundedBendAngles
in classcom._1c.g5.v8.dt.diagram.framework.ui.model.AbstractDiagramConnection
-
showMenu
protected void showMenu(org.eclipse.draw2d.Connection source)
- Specified by:
showMenu
in classcom._1c.g5.v8.dt.diagram.framework.ui.model.AbstractPathPointConnection
-
connectionChanged
protected void connectionChanged(org.eclipse.draw2d.Connection connection, org.eclipse.draw2d.geometry.PointList oldPath, org.eclipse.draw2d.geometry.PointList newPath)
- Specified by:
connectionChanged
in classcom._1c.g5.v8.dt.diagram.framework.ui.model.AbstractPathPointConnection
-
pathPointAdded
protected void pathPointAdded(com._1c.g5.v8.dt.diagram.framework.ui.model.AbstractPathPoint pathPoint)
- Specified by:
pathPointAdded
in classcom._1c.g5.v8.dt.diagram.framework.ui.model.AbstractPathPointConnection
-
pathPointRemoved
protected void pathPointRemoved(com._1c.g5.v8.dt.diagram.framework.ui.model.AbstractPathPoint pathPoint)
- Specified by:
pathPointRemoved
in classcom._1c.g5.v8.dt.diagram.framework.ui.model.AbstractPathPointConnection
-
getDiagramGui
protected com._1c.g5.v8.dt.diagram.framework.ui.IDiagram getDiagramGui()
- Specified by:
getDiagramGui
in classcom._1c.g5.v8.dt.diagram.framework.ui.model.AbstractDiagramConnection
-
-