Package hec.gfx2d.swing.charts.data
Class ThresholdLineStyle
java.lang.Object
hec.gfx2d.swing.charts.data.ThresholdLineStyle
Copyright (C) 2017 Hydrologic Engineering Center,
United States Army Corps of Engineers, All Rights Reserved
HEC-Java NEXGEN
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
float[]
float
boolean
void
setDrawLine
(boolean drawLine) void
setFillColor
(Color color) void
setFillPattern
(int fillPattern) void
void
setLineColor
(Color color) void
setLineStyle
(float[] lineStyle) void
setLineWeight
(Float lineWeight)
-
Constructor Details
-
ThresholdLineStyle
public ThresholdLineStyle() -
ThresholdLineStyle
-
-
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
- Returns:
- the color of the line
-
setLineColor
- 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
- Parameters:
lineWeight
- the new thickness for the line
-
getFillStyle
- Returns:
- the fill style (none, above, below)
-
setFillStyle
- Parameters:
fillStyle
- the new fill style for the line
-
getFillColor
- Returns:
- the color of the fill component
-
setFillColor
- 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
-