All Implemented Interfaces:
Serializable, Element
Direct Known Subclasses:
HorizontalLine, VerticalLine

public class Line extends CanvasOverlay
Line object. Line properties can be set or overriden by the options passed in from the user.
Author:
inaiat
See Also:
  • Constructor Details

    • Line

      public Line()
      Instantiates a new line.
    • Line

      public Line(String name)
      Instantiates a new line.
      Parameters:
      name - the name
  • Method Details

    • startInstance

      public Collection<Integer> startInstance()
    • getStart

      public Collection<Integer> getStart()
      Gets the start.
      Returns:
      the start
    • setStart

      public Line setStart(Collection<Integer> start)
      Sets the start.
      Parameters:
      start - the new start
      Returns:
      Line
    • stopInstance

      public Collection<Integer> stopInstance()
      Get stop instance
      Returns:
      Collection of integer type
    • getStop

      public Collection<Integer> getStop()
      Gets the stop.
      Returns:
      the stop
    • setStop

      public Line setStop(Collection<Integer> stop)
      Sets the stop.
      Parameters:
      stop - the new stop
      Returns:
      Line