com.michaelbaranov.microba.jgraph.birdview
Class Birdview
JPanelcom.michaelbaranov.microba.jgraph.birdview.Birdview
public class Birdview
extends JPanel
A JFC/Swing component that displays a bird-eyes (thumbnail) view of a
JGraph in combination with JScrollPane. Also allows to pan
view with the mouse.
void | paint(Graphics g)
|
void | setTrackingFor(JGraph graph, JScrollPane scroller)- Makes this component track the provided graph and scroller.
|
BACKGROUND_COLOR
public static final Color BACKGROUND_COLOR
Color constant
PAN_RECT_COLOR
public static final Color PAN_RECT_COLOR
Color constant
Birdview
public Birdview()
Constructor.
paint
public void paint(Graphics g)
setTrackingFor
public void setTrackingFor(JGraph graph,
JScrollPane scroller) Makes this component track the provided graph and scroller. Set
parameters to null to unbind thie component.
graph - the graph component. May be nullscroller - the croller, usually the one that holds the graph. May be
null