processMouseDraggedEvent(MouseEvent event) Overrides the parent's implementation to update the preview bounds to the
current
org.jgraph.graph.BasicMarqueeHandler.marqueeBounds .
public void
setPreviewEnabled(boolean previewEnabled) Returns if the cellview should be previewed.
public void
setPrototype(Object prototype) Sets the prototype to be used to create new cells.
Defines the threshhold (minimum size) for a drag to be used for an
insert. Default is 4.
Constructor Detail
JGraphpadVertexTool
public JGraphpadVertexTool(Object prototype)(Code)
Constructs a new vertex tool for the specified prototype using
JGraphpadVertexTool.NAME_VERTEXTOOL .
Parameters: prototype - The prototype cell to create new vertices with.
Constructs a new vertex tool for the specified name and prototype.
Parameters: name - The name of the tool to be created. Parameters: prototype - The prototype cell to create new vertices with.
Returns a deep clone of the cell prototype.
Parameters: model - The model to use for cloning the prototype. Returns a clone of JGraphpadVertexTool.prototype.
Provides a hook for subclassers to insert the specified cell into
cache. This implementation passes the cell to the
GraphLayoutCache.insert(Object) .
Parameters: cache - The cache into which to insert the edge. Parameters: cell - The cell to be inserted into cache.
Hook for subclassers to define the key assignments for constrained
inserts. This implementation redirects to
BasicGraphUI.isConstrainedMoveEvent(MouseEvent) .
Parameters: event - The object that describes the event.
Extends the parent's implementation to create a clone of the pototype
using
JGraphpadVertexTool.createCell(GraphModel) and a new view using the layout
cache's factory. The view is then configured and stored in
JGraphpadVertexTool.previewView .
Parameters: event - The object that describes the event.
public void overlay(JGraph graph, Graphics g, boolean clear)(Code)
Extends the parent's implementation to draw the
JGraphpadVertexTool.previewView .
Parameters: graph - The graph to paint in. Parameters: g - The graphics to use for paiting. Parameters: clear - Wether to clear the display.
Overrides the parent's implementation to update the preview bounds to the
current
org.jgraph.graph.BasicMarqueeHandler.marqueeBounds .
Parameters: event - The object that describes the event.
setPreviewEnabled
public void setPreviewEnabled(boolean previewEnabled)(Code)
Returns if the cellview should be previewed.
Parameters: previewEnabled - The previewEnabled to set.