Class ThresholdLineStyle

java.lang.Object
hec.gfx2d.swing.charts.data.ThresholdLineStyle

public class ThresholdLineStyle extends Object
Copyright (C) 2017 Hydrologic Engineering Center, United States Army Corps of Engineers, All Rights Reserved

HEC-Java NEXGEN

  • Constructor Details

    • ThresholdLineStyle

      public ThresholdLineStyle()
    • ThresholdLineStyle

      public ThresholdLineStyle(ThresholdLineStyle copy)
  • Method Details

    • isDrawLine

      public boolean isDrawLine()
      Returns:
      the visibility state of the line for the threshold
    • setDrawLine

      public void setDrawLine(boolean drawLine)
      Parameters:
      drawLine - the new visibility state for the line
    • getLineColor

      public Color getLineColor()
      Returns:
      the color of the line
    • setLineColor

      public void setLineColor(Color color)
      Parameters:
      color - the new color for the line
    • getLineStyle

      public float[] getLineStyle()
      Returns:
      the stroke styling for the line (as a float[])
    • setLineStyle

      public void setLineStyle(float[] lineStyle)
      Parameters:
      lineStyle - the new stroke styling for the line
    • getLineWeight

      public float getLineWeight()
      Returns:
      the thickness of the line
    • setLineWeight

      public void setLineWeight(Float lineWeight)
      Parameters:
      lineWeight - the new thickness for the line
    • getFillStyle

      Returns:
      the fill style (none, above, below)
    • setFillStyle

      public void setFillStyle(ThresholdLineStyle.ThresholdFillStyle fillStyle)
      Parameters:
      fillStyle - the new fill style for the line
    • getFillColor

      public Color getFillColor()
      Returns:
      the color of the fill component
    • setFillColor

      public void setFillColor(Color color)
      Parameters:
      color - the new color for the fill component
    • getFillPattern

      public int getFillPattern()
      Returns:
      the pattern of the fill component
    • setFillPattern

      public void setFillPattern(int fillPattern)
      Parameters:
      fillPattern - the new pattern for the fill component