|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.plaf.ComponentUI
org.jgraph.plaf.GraphUI
public abstract class GraphUI
Pluggable look and feel interface for JGraph.
Constructor Summary | |
---|---|
GraphUI()
|
Method Summary | |
---|---|
abstract void |
cancelEditing(JGraph graph)
Cancels the current editing session. |
abstract Object |
getEditingCell(JGraph graph)
Returns the cell that is being edited. |
abstract CellHandle |
getHandle(JGraph graph)
Returns the CellHandle that is currently active,
or null if no handle is active. |
abstract Dimension |
getPreferredSize(JGraph graph,
CellView view)
Returns the preferred size for view . |
abstract boolean |
isEditing(JGraph graph)
Returns true if the graph is being edited. |
abstract void |
paintCell(Graphics g,
CellView view,
Rectangle bounds,
boolean preview)
Paints the renderer of view to g
at bounds . |
abstract void |
paintPorts(Graphics g,
CellView[] portViews)
Paints the renderers of portViews to g . |
abstract void |
selectCellsForEvent(JGraph graph,
Object[] cells,
MouseEvent event)
Messaged to update the selection based on a MouseEvent for a group of cells. |
abstract void |
startEditingAtCell(JGraph graph,
Object cell)
Selects the cell and tries to edit it. |
abstract boolean |
stopEditing(JGraph graph)
Stops the current editing session. |
Methods inherited from class javax.swing.plaf.ComponentUI |
---|
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GraphUI()
Method Detail |
---|
public abstract void paintCell(Graphics g, CellView view, Rectangle bounds, boolean preview)
view
to g
at bounds
.
public abstract void paintPorts(Graphics g, CellView[] portViews)
portViews
to g
.
public abstract void selectCellsForEvent(JGraph graph, Object[] cells, MouseEvent event)
public abstract Dimension getPreferredSize(JGraph graph, CellView view)
view
.
public abstract CellHandle getHandle(JGraph graph)
CellHandle
that is currently active,
or null
if no handle is active.
public abstract boolean isEditing(JGraph graph)
public abstract boolean stopEditing(JGraph graph)
public abstract void cancelEditing(JGraph graph)
public abstract void startEditingAtCell(JGraph graph, Object cell)
public abstract Object getEditingCell(JGraph graph)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |