Class VectorGraphicsRenderer

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

public class VectorGraphicsRenderer extends Object implements Plotter.Plottable
Author:
IDV development team
  • Constructor Details

    • VectorGraphicsRenderer

      public VectorGraphicsRenderer(ViewManager viewManager)
      Instantiates a new vector graphics renderer.
      Parameters:
      viewManager - the view manager
    • VectorGraphicsRenderer

      public VectorGraphicsRenderer(List<? extends ViewManager> viewManagers, int columns)
      Create a new vector graphics renderer for the view manager.
      Parameters:
      viewManagers - the view managers
      columns - the number of columns when there are multiple images
  • Method Details

    • 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