Package noaa.coastwatch.render
Class SimpleSymbol
java.lang.Object
jahuwaldt.plot.PlotSymbol
noaa.coastwatch.render.PointFeatureSymbol
noaa.coastwatch.render.SimpleSymbol
- All Implemented Interfaces:
Serializable
,Cloneable
A
SimpleSymbol
is a PointFeatureSymbol
that renders a PlotSymbol
and optional text label.- Since:
- 3.2.0
- Author:
- Peter Hollemans
- See Also:
-
Field Summary
Fields inherited from class noaa.coastwatch.render.PointFeatureSymbol
feature
-
Constructor Summary
ConstructorDescriptionSimpleSymbol
(jahuwaldt.plot.PlotSymbol symbol) Creates a new simple symbol with no text label.SimpleSymbol
(jahuwaldt.plot.PlotSymbol symbol, int attribute, Font font) Creates a new simple symbol with a text label. -
Method Summary
Modifier and TypeMethodDescriptionclone()
void
jahuwaldt.plot.PlotSymbol
Gets the plot symbol.int
getSize()
static void
Tests this class.void
setBorderColor
(Color color) void
setFillColor
(Color color) void
setPlotSymbol
(jahuwaldt.plot.PlotSymbol symbol) Sets the plot symbol.void
setSize
(int size) toString()
Methods inherited from class noaa.coastwatch.render.PointFeatureSymbol
setFeature
-
Constructor Details
-
SimpleSymbol
public SimpleSymbol(jahuwaldt.plot.PlotSymbol symbol) Creates a new simple symbol with no text label.- Parameters:
symbol
- the plot symbol to use for plotting.
-
SimpleSymbol
Creates a new simple symbol with a text label.- Parameters:
symbol
- the plot symbol to use for plotting.attribute
- the feature attribute index to use for deriving the text label.font
- the font to use for the text label.
-
-
Method Details
-
clone
- Overrides:
clone
in classjahuwaldt.plot.PlotSymbol
-
getPlotSymbol
public jahuwaldt.plot.PlotSymbol getPlotSymbol()Gets the plot symbol.- Returns:
- the plot symbol.
-
setPlotSymbol
public void setPlotSymbol(jahuwaldt.plot.PlotSymbol symbol) Sets the plot symbol.- Parameters:
symbol
- the plot symbol.
-
getSize
public int getSize()- Overrides:
getSize
in classjahuwaldt.plot.PlotSymbol
-
setSize
public void setSize(int size) - Overrides:
setSize
in classjahuwaldt.plot.PlotSymbol
-
setBorderColor
- Overrides:
setBorderColor
in classjahuwaldt.plot.PlotSymbol
-
getBorderColor
- Overrides:
getBorderColor
in classjahuwaldt.plot.PlotSymbol
-
setFillColor
- Overrides:
setFillColor
in classjahuwaldt.plot.PlotSymbol
-
getFillColor
- Overrides:
getFillColor
in classjahuwaldt.plot.PlotSymbol
-
draw
- Specified by:
draw
in classjahuwaldt.plot.PlotSymbol
-
toString
-
main
Tests this class.- Parameters:
argv
- the array of command line parameters.
-