public class PortGUI extends Object implements GraphPieceGUI
| Modifier and Type | Field and Description |
|---|---|
static int |
CONTROL_PORT_SIZE
CONTROL_PORT_SIZE
|
static int |
DATA_PORT_SIZE
The size of the port (diameter of the triangle)
|
protected static Color |
TEXT_COLOR |
| Modifier and Type | Method and Description |
|---|---|
void |
addToken(String workflowName) |
String |
getPortText() |
Point |
getPosition() |
void |
mouseClicked(MouseEvent event,
XBayaEngine engine) |
void |
paint(Graphics2D g) |
void |
removeToken(String workflowName) |
void |
reset() |
void |
setOffset(Point offset) |
void |
setPortText(String portText) |
protected void |
setSelectedFlag(boolean bool) |
public static final int DATA_PORT_SIZE
public static final int CONTROL_PORT_SIZE
protected static final Color TEXT_COLOR
public PortGUI(Port port)
port - public void mouseClicked(MouseEvent event, XBayaEngine engine)
mouseClicked in interface GraphPieceGUIGraphPieceGUI.mouseClicked(java.awt.event.MouseEvent,
org.apache.airavata.xbaya.XBayaEngine)public void paint(Graphics2D g)
g - public void setOffset(Point offset)
offset - public Point getPosition()
protected void setSelectedFlag(boolean bool)
bool - public void removeToken(String workflowName)
workflowName - public void addToken(String workflowName)
workflowName - public void reset()
public String getPortText()
public void setPortText(String portText)
Copyright © 2011–2014 The Apache Software Foundation. All rights reserved.