com.jgraph.navigation
public class GraphNavigator.NavigatorPane extends JScrollPane implements MouseListener, MouseMotionListener
Field Summary | |
---|---|
protected Rectangle | currentViewport
Holds the bounds of the finder (red box). |
protected Point | lastPoint
Holds the location of the last mouse event. |
Constructor Summary | |
---|---|
NavigatorPane(JGraph backingGraph)
Constructs a new navigator pane using the specified backing graph to
display the preview.
|
Method Summary | |
---|---|
void | mouseClicked(MouseEvent e) |
void | mouseDragged(MouseEvent e) |
void | mouseEntered(MouseEvent e) |
void | mouseExited(MouseEvent e) |
void | mouseMoved(MouseEvent e) |
void | mousePressed(MouseEvent e) |
void | mouseReleased(MouseEvent e) |
void | paint(Graphics g)
Paints the navigator pane on the specified graphics.
|
Parameters: backingGraph The backing graph to use for rendering.
Parameters: g The graphics to paint the navigator to.