public class NetGraphUI extends BasicGraphUI
Modifier and Type | Class and Description |
---|---|
class |
NetGraphUI.NetMouseHandler |
BasicGraphUI.CellEditorHandler, BasicGraphUI.ComponentHandler, BasicGraphUI.GraphDropTargetListener, BasicGraphUI.GraphIncrementAction, BasicGraphUI.GraphLayoutCacheHandler, BasicGraphUI.GraphModelHandler, BasicGraphUI.GraphSelectionHandler, BasicGraphUI.KeyHandler, BasicGraphUI.MouseHandler, BasicGraphUI.MouseInputHandler, BasicGraphUI.PropertyChangeHandler, BasicGraphUI.RootHandle
cellEditor, cellEditorListener, componentListener, defaultDropTargetListener, defaultTransferHandler, DNDPREVIEW, dropAction, dropTarget, editingCell, editingComponent, editorHasDifferentSize, focus, graph, graphLayoutCache, graphLayoutCacheListener, graphModel, graphModelListener, graphSelectionListener, graphSelectionModel, handle, insertionLocation, keyListener, lastFocus, marquee, MAXCELLS, MAXCLIPCELLS, MAXHANDLES, mouseListener, preferredMinSize, preferredSize, propertyChangeListener, rendererPane, SCROLLBORDER, SCROLLSTEP, snapSelectedView, stopEditingInCompleteEditing, validCachedPreferredSize
Constructor and Description |
---|
NetGraphUI() |
Modifier and Type | Method and Description |
---|---|
void |
addOverlay(OverlaidView view) |
protected java.awt.event.MouseListener |
createMouseListener()
Creates the listener responsible for calling the correct handlers based
on mouse events, and to select invidual cells.
|
protected javax.swing.TransferHandler |
createTransferHandler()
Creates an instance of TransferHandler.
|
protected void |
paintBackgroundImage(java.awt.Graphics g,
java.awt.Rectangle clip)
Hook for subclassers to paint the background image.
|
void |
paintCell(java.awt.Graphics g,
CellView view,
java.awt.geom.Rectangle2D bounds,
boolean preview)
Paints the renderer of
view to g at
bounds . |
protected void |
paintOverlay(java.awt.Graphics g)
Hook method to paints the overlay
|
boolean |
removeOverlay(OverlaidView view) |
autoscroll, cancelEditing, completeEditing, completeEditing, completeUIInstall, completeUIUninstall, createCellEditorListener, createCellRendererPane, createComponentListener, createContext, createGraphLayoutCacheListener, createGraphModelListener, createGraphSelectionListener, createHandle, createKeyListener, createPropertyChangeListener, createUI, drawGraph, getDropAction, getEditingCell, getEditorLocation, getFocusedCell, getHandle, getInsertionLocation, getMaximumSize, getMinimumSize, getPreferredMinSize, getPreferredSize, getPreferredSize, installComponents, installDefaults, installKeyboardActions, installListeners, installUI, isAddToSelectionEvent, isConstrainedMoveEvent, isEditing, isForceMarqueeEvent, isSnapSelectedView, isToggleSelectionEvent, paint, paintBackground, paintBackgroundComponent, paintCells, paintForeground, paintGrid, paintPorts, prepareForUIInstall, selectCellForEvent, selectCellsForEvent, selectCellsForEvent, setGraphLayoutCache, setInsertionLocation, setMarquee, setModel, setPreferredMinSize, setSelectionModel, setSnapSelectedView, startEditing, startEditingAtCell, stopEditing, toggleSelectionCellForEvent, uninstallComponents, uninstallKeyboardActions, uninstallListeners, uninstallUI, updateCachedPreferredSize, updateHandle, updateSize
public void addOverlay(OverlaidView view)
public boolean removeOverlay(OverlaidView view)
public void paintCell(java.awt.Graphics g, CellView view, java.awt.geom.Rectangle2D bounds, boolean preview)
BasicGraphUI
view
to g
at
bounds
. Recursive implementation that paints the children
first.
The reciever should NOT modify clipBounds
, or
insets
. The preview
flag is passed to the
renderer, and is not used here.
paintCell
in class BasicGraphUI
protected java.awt.event.MouseListener createMouseListener()
BasicGraphUI
createMouseListener
in class BasicGraphUI
protected void paintBackgroundImage(java.awt.Graphics g, java.awt.Rectangle clip)
BasicGraphUI
paintBackgroundImage
in class BasicGraphUI
g
- The graphics object to paint the image on.clip
- The clipping region to draw intoprotected void paintOverlay(java.awt.Graphics g)
BasicGraphUI
paintOverlay
in class BasicGraphUI
g
- the graphics object to paint the overlay toprotected javax.swing.TransferHandler createTransferHandler()
BasicGraphUI
createTransferHandler
in class BasicGraphUI