Class DataToolTab.DataToolPlotter.LimitLine

java.lang.Object
java.awt.geom.Line2D
java.awt.geom.Line2D.Double
org.opensourcephysics.tools.DataToolTab.DataToolPlotter.LimitLine
All Implemented Interfaces:
Shape, Serializable, Cloneable, Drawable, Interactive, Measurable, Selectable
Enclosing class:
DataToolTab.DataToolPlotter

protected class DataToolTab.DataToolPlotter.LimitLine extends Line2D.Double implements Selectable
An inner class that draws a vertical limit line for areas.
See Also:
  • Constructor Details

    • LimitLine

      protected LimitLine()
  • Method Details

    • draw

      public void draw(DrawingPanel panel, Graphics g)
      Description copied from interface: Drawable
      Draws a representation of an object in a drawing panel.
      Specified by:
      draw in interface Drawable
    • findInteractive

      public Interactive findInteractive(DrawingPanel panel, int xpix, int ypix)
      Specified by:
      findInteractive in interface Interactive
    • getPreferredCursor

      public Cursor getPreferredCursor()
      Specified by:
      getPreferredCursor in interface Selectable
    • setXY

      public void setXY(double x, double y)
      Specified by:
      setXY in interface Interactive
    • setX

      public void setX(double x)
      Specified by:
      setX in interface Interactive
    • isMeasured

      public boolean isMeasured()
      Description copied from interface: Measurable
      Determines if information is available to set min/max values. Objects that store data should return false if data is null.
      Specified by:
      isMeasured in interface Measurable
      Returns:
      true if min/max values are valid
    • getXMin

      public double getXMin()
      Description copied from interface: Measurable
      Gets the minimum x needed to draw this object.
      Specified by:
      getXMin in interface Measurable
      Returns:
      minimum
    • getXMax

      public double getXMax()
      Description copied from interface: Measurable
      Gets the maximum x needed to draw this object.
      Specified by:
      getXMax in interface Measurable
      Returns:
      maximum
    • getYMin

      public double getYMin()
      Description copied from interface: Measurable
      Gets the minimum y needed to draw this object.
      Specified by:
      getYMin in interface Measurable
      Returns:
      minimum
    • getYMax

      public double getYMax()
      Description copied from interface: Measurable
      Gets the maximum y needed to draw this object.
      Specified by:
      getYMax in interface Measurable
      Returns:
      minimum
    • refreshX

      public void refreshX()
      refreshes the value of x based on current pointIndex.
    • setY

      public void setY(double y)
      Specified by:
      setY in interface Interactive
    • getX

      public double getX()
      Specified by:
      getX in interface Interactive
    • getY

      public double getY()
      Specified by:
      getY in interface Interactive
    • setSelected

      public void setSelected(boolean selectable)
      Specified by:
      setSelected in interface Selectable
    • isSelected

      public boolean isSelected()
      Specified by:
      isSelected in interface Selectable
    • toggleSelected

      public void toggleSelected()
      Specified by:
      toggleSelected in interface Selectable
    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface Interactive
    • setEnabled

      public void setEnabled(boolean enable)
      Specified by:
      setEnabled in interface Interactive