|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mars_sim.msp.ui.standard.tool.map.EllipseLayer
public class EllipseLayer
A map layer for displaying ellipses.
Constructor Summary | |
---|---|
EllipseLayer(java.awt.Color drawColor)
Constructor |
Method Summary | |
---|---|
void |
displayLayer(Coordinates mapCenter,
java.lang.String mapType,
java.awt.Graphics g)
Displays the layer on the map image. |
void |
setDisplayEllipse(boolean displayEllipse)
Sets the flag for displaying the ellipse. |
void |
setEllipseDetails(IntPoint foci1,
IntPoint foci2,
int range)
Sets the ellipse details. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EllipseLayer(java.awt.Color drawColor)
drawColor
- the color to draw the ellipse.Method Detail |
---|
public void setDisplayEllipse(boolean displayEllipse)
displayEllipse
- true if ellipse is to be displayed.public void setEllipseDetails(IntPoint foci1, IntPoint foci2, int range)
foci1
- the position of the first focus point.foci2
- the position of the second focus point.range
- the ellipse range.public void displayLayer(Coordinates mapCenter, java.lang.String mapType, java.awt.Graphics g)
displayLayer
in interface MapLayer
mapCenter
- the location of the center of the map.mapType
- the type of map.g
- graphics context of the map display.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |