Package hec.gfx2d

Class G2dLogarithmicLine

All Implemented Interfaces:
AsciiSerializable, FieldAccessor, ActionListener, Serializable, Cloneable, Comparable, EventListener, Observer, Modifiable

public class G2dLogarithmicLine extends G2dLine
See Also:
  • Constructor Details

    • G2dLogarithmicLine

      public G2dLogarithmicLine()
  • Method Details

    • drawLine

      public void drawLine(Graphics g, Rectangle clipRect)
      Description copied from class: G2dLine
      This method draws a line to the specified graphics context. The line is clipped so it fits within the clipping rectangle
      Overrides:
      drawLine in class G2dLine
      Parameters:
      g - - the graphics context to clip to
      clipRect - - the rectangle that bounds the viewable region. This describes how the line is clipped. The clipping units are in world coordinates
    • addLineData

      public void addLineData(double[] xarray, double[] yarray, int numPts)
      Description copied from class: G2dLine
      Adds a adds line data to the last line segment in the list
      Overrides:
      addLineData in class G2dLine
      Parameters:
      xarray - The feature to be added to the LineData attribute
      yarray - The feature to be added to the LineData attribute
      numPts - The feature to be added to the LineData attribute
    • setLineData

      public void setLineData(double[] xarray, double[] yarray, int numPts)
      Description copied from class: G2dLine
      This sets the data that the line uses to draw to the screen. This deletes any previous line data
      Overrides:
      setLineData in class G2dLine
      Parameters:
      xarray - - the set of x data points in World Coordinates
      yarray - - the set of y data points in World Coordinates
      numPts - The new LineData value