public class DummyNode extends DiagramNode
DiagramLink
.allowIncomingLinks, allowOutgoingLinks, anchorPattern, AV_Cancel, AV_EndModIncoming, AV_EndModOutgoing, AV_StartModIncoming, AV_StartModOutgoing, AV_UpdateIncoming, AV_UpdateOutgoing, AV_UpdIntscIncoming, AV_UpdIntscOutgoing, AV_UpdPosIncoming, AV_UpdPosOutgoing, bounds, enabledHandles, handlesStyle, incomingLinks, masterGroup, obstacle, outgoingLinks, savedBounds
brush, cycleDetected, cycleProtect, modifyDX, modifyDY, modifyHandle, modifying, pen, ptEnd, ptMdfLast, ptOrg, ptSavedEnd, ptSavedOrg, subordinateGroup
Modifier and Type | Method and Description |
---|---|
boolean |
containsPoint(java.awt.geom.Point2D pt)
DiagramItem.containsPoint(Point2D) override. |
ConnectionPoint |
createConnectionPoint(DiagramLink link,
java.awt.geom.Point2D pt,
boolean incoming) |
protected void |
draw(java.awt.Graphics2D g,
RenderOptions options)
|
protected void |
drawShadow(java.awt.Graphics2D g,
RenderOptions options)
|
java.awt.geom.Point2D |
getIntersection(java.awt.geom.Point2D ptOrg,
java.awt.geom.Point2D ptEnd) |
java.awt.geom.Point2D |
getNearestBorderPoint(java.awt.geom.Point2D point)
Returns a point that lies on the outline of this node,
at the shortest distance from the specified point.
|
AdjustmentHandle |
hitTestHandle(java.awt.geom.Point2D point)
DiagramNode#HitTestHandle override. |
protected void |
onUpdateBounds()
Invoked when the bounding rectangle of this node has changed.
|
addLabel, addLabel, allowCreate, allowModify, allowModifyImpl, attachTo, attachTo, attachTo, cancelModify, completeCreate, completeModify, constraintsInfringed, containsPoint, createProperties, createState, detach, drawLocal, drawShadowLocal, getAllIncomingLinks, getAllLinks, getAllOutgoingLinks, getAllowIncomingLinks, getAllowOutgoingLinks, getAnchorPattern, getBounds, getCenter, getConstraints, getContainer, getEffects, getEnabledHandles, getExpandable, getExpanded, getHandlesStyle, getIncomingLinks, getLabels, getLocalBounds, getLocalBoundsD, getLocalCenter, getMasterGroup, getMasterItem, getObstacle, getOutgoingLinks, getRepaintRect, getRotatedBounds, getRotationAngle, groupContains, labelFromPoint, loadFromJson, loadFromXml, move, moveTo, nodesIntersect, onDragOut, onDragOver, onDropOver, onModify, onRemove, onRotationAngleChanged, parentConstraintsInfringed, putExpandable, readExternal, rectFromPoints, removeLabel, resize, resizeToFitImage, restoreProperties, restoreState, saveProperties, saveState, saveToJson, saveToXml, scaleElements, setAllowIncomingLinks, setAllowOutgoingLinks, setAnchorPattern, setBounds, setBounds, setBounds, setBoundsDirect, setConstraints, setEnabledHandles, setExpandable, setExpanded, setExpandedFlag, setHandlesStyle, setObstacle, setReflexive, setRotationAngle, shouldRenderAnchors, startCreate, startModify, updateCreate, updateLinkPositions, updateModify, writeExternal
as, clone, getBrush, getEffectiveBrush, getEffectiveFont, getEffectivePen, getEffectiveShadowBrush, getEffectiveTextBrush, getFont, getHyperLink, getId, getIgnoreLayout, getLayerIndex, getLayoutTraits, getLocked, getMeasureUnit, getOpacity, getParent, getPen, getPrintable, getRuntimeIndex, getSelected, getShadowBrush, getShadowOffsetX, getShadowOffsetY, getStyle, getSubordinateGroup, getTag, getTextBrush, getTextPadding, getToolTip, getValue, getVisible, getWeight, getZIndex, hasSubordinates, hitTest, onAdd, onChangeFont, onChangeTextPadding, onChildModified, onClick, onDoubleClick, onLoad, onMeasureUnitChanged, onStyleChanged, onStyleFontChanged, putSelected, query, repaint, repaint, repaint, setBrush, setDiagramDirty, setFont, setHyperLink, setId, setIgnoreLayout, setLayerIndex, setLocked, setOpacity, setPen, setPrintable, setSelected, setShadowBrush, setShadowOffsetX, setShadowOffsetY, setStyle, setTag, setTextBrush, setTextPadding, setToolTip, setVisible, setWeight, setZIndex, shouldRender, zBottom, zLevelDown, zLevelUp, zTop
public DummyNode(Diagram flowChart)
protected void draw(java.awt.Graphics2D g, RenderOptions options)
DiagramNode
DiagramItem.draw(java.awt.Graphics2D, com.mindfusion.diagramming.RenderOptions)
override. Draws this node on the specified Graphics2D surface.draw
in class DiagramNode
g
- A java.awt.Graphics2D instance.options
- Provides options for the drawing operation.protected void drawShadow(java.awt.Graphics2D g, RenderOptions options)
DiagramNode
DiagramItem.drawShadow(java.awt.Graphics2D, com.mindfusion.diagramming.RenderOptions)
override. Draws the node's shadow on the specified Graphics2D surface.drawShadow
in class DiagramNode
g
- A java.awt.Graphics2D instance.options
- Provides options for the drawing operation.public boolean containsPoint(java.awt.geom.Point2D pt)
DiagramNode
DiagramItem.containsPoint(Point2D)
override. Checks whether this node
contains the specified point. This method is called during hit-testing to determine
if the mouse pointer is over the node.containsPoint
in class DiagramNode
pt
- The point to check.public AdjustmentHandle hitTestHandle(java.awt.geom.Point2D point)
DiagramNode#HitTestHandle
override.hitTestHandle
in class DiagramNode
point
- A Point2D instance specifying the location where to look for adjustment handles.NodeAdjustmentHandle
instance representing the adjustment
handle found at the specified location, or null if there is none.public ConnectionPoint createConnectionPoint(DiagramLink link, java.awt.geom.Point2D pt, boolean incoming)
createConnectionPoint
in class DiagramNode
protected void onUpdateBounds()
DiagramNode
onUpdateBounds
in class DiagramNode
public java.awt.geom.Point2D getIntersection(java.awt.geom.Point2D ptOrg, java.awt.geom.Point2D ptEnd)
public java.awt.geom.Point2D getNearestBorderPoint(java.awt.geom.Point2D point)
DiagramNode
getNearestBorderPoint
in class DiagramNode
point
- A Point2D
instance.Point2D
instance representing the border point
at shortest distance from the specified point.