All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class Birdview extends JPanel
A JFC/Swing component that displays a bird-eyes (thumbnail) view of a
invalid reference
JGraph
in combination with JScrollPane. Also allows to pan view with the mouse.
Author:
Michael Baranov
See Also:
  • Field Details

    • PAN_RECT_COLOR

      public static final Color PAN_RECT_COLOR
      Color constant
    • BACKGROUND_COLOR

      public static final Color BACKGROUND_COLOR
      Color constant
  • Constructor Details

    • Birdview

      public Birdview()
      Constructor.
      Parameters:
      doc - document to track. May be null
  • Method Details

    • 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.
      Parameters:
      graph - the graph component. May be null
      scroller - the croller, usually the one that holds the graph. May be null
    • paint

      public void paint(Graphics g)
      Overrides:
      paint in class JComponent