Modifier and Type | Class and Description |
---|---|
class |
PointRenderer.ObservationUI |
Constructor and Description |
---|
PointRenderer()
constructor
|
Modifier and Type | Method and Description |
---|---|
void |
decrFontSize() |
void |
draw(java.awt.Graphics2D g,
java.awt.geom.AffineTransform normal2Device)
Tell the renderer to draw itself.
|
java.awt.Color |
getColor() |
boolean |
getDeclutter() |
LatLonRect |
getPreferredArea()
This allows application to automatically switch to some special area defined by the Renderer
|
void |
incrFontSize() |
void |
setColor(java.awt.Color color)
Tell the Renderer to use the given color.
|
void |
setDeclutter(boolean declut) |
void |
setDrawConnectingLine(boolean drawConnectingLine) |
void |
setPointFeatures(java.util.List<PointFeature> obs) |
void |
setProjection(ProjectionImpl project)
Tell the Renderer to use the given projection from now on.
|
void |
setSelected(PointFeature obs) |
public void incrFontSize()
public void decrFontSize()
public void setColor(java.awt.Color color)
Renderer
public LatLonRect getPreferredArea()
Renderer
getPreferredArea
in interface Renderer
public void setPointFeatures(java.util.List<PointFeature> obs) throws java.io.IOException
java.io.IOException
public void setDrawConnectingLine(boolean drawConnectingLine)
public void setSelected(PointFeature obs)
public void setDeclutter(boolean declut)
public boolean getDeclutter()
public void setProjection(ProjectionImpl project)
Renderer
setProjection
in interface Renderer
project
- the projection to use.public void draw(java.awt.Graphics2D g, java.awt.geom.AffineTransform normal2Device)
Renderer
draw
in interface Renderer
g
- the Graphics contextnormal2Device
- transforms "Normalized Device" to Device coordinates. When drawing to the screen,
this will be the identity transform. For other devices like printers, it is not the Identity transform.
Renderers should use "Normalized Device" coordinates if they want to render non-scalable objects.
Basically, you pretend you are working in screen pixels.