org.objectweb.fractal.explorer.graph
Class PortGraphics
java.lang.Object
org.objectweb.fractal.explorer.graph.PortGraphics
- All Implemented Interfaces:
- org.objectweb.util.explorer.swing.graph.PortGraphicsInterface
public class PortGraphics
- extends Object
- implements org.objectweb.util.explorer.swing.graph.PortGraphicsInterface
- Version:
- 0.2
Fields inherited from interface org.objectweb.util.explorer.swing.graph.PortGraphicsInterface |
COMPOSITE_CONTROLLER_PORT_WIDTH, CONTROLLER_PORT_WIDTH, CONTROLLER_PORT_Y, FIRST_PORT_Y, PORT_NAME_LENGHT, PORT_NAME_WIDTH |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PortGraphics
public PortGraphics()
getPortSize
public Dimension getPortSize(String portType,
boolean isInternal)
- Specified by:
getPortSize
in interface org.objectweb.util.explorer.swing.graph.PortGraphicsInterface
- Parameters:
portType
- the type of the port
- Returns:
- Dimension the size of the port. The center right must be the
server port location. The center left must be the client port
location. The center up must be the controler port location.
drawPort
public void drawPort(Graphics g,
String portName,
String portType,
boolean isInternal)
- Specified by:
drawPort
in interface org.objectweb.util.explorer.swing.graph.PortGraphicsInterface
- Parameters:
g
- the Graphics where the port have to be paint.portType
- the type of the port.