TWE 2.3-2 API

org.enhydra.jawe.components.graph
Class DefaultGraphPortView

java.lang.Object
  extended byorg.jgraph.graph.AbstractCellView
      extended byorg.jgraph.graph.PortView
          extended byorg.enhydra.jawe.components.graph.GraphPortViewInterface
              extended byorg.enhydra.jawe.components.graph.DefaultGraphPortView
All Implemented Interfaces:
org.jgraph.graph.CellView, java.io.Serializable

public class DefaultGraphPortView
extends GraphPortViewInterface

Represents a view for a Port object.

Author:
Sasa Bojanic
See Also:
Serialized Form

Field Summary
protected static java.util.Map renderers
           
 
Fields inherited from class org.jgraph.graph.PortView
lastParent, renderer, SIZE
 
Fields inherited from class org.jgraph.graph.AbstractCellView
allAttributes, attributes, cell, cellEditor, childViews, groupBounds, parent
 
Constructor Summary
DefaultGraphPortView(java.lang.Object cell)
           
 
Method Summary
protected  GraphPortRendererInterface createRenderer(java.lang.String type)
           
 java.awt.geom.Rectangle2D getBounds()
           
 GraphActivityInterface getGraphActivity()
           
 java.awt.Dimension getPortSize()
          Returns port's size.
 org.jgraph.graph.CellViewRenderer getRenderer()
           
 void setPortSize(java.awt.Dimension d)
          Sets size of all ports to given value.
 
Methods inherited from class org.jgraph.graph.PortView
getHandle, getLocation, getLocation, getLocation, getParentView, shouldInvokePortMagic
 
Methods inherited from class org.jgraph.graph.AbstractCellView
changeAttributes, childUpdated, createAttributeMap, getAllAttributes, getAttributes, getBounds, getCell, getCellAttributes, getCenterPoint, getChildViews, getDescendantViews, getEditor, getPerimeterPoint, getRendererComponent, includeInGroupBounds, intersects, isLeaf, mergeAttributes, refresh, removeFromParent, scale, setAttributes, setBounds, setCell, translate, update, updateGroupBounds
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

renderers

protected static java.util.Map renderers
Constructor Detail

DefaultGraphPortView

public DefaultGraphPortView(java.lang.Object cell)
Method Detail

setPortSize

public void setPortSize(java.awt.Dimension d)
Sets size of all ports to given value.

Specified by:
setPortSize in class GraphPortViewInterface

getPortSize

public java.awt.Dimension getPortSize()
Returns port's size.

Specified by:
getPortSize in class GraphPortViewInterface

getGraphActivity

public GraphActivityInterface getGraphActivity()
Specified by:
getGraphActivity in class GraphPortViewInterface

getRenderer

public org.jgraph.graph.CellViewRenderer getRenderer()

getBounds

public java.awt.geom.Rectangle2D getBounds()

createRenderer

protected GraphPortRendererInterface createRenderer(java.lang.String type)

TWE 2.3-2 API