Package ucar.unidata.idv
Class VectorGraphicsRenderer
java.lang.Object
ucar.unidata.idv.VectorGraphicsRenderer
- All Implemented Interfaces:
Plotter.Plottable
- Author:
- IDV development team
-
Constructor Summary
ConstructorsConstructorDescriptionVectorGraphicsRenderer
(List<? extends ViewManager> viewManagers, int columns) Create a new vector graphics renderer for the view manager.VectorGraphicsRenderer
(ViewManager viewManager) Instantiates a new vector graphics renderer. -
Method Summary
Modifier and TypeMethodDescriptionColor[]
Get the coloursGet the LabelBG property.Get the LabelHtml property.Get the LabelPos property.int
Get the LabelWidth property.boolean
Get the Preview property.int[]
getSize()
Get the sizevoid
plot
(Graphics2D graphics) Plot to the graphics.void
Render to the filevoid
setLabelBG
(Color value) Set the LabelBG property.void
setLabelHtml
(String value) Set the LabelHtml property.void
setLabelPos
(String value) Set the LabelPos property.void
setLabelWidth
(int value) Set the LabelWidth property.void
setPreview
(boolean value) Set the Preview property.boolean
Show the configuration dialog
-
Constructor Details
-
VectorGraphicsRenderer
Instantiates a new vector graphics renderer.- Parameters:
viewManager
- the view manager
-
VectorGraphicsRenderer
Create a new vector graphics renderer for the view manager.- Parameters:
viewManagers
- the view managerscolumns
- the number of columns when there are multiple images
-
-
Method Details
-
renderTo
Render to the file- Parameters:
filename
- the filename- Throws:
Exception
- problem writing to the file
-
showConfigDialog
public boolean showConfigDialog()Show the configuration dialog- Returns:
- true if successful
-
plot
Plot to the graphics.- Specified by:
plot
in interfacePlotter.Plottable
- Parameters:
graphics
- the graphics to plot to
-
getColours
Get the colours- Specified by:
getColours
in interfacePlotter.Plottable
- Returns:
- the color
-
getSize
public int[] getSize()Get the size- Specified by:
getSize
in interfacePlotter.Plottable
- Returns:
- the size (width, height)
-
setLabelHtml
Set the LabelHtml property.- Parameters:
value
- The new value for LabelHtml
-
getLabelHtml
Get the LabelHtml property.- Returns:
- The LabelHtml
-
setLabelPos
Set the LabelPos property.- Parameters:
value
- The new value for LabelPos
-
getLabelPos
Get the LabelPos property.- Returns:
- The LabelPos
-
setLabelBG
Set the LabelBG property.- Parameters:
value
- The new value for LabelBG
-
getLabelBG
Get the LabelBG property.- Returns:
- The LabelBG
-
setLabelWidth
public void setLabelWidth(int value) Set the LabelWidth property.- Parameters:
value
- The new value for LabelWidth
-
getLabelWidth
public int getLabelWidth()Get the LabelWidth property.- Returns:
- The LabelWidth
-
setPreview
public void setPreview(boolean value) Set the Preview property.- Parameters:
value
- The new value for Preview
-
getPreview
public boolean getPreview()Get the Preview property.- Returns:
- The Preview
-