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.intGet the LabelWidth property.booleanGet the Preview property.int[]getSize()Get the sizevoidplot(Graphics2D graphics) Plot to the graphics.voidRender to the filevoidsetLabelBG(Color value) Set the LabelBG property.voidsetLabelHtml(String value) Set the LabelHtml property.voidsetLabelPos(String value) Set the LabelPos property.voidsetLabelWidth(int value) Set the LabelWidth property.voidsetPreview(boolean value) Set the Preview property.booleanShow 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:
plotin interfacePlotter.Plottable- Parameters:
graphics- the graphics to plot to
-
getColours
Get the colours- Specified by:
getColoursin interfacePlotter.Plottable- Returns:
- the color
-
getSize
public int[] getSize()Get the size- Specified by:
getSizein 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
-