net.clackrouter.router.graph
Class ComponentView

java.lang.Object
  extended by VertexView
      extended by net.clackrouter.router.graph.ComponentView
All Implemented Interfaces:
ClackPaintable

public class ComponentView
extends VertexView
implements ClackPaintable

Provides a view for the ComponentCell, representing a Clack Component.


Field Summary
static java.awt.Color ERROR_FILL
           
static java.awt.BasicStroke ERROR_STROKE
           
protected  java.awt.Color mBorderColor
           
protected  java.awt.Color mFillColor
           
protected  java.awt.Font mFont
           
protected  int mFontSize
           
protected  java.lang.String mLabel
           
protected  java.lang.String mName
           
static int sBORDER
           
static int shPAD
           
static java.awt.Font smDefaultFont
           
static int smDefaultFontSize
           
static java.awt.BasicStroke STROKE
           
static int swPAD
           
 
Constructor Summary
ComponentView(java.lang.Object cell, JGraph graph, CellMapper cm)
           
 
Method Summary
 void clackPaint()
           
 ClackView getClackView()
           
static java.awt.Rectangle getDefaultBounds(java.lang.String name, java.awt.Point pt)
           
 CellViewRenderer getRenderer()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sBORDER

public static int sBORDER

smDefaultFontSize

public static int smDefaultFontSize

smDefaultFont

public static java.awt.Font smDefaultFont

swPAD

public static int swPAD

shPAD

public static int shPAD

ERROR_FILL

public static java.awt.Color ERROR_FILL

mBorderColor

protected java.awt.Color mBorderColor

mFillColor

protected java.awt.Color mFillColor

mFont

protected java.awt.Font mFont

mFontSize

protected int mFontSize

mName

protected java.lang.String mName

mLabel

protected java.lang.String mLabel

STROKE

public static java.awt.BasicStroke STROKE

ERROR_STROKE

public static java.awt.BasicStroke ERROR_STROKE
Constructor Detail

ComponentView

public ComponentView(java.lang.Object cell,
                     JGraph graph,
                     CellMapper cm)
Method Detail

getDefaultBounds

public static java.awt.Rectangle getDefaultBounds(java.lang.String name,
                                                  java.awt.Point pt)

getClackView

public ClackView getClackView()
Specified by:
getClackView in interface ClackPaintable

clackPaint

public void clackPaint()
Specified by:
clackPaint in interface ClackPaintable

getRenderer

public CellViewRenderer getRenderer()