public class TerminateInstanceNodeGUI extends NodeGUI
bodyColor, BREAK_POINT_BORDER_COLOR, BREAK_POINT_COLOR, DEFAULT_BODY_COLOR, DEFAULT_HEAD_COLOR, dimension, dragged, DRAGGED_BODY_COLOR, EDGE_COLOR, headColor, headHeight, MINIMUM_HEIGHT, MINIMUM_WIDTH, paintables, PORT_GAP, PORT_INITIAL_GAP, selected, SELECTED_HEAD_COLOR, TEXT_COLOR, TEXT_GAP_X, TEXT_GAP_Y| Constructor and Description |
|---|
TerminateInstanceNodeGUI(TerminateInstanceNode node)
Constructs a InstanceNodeGUI.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
calculatePositions(Graphics g)
Calculates the width of the node and x-coordinate of the ports.
|
protected Rectangle |
getBounds()
Gets the bounding Rectangle of this Node.
|
protected boolean |
isIn(Point point)
Checks if a user's click is to select the node.
|
protected void |
paint(Graphics2D g) |
protected void |
setPortPositions()
Sets up the position of ports
|
addPaintable, drawBody, drawBreaks, drawEdge, drawExtras, drawHeader, drawHeader, drawHeader, drawHeader, drawPorts, drawPorts, getAllPorts, getBodyColor, getComponentBodyColor, getComponentEdgeColor, getComponentHeaderColor, getComponentHeaderShape, getComponentHeaderText, getComponentShape, getEndColor, getNode, getPosition, isInConfig, mouseClicked, nodeUpdated, removePaintable, resetTokens, setBodyColor, setDraggedFlag, setHeadColor, setSelectedFlag, setTokenpublic TerminateInstanceNodeGUI(TerminateInstanceNode node)
node - protected void calculatePositions(Graphics g)
NodeGUIcalculatePositions in class NodeGUIConfigurableNodeGUI.calculatePositions(java.awt.Graphics)protected Rectangle getBounds()
NodeGUIgetBounds in class NodeGUINodeGUI.getBounds()protected boolean isIn(Point point)
NodeGUIisIn in class NodeGUIpoint - The location.NodeGUI.isIn(java.awt.Point)protected void paint(Graphics2D g)
paint in class NodeGUIConfigurableNodeGUI.paint(java.awt.Graphics2D)protected void setPortPositions()
setPortPositions in class NodeGUICopyright © 2011–2014 The Apache Software Foundation. All rights reserved.