public class EarthDataPlot extends java.lang.Object implements Renderable
+------------------------------------+ | border | | +----------------+ +--+ +----+ | | | | | | | | | | | | | | | | | | | | | | | | | | | | View |Info| | | |Earth data view | legend legend | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | +----------------+ +--+ +----+ | | border | +------------------------------------+
Constructor and Description |
---|
EarthDataPlot(EarthDataView view,
EarthDataInfo info,
IconElement icon,
java.awt.Color fore,
java.awt.Color back,
java.awt.Font font)
Creates a new earth data plot from the specified parameters.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Dimension |
getSize(java.awt.Graphics2D g)
Gets the rendered plot size.
|
void |
render(java.awt.Graphics2D g)
Renders the plot to the graphics device.
|
public EarthDataPlot(EarthDataView view, EarthDataInfo info, IconElement icon, java.awt.Color fore, java.awt.Color back, java.awt.Font font)
view
- the data view for rendering in the main plot area.info
- the info for the earth data information legend.
If null, no info legend is drawn.icon
- the icon for the the info legend. This parameter can
be null if info is null.fore
- the foreground drawing color for legend annotations.back
- the background drawing color for legends, or null for
no backgrounds.font
- the font for legend annotations, or null for the default
legend fonts.DataColorScale
,
EarthPlotInfo
public java.awt.Dimension getSize(java.awt.Graphics2D g)
getSize
in interface Renderable
g
- the graphics context to be used for rendering. This is
used to determine the total rendering size from font information
and so on.public void render(java.awt.Graphics2D g)
render
in interface Renderable
g
- the graphics device for rendering.