Graph Common

pl.psnc.graph.view
Class DefaultPortView

java.lang.Object
  extended by org.jgraph.graph.AbstractCellView
      extended by org.jgraph.graph.PortView
          extended by pl.psnc.graph.view.DefaultPortView
All Implemented Interfaces:
java.io.Serializable, org.jgraph.graph.CellView

public class DefaultPortView
extends org.jgraph.graph.PortView

DefaultPortView class - default implementation of port view.

Author:
Dominik Stoklosa (~osa~)
See Also:
Serialized Form
Email address
osa@man.poznan.pl

Field Summary
 
Fields inherited from class org.jgraph.graph.PortView
allowPortMagic, lastParent, SIZE
 
Fields inherited from class org.jgraph.graph.AbstractCellView
allAttributes, attributes, cell, cellEditor, childViews, groupBounds, parent
 
Constructor Summary
DefaultPortView(java.lang.Object userObject)
          Creates a new instance of DefaultPortView
 
Method Summary
 java.awt.geom.Rectangle2D getBounds()
           
 org.jgraph.graph.CellViewRenderer getRenderer()
           
 java.awt.Component getRendererComponent(org.jgraph.JGraph graph, boolean selected, boolean focus, boolean preview)
           
 boolean isVisible()
          Getter for property visible.
 void setVisible(boolean visible)
          Setter for property visible.
 
Methods inherited from class org.jgraph.graph.PortView
getHandle, getLocation, getLocation, getLocation, getParentView, getPortSize, setPortSize, shouldInvokePortMagic
 
Methods inherited from class org.jgraph.graph.AbstractCellView
changeAttributes, childUpdated, createAttributeMap, getAllAttributes, getAttributes, getBounds, getCell, getCellAttributes, getCenterPoint, getChildViews, getDescendantViews, getEditor, getPerimeterPoint, 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
 

Constructor Detail

DefaultPortView

public DefaultPortView(java.lang.Object userObject)
Creates a new instance of DefaultPortView

Parameters:
userObject - user object
Method Detail

getRenderer

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

getBounds

public java.awt.geom.Rectangle2D getBounds()
Specified by:
getBounds in interface org.jgraph.graph.CellView
Overrides:
getBounds in class org.jgraph.graph.PortView

getRendererComponent

public java.awt.Component getRendererComponent(org.jgraph.JGraph graph,
                                               boolean selected,
                                               boolean focus,
                                               boolean preview)
Specified by:
getRendererComponent in interface org.jgraph.graph.CellView
Overrides:
getRendererComponent in class org.jgraph.graph.AbstractCellView

isVisible

public boolean isVisible()
Getter for property visible.

Returns:
Value of property visible.

setVisible

public void setVisible(boolean visible)
Setter for property visible.

Parameters:
visible - New value of property visible.

Graph Common

Copyright 2008 by VLAB Dominik Stoklosa