public abstract class GraphRendererBase extends Object implements GraphRenderer, StyleGroupListener
Modifier and Type | Field and Description |
---|---|
protected GraphicGraph |
graph
The graph to draw.
|
protected Container |
renderingSurface
The surface we are rendering on (used only
|
protected Selection |
selection
Current selection or null.
|
Constructor and Description |
---|
GraphRendererBase() |
Modifier and Type | Method and Description |
---|---|
void |
beginSelectionAt(double x1,
double y1)
Called by the mouse manager to specify where a node and sprite selection
started.
|
void |
close() |
protected void |
displayNothingToDo(Graphics2D g,
int w,
int h) |
void |
endSelectionAt(double x2,
double y2)
Called by the mouse manager to specify where a node and spite selection
stopped.
|
Container |
getRenderingSurface() |
void |
open(GraphicGraph graph,
Container renderingSurface) |
void |
selectionGrowsAt(double x,
double y)
The selection already started grows toward position (x, y).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
allNodesOrSpritesIn, findNodeOrSpriteAt, getCamera, moveElementAtPx, render, screenshot, setBackLayerRenderer, setForeLayoutRenderer
elementStyleChanged
protected GraphicGraph graph
protected Container renderingSurface
public GraphRendererBase()
public void open(GraphicGraph graph, Container renderingSurface)
open
in interface GraphRenderer
public void close()
close
in interface GraphRenderer
public Container getRenderingSurface()
public void beginSelectionAt(double x1, double y1)
GraphRenderer
beginSelectionAt
in interface GraphRenderer
x1
- The selection start abscissa.y1
- The selection start ordinate.public void selectionGrowsAt(double x, double y)
GraphRenderer
selectionGrowsAt
in interface GraphRenderer
x
- The new end selection abscissa.y
- The new end selection ordinate.public void endSelectionAt(double x2, double y2)
GraphRenderer
endSelectionAt
in interface GraphRenderer
x2
- The selection stop abscissa.y2
- The selection stop ordinate.protected void displayNothingToDo(Graphics2D g, int w, int h)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses