cz.cmc.tcgui
Class ClasslessQDiscView

java.lang.Object
  extended byorg.jgraph.graph.AbstractCellView
      extended byorg.jgraph.graph.VertexView
          extended bycz.cmc.tcgui.TCObjectView
              extended bycz.cmc.tcgui.QDiscView
                  extended bycz.cmc.tcgui.ClasslessQDiscView
All Implemented Interfaces:
org.jgraph.graph.CellView, Serializable

public class ClasslessQDiscView
extends QDiscView

Title: ClasslessQDiscView

Description: Class providing view for classless qdisc cells.

Copyright: Copyright (c) 2003

Company: CMC Computers

See Also:
Serialized Form

Nested Class Summary
static class ClasslessQDiscView.ClasslessQDiscEditor
          In-place editor.
static class ClasslessQDiscView.ClasslessQDiscRenderer
          Classless qdisc view's renderer.
 
Nested classes inherited from class cz.cmc.tcgui.QDiscView
QDiscView.QDiscEditor, QDiscView.QDiscRenderer, QDiscView.QDiscHandle
 
Nested classes inherited from class cz.cmc.tcgui.TCObjectView
TCObjectView.TCObjectContainerEntryPlacementContext, TCObjectView.TCObjectEditor, TCObjectView.TCObjectHandle, TCObjectView.TCObjectRenderer
 
Nested classes inherited from class org.jgraph.graph.VertexView
org.jgraph.graph.VertexView.SizeHandle
 
Field Summary
protected static org.jgraph.graph.GraphCellEditor classlessQDiscEditor
          QDiscs' title editor, created lazily.
protected static Icon classlessQDiscIcon
          The icon of this kind of QDisc, should be set lazily since resource managers may not be set properly at the time of class loading.
protected static ClasslessQDiscView.ClasslessQDiscRenderer classlessQDiscRenderer
          Classless QDisc renderer, created lazily by the superclass using the createQDiscRenderer() method.
 
Fields inherited from class cz.cmc.tcgui.TCObjectView
resizeCursors
 
Fields inherited from class org.jgraph.graph.VertexView
bounds, groupBounds, renderer
 
Fields inherited from class org.jgraph.graph.AbstractCellView
allAttributes, attributes, cell, cellEditor, graph, childViews, mapper, parent
 
Constructor Summary
ClasslessQDiscView(Object cell, TCGraph graph, org.jgraph.graph.CellMapper mapper)
          Creates new classless qdisc view for the cell.
 
Method Summary
protected  void createStaticRenderer()
          Creates the static view renderer for this qdisc type if it was not been created already.
 org.jgraph.graph.GraphCellEditor getEditor()
          Returns the editor for this qdisc type.
 org.jgraph.graph.CellHandle getHandle(org.jgraph.graph.GraphContext context)
           
protected  Icon getIcon()
          Gets the static icon of this QDisc class.
 org.jgraph.graph.CellViewRenderer getRenderer()
          Returns the renderer for this qdisc type.
protected  void setIcon(Icon icon)
          Sets the static icon of this QDisc class.
protected  void setInitialAttributes(Map map)
          Called when the initial attributes are needed.
 
Methods inherited from class cz.cmc.tcgui.QDiscView
resetAutoSizeConstraints
 
Methods inherited from class cz.cmc.tcgui.TCObjectView
computeTCObjectContainerEntryInsertionBounds, createIcon, getMaximumUsableSize, getMinimumUsableSize, initSizes, isAloneInSelection, resetAutoSizeConstraints, updateTCObjectContainerEntryPlacementContext
 
Methods inherited from class org.jgraph.graph.VertexView
getBounds, getCachedBounds, getCenterPoint, getPerimeterPoint, childUpdated, isConstrainedSizeEvent, setCachedBounds, update, updateGroupBounds
 
Methods inherited from class org.jgraph.graph.AbstractCellView
getAllAttributes, getAttributes, getBounds, getCell, getDescendantViews, getGraph, getChildViews, getMapper, getModel, getParentView, getRendererComponent, intersects, isLeaf, refresh, removeFromParent, scale, setAttributes, setBounds, translate, updateAllAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

classlessQDiscIcon

protected static Icon classlessQDiscIcon
The icon of this kind of QDisc, should be set lazily since resource managers may not be set properly at the time of class loading.


classlessQDiscRenderer

protected static ClasslessQDiscView.ClasslessQDiscRenderer classlessQDiscRenderer
Classless QDisc renderer, created lazily by the superclass using the createQDiscRenderer() method.


classlessQDiscEditor

protected static org.jgraph.graph.GraphCellEditor classlessQDiscEditor
QDiscs' title editor, created lazily.

Constructor Detail

ClasslessQDiscView

public ClasslessQDiscView(Object cell,
                          TCGraph graph,
                          org.jgraph.graph.CellMapper mapper)
Creates new classless qdisc view for the cell.

Method Detail

setInitialAttributes

protected void setInitialAttributes(Map map)
Called when the initial attributes are needed.

Overrides:
setInitialAttributes in class QDiscView

getHandle

public org.jgraph.graph.CellHandle getHandle(org.jgraph.graph.GraphContext context)
Specified by:
getHandle in interface org.jgraph.graph.CellView
Overrides:
getHandle in class QDiscView
Parameters:
context - GraphContext (cell-view) the handle is created for
Returns:
handle for given context

createStaticRenderer

protected void createStaticRenderer()
Creates the static view renderer for this qdisc type if it was not been created already.

Specified by:
createStaticRenderer in class TCObjectView

getRenderer

public org.jgraph.graph.CellViewRenderer getRenderer()
Returns the renderer for this qdisc type.

Specified by:
getRenderer in class TCObjectView
Returns:
renderer for TCObjectView

getEditor

public org.jgraph.graph.GraphCellEditor getEditor()
Returns the editor for this qdisc type.

Specified by:
getEditor in interface org.jgraph.graph.CellView
Specified by:
getEditor in class QDiscView

setIcon

protected void setIcon(Icon icon)
Sets the static icon of this QDisc class. Initially done by the superseding constructor

Specified by:
setIcon in class TCObjectView
Parameters:
icon - icon to set

getIcon

protected Icon getIcon()
Gets the static icon of this QDisc class.

Specified by:
getIcon in class TCObjectView
Returns:
icon of the TCObject or null if the view does not use an icon