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
ConstructorsConstructorDescriptionSimpleSymbol(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()voidjahuwaldt.plot.PlotSymbolGets the plot symbol.intgetSize()static voidTests this class.voidsetBorderColor(Color color) voidsetFillColor(Color color) voidsetPlotSymbol(jahuwaldt.plot.PlotSymbol symbol) Sets the plot symbol.voidsetSize(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:
clonein 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:
getSizein classjahuwaldt.plot.PlotSymbol
-
setSize
public void setSize(int size) - Overrides:
setSizein classjahuwaldt.plot.PlotSymbol
-
setBorderColor
- Overrides:
setBorderColorin classjahuwaldt.plot.PlotSymbol
-
getBorderColor
- Overrides:
getBorderColorin classjahuwaldt.plot.PlotSymbol
-
setFillColor
- Overrides:
setFillColorin classjahuwaldt.plot.PlotSymbol
-
getFillColor
- Overrides:
getFillColorin classjahuwaldt.plot.PlotSymbol
-
draw
- Specified by:
drawin classjahuwaldt.plot.PlotSymbol
-
toString
-
main
Tests this class.- Parameters:
argv- the array of command line parameters.
-