|
||||||||||
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
Title: TC Object View
Description: The superclass for views of TC objects
Copyright: Copyright (c) 2003
Company: CMC Computers
Nested Class Summary | |
static class |
TCObjectView.TCObjectContainerEntryPlacementContext
Title: class TCObjectContainerEntryPlacementContext Description: structure to return TCObjectConatinerEntry container position Copyright: Copyright (c) 2003 Company: CMC Computers |
static class |
TCObjectView.TCObjectEditor
Editor class common to TC Object Views |
class |
TCObjectView.TCObjectHandle
Title: Class TCObjectHandle Description: Basic handle for TCObjectView. |
static class |
TCObjectView.TCObjectRenderer
|
Nested classes inherited from class org.jgraph.graph.VertexView |
org.jgraph.graph.VertexView.SizeHandle |
Field Summary | |
static int[] |
resizeCursors
Array that holds the cursors for the different control points. |
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 | |
TCObjectView(Object cell,
TCGraph graph,
org.jgraph.graph.CellMapper mapper,
boolean createIcon)
Creates a new instance of TCObjectView. |
Method Summary | |
Rectangle |
computeTCObjectContainerEntryInsertionBounds(TCObjectView.TCObjectContainerEntryPlacementContext placementContext)
Computes bounds to be displayed as insertion area of the moved TCObjectContainerEntry. |
protected void |
createIcon()
Called when icon should be created and getIcon() returns null at the initialization time. |
protected abstract void |
createStaticRenderer()
Called when static renderer should be lazilly created. |
abstract org.jgraph.graph.GraphCellEditor |
getEditor()
Returns the editor for given component |
org.jgraph.graph.CellHandle |
getHandle(org.jgraph.graph.GraphContext context)
|
protected abstract Icon |
getIcon()
Returns the icon of the TCObject. |
Dimension |
getMaximumUsableSize()
|
Dimension |
getMinimumUsableSize()
|
abstract org.jgraph.graph.CellViewRenderer |
getRenderer()
|
protected void |
initSizes(Map map)
Initializes size parameters to reasonable values |
boolean |
isAloneInSelection()
|
abstract void |
resetAutoSizeConstraints(Map map,
boolean min,
boolean max)
Resets autosize constraints |
void |
resetAutoSizeConstraints(Map map,
Dimension usable,
Dimension fixed,
boolean min,
boolean max)
Method providing some common code for resetting auto-size constraints. |
protected abstract void |
setIcon(Icon icon)
Sets the icon of the TCObject. |
protected abstract void |
setInitialAttributes(Map map)
Called when the initial attributes are needed. |
void |
updateTCObjectContainerEntryPlacementContext(TCObjectView.TCObjectContainerEntryPlacementContext pc,
TCObjectContainer[] containers,
Rectangle bounds)
Updates the given TCObjectContainerEntry placement context |
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 |
public static final transient int[] resizeCursors
Constructor Detail |
public TCObjectView(Object cell, TCGraph graph, org.jgraph.graph.CellMapper mapper, boolean createIcon)
cell
- cell the view is created forgraph
- graph the view is created formapper
- cell mappercreateIcon
- create icon if it does not existMethod Detail |
protected abstract void createStaticRenderer()
protected abstract void setInitialAttributes(Map map)
map
- map attributes should be set toprotected void createIcon()
protected abstract Icon getIcon()
protected abstract void setIcon(Icon icon)
icon
- icon to setpublic abstract org.jgraph.graph.CellViewRenderer getRenderer()
public org.jgraph.graph.CellHandle getHandle(org.jgraph.graph.GraphContext context)
context
- GraphContext (cell-view) the handle is created for
public boolean isAloneInSelection()
public abstract org.jgraph.graph.GraphCellEditor getEditor()
public Dimension getMinimumUsableSize()
public Dimension getMaximumUsableSize()
public abstract void resetAutoSizeConstraints(Map map, boolean min, boolean max)
map
- map to save changes tomin
- whether to reset `minimum' constraintmax
- whether to reset `maximum' constraintpublic final void resetAutoSizeConstraints(Map map, Dimension usable, Dimension fixed, boolean min, boolean max)
map
- map to save changes tousable
- dimension that can be used as usablefixed
- dimension that cannot be used as usablemin
- whether to reset `minimum' constraintmax
- whether to reset `maximum' constraintprotected final void initSizes(Map map)
public void updateTCObjectContainerEntryPlacementContext(TCObjectView.TCObjectContainerEntryPlacementContext pc, TCObjectContainer[] containers, Rectangle bounds)
pc
- TCObjectContainerEntryPlacementContext to updatecontainers
- containers available for placementbounds
- new bounds of the placed view (this)public Rectangle computeTCObjectContainerEntryInsertionBounds(TCObjectView.TCObjectContainerEntryPlacementContext placementContext)
placementContext
- TCObjectContainerEntryPlacementContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |