public class InstanceNodeGUI extends ConfigurableNodeGUI
CONFIG_AREA_COLOR, CONFIG_AREA_GAP_X, configurationArea, configurationText, DEFAULT_CONFIG_AREA_TEXTbodyColor, 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 |
|---|
InstanceNodeGUI(InstanceNode 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 Color |
getComponentHeaderColor() |
protected RoundRectangle2D |
getComponentHeaderShape() |
protected String |
getComponentHeaderText() |
protected GeneralPath |
getComponentShape() |
protected Node |
getNode() |
protected boolean |
isIn(Point point)
Checks if a user's click is to select the node.
|
protected void |
setPortPositions()
Sets up the position of ports
|
protected void |
showConfigurationDialog(XBayaGUI xbayaGUI) |
drawComponentConfiguration, isInConfig, mouseClicked, paint, setConfigurationTextaddPaintable, drawBody, drawBreaks, drawEdge, drawExtras, drawHeader, drawHeader, drawHeader, drawHeader, drawPorts, drawPorts, getAllPorts, getBodyColor, getComponentBodyColor, getComponentEdgeColor, getEndColor, getPosition, nodeUpdated, removePaintable, resetTokens, setBodyColor, setDraggedFlag, setHeadColor, setSelectedFlag, setTokenpublic InstanceNodeGUI(InstanceNode node)
node - protected void showConfigurationDialog(XBayaGUI xbayaGUI)
showConfigurationDialog in class ConfigurableNodeGUIorg.apache.airavata.xbaya.ui.graph.system.ConfigurableNodeGUI#showConfigurationDialog(org.apache.airavata.xbaya.XBayaEngine)protected void calculatePositions(Graphics g)
NodeGUIcalculatePositions in class ConfigurableNodeGUIConfigurableNodeGUI.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 Color getComponentHeaderColor()
getComponentHeaderColor in class NodeGUIprotected String getComponentHeaderText()
getComponentHeaderText in class NodeGUIprotected GeneralPath getComponentShape()
getComponentShape in class NodeGUIprotected RoundRectangle2D getComponentHeaderShape()
getComponentHeaderShape in class NodeGUIprotected void setPortPositions()
setPortPositions in class NodeGUICopyright © 2011–2014 The Apache Software Foundation. All rights reserved.