Class ContourStyle
java.lang.Object
uk.ac.starlink.ttools.plot2.layer.ContourStyle
- All Implemented Interfaces:
Style
-
Constructor Summary
ConstructorsConstructorDescriptionContourStyle(Color color, int nLevel, double offset, int nSmooth, int thickness, LevelMode levelMode, Combiner combiner) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetColor()Returns contour colour.Returns the combination mode.Returns an icon suitable for displaying in a legend for this style.intReturns requested number of contours.Returns level determination algorithm.doubleReturns the offset of the first contour from zero.intReturns smoothing kernel width.intReturns line thickness.inthashCode()
-
Constructor Details
-
ContourStyle
public ContourStyle(Color color, int nLevel, double offset, int nSmooth, int thickness, LevelMode levelMode, Combiner combiner) Constructor.- Parameters:
color- contour line colournLevel- number of contoursoffset- offset from zero of first contournSmooth- smoothing kernel widththickness- line thicknesslevelMode- level determination algorithmcombiner- combination mode
-
-
Method Details
-
getColor
-
getLevelCount
public int getLevelCount()Returns requested number of contours.- Returns:
- level count
-
getOffset
public double getOffset()Returns the offset of the first contour from zero.- Returns:
- zero offset
-
getSmoothing
public int getSmoothing()Returns smoothing kernel width.- Returns:
- smoothing amount; 1 means no smooth
-
getThickness
public int getThickness()Returns line thickness.- Returns:
- thickness of plotted contour lines in pixels
-
getLevelMode
-
getCombiner
-
getLegendIcon
Description copied from interface:StyleReturns an icon suitable for displaying in a legend for this style.- Specified by:
getLegendIconin interfaceStyle
-
hashCode
-
equals
-