public class WSNodeGUI extends NodeGUI
| Modifier and Type | Field and Description |
|---|---|
protected static Color |
CONFIG_AREA_COLOR |
protected static int |
CONFIG_AREA_GAP_X |
protected Rectangle |
configurationArea |
protected String |
configurationText |
protected static String |
DEFAULT_CONFIG_AREA_TEXT |
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 |
|---|
WSNodeGUI(WSNode node)
Creates a WsNodeGui
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
calculatePositions(Graphics g)
Calculates the width of the node and x-coordinate of the ports.
|
protected boolean |
isInConfig(Point point)
Checks if a user's click is to select the configuration
|
void |
mouseClicked(MouseEvent event,
XBayaEngine engine) |
protected void |
paint(Graphics2D g)
Paints the config area
|
protected void |
paintConfiguration(Graphics2D g) |
void |
setInteractiveMode(boolean mode) |
protected void |
showConfigurationDialog(XBayaGUI xbayaGUI,
Monitor monitor) |
addPaintable, drawBody, drawBreaks, drawEdge, drawExtras, drawHeader, drawHeader, drawHeader, drawHeader, drawPorts, drawPorts, getAllPorts, getBodyColor, getBounds, getComponentBodyColor, getComponentEdgeColor, getComponentHeaderColor, getComponentHeaderShape, getComponentHeaderText, getComponentShape, getEndColor, getNode, getPosition, isIn, nodeUpdated, removePaintable, resetTokens, setBodyColor, setDraggedFlag, setHeadColor, setPortPositions, setSelectedFlag, setTokenprotected static final Color CONFIG_AREA_COLOR
protected static final String DEFAULT_CONFIG_AREA_TEXT
protected static final int CONFIG_AREA_GAP_X
protected String configurationText
protected Rectangle configurationArea
public WSNodeGUI(WSNode node)
node - protected void calculatePositions(Graphics g)
NodeGUIcalculatePositions in class NodeGUIpublic void mouseClicked(MouseEvent event, XBayaEngine engine)
mouseClicked in interface GraphPieceGUImouseClicked in class NodeGUIGraphPieceGUI.mouseClicked(java.awt.event.MouseEvent,
org.apache.airavata.xbaya.XBayaEngine)protected void paint(Graphics2D g)
protected void paintConfiguration(Graphics2D g)
protected boolean isInConfig(Point point)
isInConfig in class NodeGUIpoint - public void setInteractiveMode(boolean mode)
Copyright © 2011–2014 The Apache Software Foundation. All rights reserved.