com.jgraph.example
Class MyPortView

java.lang.Object
  extended by org.jgraph.graph.AbstractCellView
      extended by org.jgraph.graph.PortView
          extended by com.jgraph.example.MyPortView
All Implemented Interfaces:
java.io.Serializable, org.jgraph.graph.CellView

public class MyPortView
extends org.jgraph.graph.PortView

See Also:
Serialized Form

Nested Class Summary
static class MyPortView.MyPortRenderer
           
 
Field Summary
 
Fields inherited from class org.jgraph.graph.PortView
allowPortMagic, SIZE
 
Fields inherited from class org.jgraph.graph.AbstractCellView
cellEditor
 
Constructor Summary
MyPortView(java.lang.Object cell)
           
 
Method Summary
 java.awt.geom.Rectangle2D getBounds()
          Returns the bounds for the port view.
 org.jgraph.graph.CellViewRenderer getRenderer()
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class org.jgraph.graph.PortView
getHandle, getLocation, getLocation, getLocation, getParentView, getPortSize, setPortSize
 
Methods inherited from class org.jgraph.graph.AbstractCellView
changeAttributes, childUpdated, getAllAttributes, getAttributes, getBounds, getCell, getCenterPoint, getChildViews, getDescendantViews, getEditor, getPerimeterPoint, getRendererComponent, intersects, isLeaf, refresh, removeFromParent, scale, setAttributes, setBounds, setCell, translate, update
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyPortView

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

main

public static void main(java.lang.String[] args)

getBounds

public java.awt.geom.Rectangle2D getBounds()
Returns the bounds for the port view.

Specified by:
getBounds in interface org.jgraph.graph.CellView
Overrides:
getBounds in class org.jgraph.graph.PortView

getRenderer

public org.jgraph.graph.CellViewRenderer getRenderer()
Overrides:
getRenderer in class org.jgraph.graph.PortView