public class EarthPlotInfo extends Legend
back, DEFAULT_STROKE, font, fore, preferredSize, SPACE_SIZE
Constructor and Description |
---|
EarthPlotInfo(IconElement icon,
EarthDataInfo info,
EarthArea area,
EarthContextElement context,
EarthLocation center)
Creates an earth plot information legend from the specified
parameters.
|
EarthPlotInfo(IconElement icon,
EarthDataInfo info,
EarthArea area,
EarthContextElement context,
EarthLocation center,
java.awt.Dimension dim,
java.awt.Font font,
java.awt.Color fore,
java.awt.Color back)
Creates an earth plot information legend from the specified
parameters.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Dimension |
getSize(java.awt.Graphics2D g)
Gets the actual required legend size.
|
void |
render(java.awt.Graphics2D g,
int x,
int y)
Renders the legend at the specified coordinates in the graphics
device.
|
setBackground, setFont, setForeground, setPreferredSize
public EarthPlotInfo(IconElement icon, EarthDataInfo info, EarthArea area, EarthContextElement context, EarthLocation center)
icon
- the icon element to use for the top of the legend.info
- the earth data information for text annotations.area
- the earth area for geographic bounds.context
- the earth context for the bottom of the legend.public EarthPlotInfo(IconElement icon, EarthDataInfo info, EarthArea area, EarthContextElement context, EarthLocation center, java.awt.Dimension dim, java.awt.Font font, java.awt.Color fore, java.awt.Color back)
icon
- the icon element to use for the top of the legend.info
- the earth data information for text annotations.area
- the earth area for geographic bounds.context
- the earth context for the bottom of the legend.center
- the earth location of the plot center.dim
- the preferred scale dimensions, or null for none.font
- the font for variable name, units, and scale values, or
null for the default font face, plain style, 12 point.fore
- the foreground color for legend lines and annotations.back
- the background color, or null for none.public void render(java.awt.Graphics2D g, int x, int y)
Legend