Package hec.gfx2d

Class AxisScrollbar

All Implemented Interfaces:
Adjustable, ImageObserver, MenuContainer, Serializable, Observer, Accessible

public class AxisScrollbar extends JScrollBar implements Observer
Scrollbar that controls the portion of an Axis that is visible in the Viewport.
See Also:
  • Field Details

  • Constructor Details

    • AxisScrollbar

      public AxisScrollbar(G2dPanel p, Axis ax, int orientation)
      Constructs an axis scrollbar with the specified orientation
    • AxisScrollbar

      public AxisScrollbar(G2dPanel p, Axis[] ax, int orientation)
  • Method Details

    • fireAdjustmentValueChanged

      protected void fireAdjustmentValueChanged(int id, int type, int value)
      Overrides:
      fireAdjustmentValueChanged in class JScrollBar
    • addAxis

      public void addAxis(Axis ax)
    • removeAxis

      public void removeAxis(Axis ax)
    • update

      public void update(Observable o, Object arg)
      Specified by:
      update in interface Observer
    • computeScaling

      public void computeScaling()
    • setAxisScrollColor

      public void setAxisScrollColor(Color c)
    • getAxisScrollColor

      public Color getAxisScrollColor()