Modifier and Type | Class and Description |
---|---|
class |
TrajectoryRenderer.ObservationUI |
Constructor and Description |
---|
TrajectoryRenderer()
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 |
setProjection(ProjectionImpl project)
Tell the Renderer to use the given projection from now on.
|
void |
setSelected(PointObsDatatype obs) |
void |
setTrajectory(TrajectoryObsDatatype trajectory)
Set the trajectory.
|
public void incrFontSize()
public void decrFontSize()
public void setColor(java.awt.Color color)
Renderer
public LatLonRect getPreferredArea()
Renderer
getPreferredArea
in interface Renderer
public void setTrajectory(TrajectoryObsDatatype trajectory) throws java.io.IOException
trajectory
- : obtain list of PointObsDatatype objects from herejava.io.IOException
- on read errorpublic void setSelected(PointObsDatatype 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.