ucar.unidata.idv
Class VectorGraphicsRenderer

java.lang.Object
  extended by ucar.unidata.idv.VectorGraphicsRenderer
All Implemented Interfaces:
Plotter.Plottable

public class VectorGraphicsRenderer
extends Object
implements Plotter.Plottable

Author:
IDV development team

Constructor Summary
VectorGraphicsRenderer(ViewManager viewManager)
          Create a new vector graphics renderer for the view manager
 
Method Summary
 Color[] getColours()
          Get the colours
 Color getLabelBG()
          Get the LabelBG property.
 String getLabelHtml()
          Get the LabelHtml property.
 String getLabelPos()
          Get the LabelPos property.
 int getLabelWidth()
          Get the LabelWidth property.
 boolean getPreview()
          Get the Preview property.
 int[] getSize()
          Get the size
 void plot(Graphics2D graphics)
          Plot to the graphics
 void renderTo(String filename)
          Render to the file
 void 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 showConfigDialog()
          Show the configuration dialog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VectorGraphicsRenderer

public VectorGraphicsRenderer(ViewManager viewManager)
Create a new vector graphics renderer for the view manager

Parameters:
viewManager - the ViewManager
Method Detail

renderTo

public void renderTo(String filename)
              throws Exception
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

public void plot(Graphics2D graphics)
Plot to the graphics

Specified by:
plot in interface Plotter.Plottable
Parameters:
graphics - the graphics to plot to

getColours

public Color[] getColours()
Get the colours

Specified by:
getColours in interface Plotter.Plottable
Returns:
the color

getSize

public int[] getSize()
Get the size

Specified by:
getSize in interface Plotter.Plottable
Returns:
the size (width, height)

setLabelHtml

public void setLabelHtml(String value)
Set the LabelHtml property.

Parameters:
value - The new value for LabelHtml

getLabelHtml

public String getLabelHtml()
Get the LabelHtml property.

Returns:
The LabelHtml

setLabelPos

public void setLabelPos(String value)
Set the LabelPos property.

Parameters:
value - The new value for LabelPos

getLabelPos

public String getLabelPos()
Get the LabelPos property.

Returns:
The LabelPos

setLabelBG

public void setLabelBG(Color value)
Set the LabelBG property.

Parameters:
value - The new value for LabelBG

getLabelBG

public Color 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