Package HAL.Gui

Class PlotLine

  • All Implemented Interfaces:
    java.io.Serializable

    public class PlotLine
    extends java.lang.Object
    implements java.io.Serializable
    this class is used to add segments one at a time to a PlotLine on a UIPlot/PlotWindow
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      PlotLine​(UIPlot plot, int color)
      establishes the UIPlot that will contain the PlotLine, and the color of the segment lines
    • Method Summary

      Modifier and Type Method Description
      void AddSegment​(double x, double y)
      adds a segment to the current line that will end at the specified coordinates
      void AddSegment​(double x, double y, int color)
      adds a segment to the current line that will end at the specified coordinates
      void AddSegment​(double x, double y, int color, int[] pointHood)
      adds a segment to the current line, the color and pointHood are used to draw the point at the end of the segment
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PlotLine

        public PlotLine​(UIPlot plot,
                        int color)
        establishes the UIPlot that will contain the PlotLine, and the color of the segment lines
    • Method Detail

      • AddSegment

        public void AddSegment​(double x,
                               double y,
                               int color,
                               int[] pointHood)
        adds a segment to the current line, the color and pointHood are used to draw the point at the end of the segment
      • AddSegment

        public void AddSegment​(double x,
                               double y,
                               int color)
        adds a segment to the current line that will end at the specified coordinates
      • AddSegment

        public void AddSegment​(double x,
                               double y)
        adds a segment to the current line that will end at the specified coordinates