|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jgraph.graph.AbstractCellView
org.jgraph.graph.VertexView
cz.cmc.tcgui.TCObjectView
cz.cmc.tcgui.ClassView
Title: ClassView
Description: Class providing view of traffic class cells.
Copyright: Copyright (c) 2003
Company: CMC Computers
Nested Class Summary | |
static class |
ClassView.ClassEditor
In-place editor. |
class |
ClassView.ClassHandle
Title: class ClassHandle Description: Handle for Class. |
static class |
ClassView.ClassRenderer
Renderer class for Class views |
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 |
classEditor
Class title editor, created lazily. |
protected static Icon |
classIcon
The icon of the class visualization, should be set lazily since resource managers may not be set properly at time the class is loading. |
protected static ClassView.ClassRenderer |
classRenderer
Class renderer, created lazily. |
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 | |
ClassView(Object cell,
TCGraph graph,
org.jgraph.graph.CellMapper mapper)
Creates new ClassView for the cell. |
Method Summary | |
protected void |
createStaticRenderer()
Called when static renderer should be lazilly created. If the renderer does not exist yet, it will be created. In case that some TCObject does not use a static renderer, this should be overriden with an empty implementation. |
Insets |
getContainerInsets()
Returns insets fo the container view. |
org.jgraph.graph.GraphCellEditor |
getEditor()
Sets up and returns inline editor of the cell. |
org.jgraph.graph.CellHandle |
getHandle(org.jgraph.graph.GraphContext context)
|
protected Icon |
getIcon()
Returns the icon of the TCObject. |
org.jgraph.graph.CellViewRenderer |
getRenderer()
Returns the renderer for this class type. |
boolean |
intersects(Graphics g,
Rectangle rect)
Overriden to make vertex handling non-transparent. |
void |
resetAutoSizeConstraints(Map map,
boolean min,
boolean max)
Resets autosize constraints |
protected void |
setIcon(Icon icon)
Sets the icon of the TCObject. |
protected void |
setInitialAttributes(Map map)
Called when the initial attributes are needed. |
protected void |
updateGroupBounds()
|
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 |
Methods inherited from class org.jgraph.graph.AbstractCellView |
getAllAttributes, getAttributes, getBounds, getCell, getDescendantViews, getGraph, getChildViews, getMapper, getModel, getParentView, getRendererComponent, 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 |
protected static Icon classIcon
protected static ClassView.ClassRenderer classRenderer
protected static org.jgraph.graph.GraphCellEditor classEditor
Constructor Detail |
public ClassView(Object cell, TCGraph graph, org.jgraph.graph.CellMapper mapper)
Method Detail |
protected void setInitialAttributes(Map map)
setInitialAttributes
in class TCObjectView
map
- map attributes should be set topublic Insets getContainerInsets()
getContainerInsets
in interface TCObjectViewContainer
protected void updateGroupBounds()
public boolean intersects(Graphics g, Rectangle rect)
intersects
in interface org.jgraph.graph.CellView
protected Icon getIcon()
getIcon
in class TCObjectView
protected void setIcon(Icon icon)
setIcon
in class TCObjectView
icon
- icon to setprotected void createStaticRenderer()
createStaticRenderer
in class TCObjectView
public org.jgraph.graph.CellViewRenderer getRenderer()
getRenderer
in class TCObjectView
public org.jgraph.graph.CellHandle getHandle(org.jgraph.graph.GraphContext context)
getHandle
in interface org.jgraph.graph.CellView
getHandle
in class TCObjectView
context
- GraphContext (cell-view) the handle is created for
public void resetAutoSizeConstraints(Map map, boolean min, boolean max)
resetAutoSizeConstraints
in class TCObjectView
map
- map to save changes tomin
- whether to reset `minimum' constraintmax
- whether to reset `maximum' constraintpublic org.jgraph.graph.GraphCellEditor getEditor()
getEditor
in interface org.jgraph.graph.CellView
getEditor
in class TCObjectView
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |