Class ContourStyle
java.lang.Object
uk.ac.starlink.ttools.plot2.layer.ContourStyle
- All Implemented Interfaces:
Style
Style for contour plots.
- Since:
- 17 Feb 2013
- Author:
- Mark Taylor
-
Constructor Summary
ConstructorsConstructorDescriptionContourStyle
(Color color, int nLevel, double offset, int nSmooth, int thickness, LevelMode levelMode, Combiner combiner) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getColor()
Returns contour colour.Returns the combination mode.Returns an icon suitable for displaying in a legend for this style.int
Returns requested number of contours.Returns level determination algorithm.double
Returns the offset of the first contour from zero.int
Returns smoothing kernel width.int
Returns line thickness.int
hashCode()
-
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
Returns contour colour.- Returns:
- colour
-
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
Returns level determination algorithm.- Returns:
- level mode
-
getCombiner
Returns the combination mode.- Returns:
- combiner
-
getLegendIcon
Description copied from interface:Style
Returns an icon suitable for displaying in a legend for this style.- Specified by:
getLegendIcon
in interfaceStyle
-
hashCode
public int hashCode() -
equals
-