public class BPDGraphUI
extends org.jgraph.plaf.basic.BasicGraphUI
| 限定符和类型 | 类和说明 |
|---|---|
class |
BPDGraphUI.PEGraphViewObserver
This class observes view changes and is adapted to disallow deselection
of cells after dragging.
|
class |
BPDGraphUI.PEMouseHandler
Handles selection in a way that we expect.
|
class |
BPDGraphUI.PERootHandle
Manages selection movement.
|
class |
BPDGraphUI.PETransferHandler
PETransferHandler that supports pasteAt action and properly cut action.
|
org.jgraph.plaf.basic.BasicGraphUI.CellEditorHandler, org.jgraph.plaf.basic.BasicGraphUI.ComponentHandler, org.jgraph.plaf.basic.BasicGraphUI.GraphDropTargetListener, org.jgraph.plaf.basic.BasicGraphUI.GraphIncrementAction, org.jgraph.plaf.basic.BasicGraphUI.GraphModelHandler, org.jgraph.plaf.basic.BasicGraphUI.GraphSelectionHandler, org.jgraph.plaf.basic.BasicGraphUI.GraphTransferHandler, org.jgraph.plaf.basic.BasicGraphUI.GraphViewObserver, org.jgraph.plaf.basic.BasicGraphUI.KeyHandler, org.jgraph.plaf.basic.BasicGraphUI.MouseHandler, org.jgraph.plaf.basic.BasicGraphUI.MouseInputHandler, org.jgraph.plaf.basic.BasicGraphUI.PropertyChangeHandler, org.jgraph.plaf.basic.BasicGraphUI.RootHandle| 限定符和类型 | 字段和说明 |
|---|---|
protected boolean |
canMouseReleaseSelectCell
Variable that correct selection on mouse release.
|
protected Point |
insertionPoint
Point that represents paste location.
|
cellEditor, cellEditorListener, componentListener, defaultDropTargetListener, defaultTransferHandler, DNDPREVIEW, dropAction, editingCell, editingComponent, editorHasDifferentSize, focus, graph, graphLayoutCache, graphModel, graphModelListener, graphSelectionListener, graphSelectionModel, graphViewObserver, handle, insertionLocation, keyListener, marquee, MAXCELLS, MAXCLIPCELLS, MAXHANDLES, mouseListener, preferredMinSize, preferredSize, propertyChangeListener, rendererPane, SCROLLBORDER, SCROLLSTEP, snapSelectedView, stopEditingInCompleteEditing, validCachedPreferredSize| 构造器和说明 |
|---|
BPDGraphUI() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Observer |
createGraphViewObserver()
Returns a listener that can update the graph when the model changes.
|
org.jgraph.graph.CellHandle |
createHandle(org.jgraph.graph.GraphContext context)
Constructs the "root handle" for
context. |
protected MouseListener |
createMouseListener()
Creates the listener responsible for updating the selection based on
mouse events.
|
protected TransferHandler |
createTransferHandler()
Creates an instance of TransferHandler.
|
AbstractGraph |
getGraph()
Returns graph.
|
void |
insertCells(Object[] cells,
Map viewAttributeMap,
org.jgraph.graph.ConnectionSet cs,
boolean clone,
int dx,
int dy)
Insert the specified cells into the model.
|
protected void |
paintBackground(Graphics g)
Paint the background of this graph.
|
void |
setInsertionPoint(Point p)
Sets location for pasting cells.
|
protected boolean |
startEditing(Object cell,
MouseEvent event)
This method is called by EditAction class, as well as by pressing F2 or
clicking a mouse on a cell.
|
void |
startEditingAtCell(org.jgraph.JGraph graph,
Object cell) |
autoscroll, cancelEditing, completeEditing, completeEditing, completeUIInstall, completeUIUninstall, createCellEditorListener, createCellRendererPane, createComponentListener, createContext, createGraphModelListener, createGraphSelectionListener, createKeyListener, createPropertyChangeListener, createUI, getEditingCell, getFocusedCell, getHandle, getInsertionLocation, getMaximumSize, getMinimumSize, getPreferredMinSize, getPreferredSize, getPreferredSize, insertCells, installComponents, installDefaults, installKeyboardActions, installListeners, installUI, isAddToSelectionEvent, isConstrainedMoveEvent, isEditing, isForceMarqueeEvent, isSnapSelectedView, isToggleSelectionEvent, paint, paintCell, paintForeground, paintGrid, paintPorts, prepareForUIInstall, selectCellForEvent, selectCellsForEvent, selectCellsForEvent, setGraphLayoutCache, setInsertionLocation, setMarquee, setModel, setPreferredMinSize, setSelectionModel, setSnapSelectedView, stopEditing, toggleSelectionCellForEvent, uninstallComponents, uninstallKeyboardActions, uninstallListeners, uninstallUI, updateCachedPreferredSize, updateHandle, updateSizecontains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, updateprotected boolean canMouseReleaseSelectCell
protected Point insertionPoint
public AbstractGraph getGraph()
public void setInsertionPoint(Point p)
public void startEditingAtCell(org.jgraph.JGraph graph,
Object cell)
startEditingAtCell 在类中 org.jgraph.plaf.basic.BasicGraphUIprotected void paintBackground(Graphics g)
paintBackground 在类中 org.jgraph.plaf.basic.BasicGraphUIprotected boolean startEditing(Object cell, MouseEvent event)
startEditing 在类中 org.jgraph.plaf.basic.BasicGraphUIprotected MouseListener createMouseListener()
createMouseListener 在类中 org.jgraph.plaf.basic.BasicGraphUIpublic org.jgraph.graph.CellHandle createHandle(org.jgraph.graph.GraphContext context)
context.createHandle 在类中 org.jgraph.plaf.basic.BasicGraphUIcontext - reference to the context of the current selection.protected Observer createGraphViewObserver()
createGraphViewObserver 在类中 org.jgraph.plaf.basic.BasicGraphUIprotected TransferHandler createTransferHandler()
createTransferHandler 在类中 org.jgraph.plaf.basic.BasicGraphUIpublic void insertCells(Object[] cells, Map viewAttributeMap, org.jgraph.graph.ConnectionSet cs, boolean clone, int dx, int dy)
Copyright © 2023 onecode. All rights reserved.