public class TrackSegmentInfo extends java.lang.Object implements Renderable
Modifier and Type | Class and Description |
---|---|
protected static class |
TrackSegmentInfo.OrderedText |
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
angleFormat |
protected java.lang.Object |
elevationUnit |
protected boolean |
enabled |
protected int |
segmentIndex |
protected Position |
segmentPosition |
protected SARTrack |
track |
Constructor and Description |
---|
TrackSegmentInfo() |
Modifier and Type | Method and Description |
---|---|
protected double |
computeSurfaceElevation(DrawContext dc,
Angle latitude,
Angle longitude) |
protected void |
doRender(DrawContext dc) |
protected void |
drawHeadingAltitudeLabel(DrawContext dc,
int x,
int y,
java.awt.Font font,
java.awt.Color color,
Angle heading,
Position pos) |
protected void |
drawLatLonLabel(DrawContext dc,
int x,
int y,
java.awt.Font font,
java.awt.Color color,
Position pos) |
protected void |
drawSegmentLabel(DrawContext dc,
SARTrack track,
int index) |
protected void |
drawSegmentPositionLabel(DrawContext dc,
SARTrack track,
int index,
Position pos) |
protected void |
drawText(DrawContext dc,
java.lang.String text,
int x,
int y,
java.awt.Font font,
java.awt.Color color,
double distanceFromEye) |
protected java.lang.String |
formatAltitude(double altitude) |
protected java.lang.String |
formatAngle(Angle angle) |
java.lang.Object |
getAngleFormat() |
java.lang.Object |
getElevationUnit() |
protected Vec4 |
getScreenPoint(DrawContext dc,
Position position) |
int |
getSegmentIndex() |
Position |
getSegmentPosition() |
SARTrack |
getTrack() |
boolean |
isEnabled() |
void |
render(DrawContext dc)
Causes this
Renderable to render itself using the provided draw context. |
void |
setAngleFormat(java.lang.Object angleFormat) |
void |
setElevationUnit(java.lang.Object elevationUnit) |
void |
setEnabled(boolean enable) |
void |
setSegmentIndex(int index) |
void |
setSegmentPosition(Position pos) |
void |
setTrack(SARTrack track) |
protected java.lang.Object angleFormat
protected java.lang.Object elevationUnit
protected boolean enabled
protected int segmentIndex
protected Position segmentPosition
protected SARTrack track
protected double computeSurfaceElevation(DrawContext dc, Angle latitude, Angle longitude)
protected void doRender(DrawContext dc)
protected void drawHeadingAltitudeLabel(DrawContext dc, int x, int y, java.awt.Font font, java.awt.Color color, Angle heading, Position pos)
protected void drawLatLonLabel(DrawContext dc, int x, int y, java.awt.Font font, java.awt.Color color, Position pos)
protected void drawSegmentLabel(DrawContext dc, SARTrack track, int index)
protected void drawSegmentPositionLabel(DrawContext dc, SARTrack track, int index, Position pos)
protected void drawText(DrawContext dc, java.lang.String text, int x, int y, java.awt.Font font, java.awt.Color color, double distanceFromEye)
protected java.lang.String formatAltitude(double altitude)
protected java.lang.String formatAngle(Angle angle)
public java.lang.Object getAngleFormat()
public java.lang.Object getElevationUnit()
protected Vec4 getScreenPoint(DrawContext dc, Position position)
public int getSegmentIndex()
public Position getSegmentPosition()
public SARTrack getTrack()
public boolean isEnabled()
public void render(DrawContext dc)
Renderable
Renderable
to render itself using the provided draw context.render
in interface Renderable
dc
- the DrawContext
to be usedDrawContext
public void setAngleFormat(java.lang.Object angleFormat)
public void setElevationUnit(java.lang.Object elevationUnit)
public void setEnabled(boolean enable)
public void setSegmentIndex(int index)
public void setSegmentPosition(Position pos)
public void setTrack(SARTrack track)