Class CrosshairPainter

  • All Implemented Interfaces:
    GlimpsePainter

    public class CrosshairPainter
    extends GlimpsePainterBase
    Displays crosshairs and a selection box centered over the position of the mouse cursor within the plot. The selected region of a plot can be locked using the middle mouse button. The size of the selection box can be increased or decreased by holding down the ctrl key and scrolling the mouse wheel. Either of these behaviors can be altered by using a modified AxisMouseListener subclass.
    Author:
    ulman
    • Constructor Detail

      • CrosshairPainter

        public CrosshairPainter()
    • Method Detail

      • setCursorColor

        public void setCursorColor​(float[] rgba)
      • setCursorColor

        public void setCursorColor​(float r,
                                   float g,
                                   float b,
                                   float a)
      • setShadeColor

        public void setShadeColor​(float[] rgba)
      • setShadeColor

        public void setShadeColor​(float r,
                                  float g,
                                  float b,
                                  float a)
      • setHideVerticalHairs

        public void setHideVerticalHairs​(boolean doHide)
      • setHideHorizontalHairs

        public void setHideHorizontalHairs​(boolean doHide)
      • setLineWidth

        public void setLineWidth​(float width)
      • showSelectionBox

        public void showSelectionBox​(boolean show)
      • setShadeSelectionBox

        public void setShadeSelectionBox​(boolean doShade)
      • showSelectionCrosshairs

        public void showSelectionCrosshairs​(boolean show)
      • setXor

        public void setXor​(boolean xor)