public abstract class GraphUI
extends javax.swing.plaf.ComponentUI
Constructor and Description |
---|
GraphUI() |
Modifier and Type | Method and Description |
---|---|
abstract void |
cancelEditing(JGraph graph)
Cancels the current editing session.
|
abstract int |
getDropAction()
Returns the current drop action.
|
abstract java.lang.Object |
getEditingCell(JGraph graph)
Returns the cell that is being edited.
|
abstract CellHandle |
getHandle()
Returns the
CellHandle that is currently active,
or null if no handle is active. |
abstract java.awt.Point |
getInsertionLocation()
Returns the insertion location for DnD operations.
|
abstract java.awt.geom.Dimension2D |
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(java.awt.Graphics g,
CellView view,
java.awt.geom.Rectangle2D bounds,
boolean preview)
Paints the renderer of
view to g
at bounds . |
abstract void |
paintPorts(java.awt.Graphics g,
CellView[] portViews)
Paints the renderers of
portViews to g . |
abstract void |
selectCellsForEvent(JGraph graph,
java.lang.Object[] cells,
java.awt.event.MouseEvent event)
Messaged to update the selection based on a MouseEvent for a group of
cells.
|
abstract void |
setInsertionLocation(java.awt.Point p)
Sets the current location for Drag-and-Drop activity.
|
abstract void |
startEditingAtCell(JGraph graph,
java.lang.Object cell)
Selects the cell and tries to edit it.
|
abstract boolean |
stopEditing(JGraph graph)
Stops the current editing session.
|
abstract void |
updateHandle()
Updates the handle.
|
public abstract void paintCell(java.awt.Graphics g, CellView view, java.awt.geom.Rectangle2D bounds, boolean preview)
view
to g
at bounds
.public abstract void paintPorts(java.awt.Graphics g, CellView[] portViews)
portViews
to g
.public abstract void selectCellsForEvent(JGraph graph, java.lang.Object[] cells, java.awt.event.MouseEvent event)
public abstract java.awt.geom.Dimension2D getPreferredSize(JGraph graph, CellView view)
view
.public abstract CellHandle getHandle()
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, java.lang.Object cell)
public abstract java.lang.Object getEditingCell(JGraph graph)
public abstract void setInsertionLocation(java.awt.Point p)
public abstract java.awt.Point getInsertionLocation()
public abstract void updateHandle()
public abstract int getDropAction()
Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.