Class ContourStyle
- java.lang.Object
-
- uk.ac.starlink.ttools.plot2.layer.ContourStyle
-
-
Constructor Summary
Constructors Constructor Description ContourStyle(java.awt.Color color, int nLevel, double offset, int nSmooth, LevelMode levelMode, Combiner combiner)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.awt.Color
getColor()
Returns contour colour.Combiner
getCombiner()
Returns the combination mode.javax.swing.Icon
getLegendIcon()
Returns an icon suitable for displaying in a legend for this style.int
getLevelCount()
Returns requested number of contours.LevelMode
getLevelMode()
Returns level determination algorithm.double
getOffset()
Returns the offset of the first contour from zero.int
getSmoothing()
Returns smoothing kernel width.int
hashCode()
-
-
-
Constructor Detail
-
ContourStyle
public ContourStyle(java.awt.Color color, int nLevel, double offset, int nSmooth, LevelMode levelMode, Combiner combiner)
Constructor.- Parameters:
color
- contour line colournLevel
- number of contoursoffset
- offset from zero of first contournSmooth
- smoothing kernel widthlevelMode
- level determination algorithmcombiner
- combination mode
-
-
Method Detail
-
getColor
public java.awt.Color 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
-
getLevelMode
public LevelMode getLevelMode()
Returns level determination algorithm.- Returns:
- level mode
-
getCombiner
public Combiner getCombiner()
Returns the combination mode.- Returns:
- combiner
-
getLegendIcon
public javax.swing.Icon 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()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
-