|
VRJConfig UI API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
org.jgraph.JGraph
org.vrjuggler.vrjconfig.commoneditors.DeviceGraph
public class DeviceGraph
An extension to the JGraph Swing component whose most useful feature is setting up a special graph model, graph layout cache, and cell view factory to help users avoid making very confusing mistakes.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jgraph.JGraph |
|---|
JGraph.EmptySelectionModel, JGraph.GraphSelectionRedirector |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static Color |
DEVICE_CELL_COLOR
Default color attribute used for device cells. |
static Color |
PROXY_CELL_COLOR
Default color attribute used for proxy cells. |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
DeviceGraph()
Initializes this JGraph specialization to use a model of type DeviceGraphModel, a graph layout cache of type
DeviceGraphLayoutCache, and a cell view factory of type
ProxiedDeviceCellViewFactory. |
|
DeviceGraph(DeviceGraphModel model)
|
|
DeviceGraph(DeviceGraphModel model,
DeviceGraphLayoutCache cache)
|
|
| Method Summary | |
|---|---|
void |
autoSizeAll()
Cause all cells to change their size to the cell's renderer's perferred size. |
static Map |
createDeviceAttributes(int x,
int y)
Centralized creation of an attribute map for graph cells that represent the ConfigElement for a device. |
static Map |
createDeviceAttributes(int x,
int y,
boolean autoSize)
Centralized creation of an attribute map for graph cells that represent the ConfigElement for a device. |
static Map |
createProxyAttributes(int x,
int y)
Centralized creation of an attribute map for graph cells that represent the ConfigElement for a device proxy. |
static Map |
createProxyAttributes(int x,
int y,
boolean autoSize)
Centralized creation of an attribute map for graph cells that represent the ConfigElement for a device proxy. |
static Map |
createProxyLineStyle()
Centralized creation of an attribute map for the line styles used for edges connecting a proxy pointing at a device. |
static Map |
createRelativePtrLineStyle()
Centralized creation of an attribute map for the line styles used for edges connecting a relative device pointing at a device proxy. |