org.objectweb.fractal.explorer.graph
Class VertexGraphics

java.lang.Object
  extended by org.objectweb.fractal.explorer.graph.VertexGraphics
All Implemented Interfaces:
org.objectweb.util.explorer.swing.graph.VertexGraphicsInterface

public class VertexGraphics
extends Object
implements org.objectweb.util.explorer.swing.graph.VertexGraphicsInterface

Version:
0.2

Field Summary
 
Fields inherited from interface org.objectweb.util.explorer.swing.graph.VertexGraphicsInterface
COMPOSITE_MEMBRANE_SIZE, COMPOSITE_NAME_WIDTH, FIRST_VETEX_LOCATION, POLICE_DG, POLICE_TR, PRIMITIVE_MEMBRANE_SIZE, PRIMITIVE_NAME_HEIGHT, PRIMITIVE_NAME_WIDTH, PRIMITIVE_ORIGIN, SIZE_STR_NAME, SIZE_STR_PORT, SUPER_COMPOSITE_NAME_LOCATION, SUPER_COMPOSITE_ORIGIN, VERTEX_MAX_WIDTH
 
Constructor Summary
VertexGraphics()
           
 
Method Summary
 void drawVertex(Graphics g, String vertexType, Dimension d, org.objectweb.util.explorer.swing.graph.PrimitiveVertex vertex)
          Draw the specific vertex into the specific grahics g
 Dimension getDefaultSize()
          Returns the vertex default size
 Dimension getSuperCompositeSize()
          Returns the open composite (super composite) size
 Font getTextFont()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VertexGraphics

public VertexGraphics()
Method Detail

getTextFont

public Font getTextFont()

getDefaultSize

public Dimension getDefaultSize()
Returns the vertex default size

Specified by:
getDefaultSize in interface org.objectweb.util.explorer.swing.graph.VertexGraphicsInterface

getSuperCompositeSize

public Dimension getSuperCompositeSize()
Returns the open composite (super composite) size

Specified by:
getSuperCompositeSize in interface org.objectweb.util.explorer.swing.graph.VertexGraphicsInterface

drawVertex

public void drawVertex(Graphics g,
                       String vertexType,
                       Dimension d,
                       org.objectweb.util.explorer.swing.graph.PrimitiveVertex vertex)
Draw the specific vertex into the specific grahics g

Specified by:
drawVertex in interface org.objectweb.util.explorer.swing.graph.VertexGraphicsInterface