public class MissionPointMine extends MissionPoint
Modifier and Type | Field and Description |
---|---|
static String |
ELEMENT
ELEMENT name
|
color, COLORMINE, COLORMINESELECTED, COLORPOINT, COLORPOINT2, COLORPOINTSELECTED, COLORTEXT, COLORTEXTBGD, COLORWATCHRADIUS, commnd, depth, index, nf, POINTHEIGHT, POINTHIGHLIGHWIDTH, POINTLINEWIDTH, pointType, POINTTYPE_COMPOSITEWAYPOINT, POINTTYPE_HOVER, POINTTYPE_LIST, POINTTYPE_MINE, POINTTYPE_POSITION, POINTTYPE_WAYPOINT, POINTWIDTH, standoff, TEXTOFFSETX, TEXTOFFSETY, xyPosit
Constructor and Description |
---|
MissionPointMine()
constructor
|
MissionPointMine(int index,
Point2D aPt,
int depth,
int effectRadius,
boolean bActive,
String sType)
constructor
|
MissionPointMine(Point2D aPt)
constructor
|
Modifier and Type | Method and Description |
---|---|
void |
draw(Graphics2D gArea,
MissionToJava2DCoord m2j,
boolean flagSelected,
boolean showText,
boolean showWatchRadius)
draw the point
|
void |
draw(Graphics2D gArea,
MissionToJava2DCoord m2j,
boolean flagSelected,
boolean showText,
boolean showWatchRadius,
boolean showRealTime) |
void |
draw(Graphics2D gArea,
MissionToJava2DCoord m2j,
boolean flagSelected,
boolean showText,
boolean showWatchRadius,
boolean showRealTime,
boolean inFocus) |
int |
getEffectRadius()
get effective radius
|
ArrayList |
getPayloadList()
get list of AgentPayload objects (that came in the XHTML stanza of Jabber message
|
String |
getType()
get type of mine
|
WatchEvent |
getWatchEvent()
get the matching watch event
|
boolean |
isActive()
get mine active status
|
boolean |
isSelected(double curX,
double curY,
MissionToJava2DCoord m2j)
check whether this point selected.
|
void |
setActive(boolean aActive)
set mine active status
|
void |
setEffectRadius(int aEffect)
get effective radius
|
void |
setImage2D(String sFile)
Provides a method that inheriting classes can over-ride to provide an icon for use
in drawing.
|
void |
setPayloadList(ArrayList lst)
set list of AgentPayload objects (that came in the XHTML stanza of Jabber message
|
void |
setType(String sType)
set type of mine
|
void |
setValue(MissionPointMine aMP)
set Value
|
void |
setWatchEvent(WatchEvent oWE)
set the matching watch event
|
String |
toString()
get Mission Point information
|
draw, getDepth, getDescription, getMaxEasting, getMaxNorthing, getMinEasting, getMinNorthing, getPos, getWatchStandOff, setDepth, setDescription, setPos, setPos, setPos, setPos, setValue, setWatchStandOff
public static final String ELEMENT
public MissionPointMine()
public MissionPointMine(Point2D aPt)
aPt
- a pointpublic ArrayList getPayloadList()
public void setPayloadList(ArrayList lst)
lst
- a list of AgentPayload objectspublic String getType()
public void setType(String sType)
sType
- String valuepublic boolean isActive()
public void setActive(boolean aActive)
aActive
- boolean valuepublic int getEffectRadius()
public void setEffectRadius(int aEffect)
aEffect
- numeric valuepublic void setImage2D(String sFile)
MissionPoint
setImage2D
in class MissionPoint
public void setValue(MissionPointMine aMP)
aMP
- Mission Point to be setpublic WatchEvent getWatchEvent()
public void setWatchEvent(WatchEvent oWE)
oWE
- a Watch Eventpublic void draw(Graphics2D gArea, MissionToJava2DCoord m2j, boolean flagSelected, boolean showText, boolean showWatchRadius)
draw
in class MissionPoint
gArea
- drawing canvasm2j
- coordinate translatorflagSelected
- is it selectedshowText
- to draw text?showWatchRadius
- to draw StandOff distance?public void draw(Graphics2D gArea, MissionToJava2DCoord m2j, boolean flagSelected, boolean showText, boolean showWatchRadius, boolean showRealTime)
draw
in class MissionPoint
public void draw(Graphics2D gArea, MissionToJava2DCoord m2j, boolean flagSelected, boolean showText, boolean showWatchRadius, boolean showRealTime, boolean inFocus)
draw
in class MissionPoint
public boolean isSelected(double curX, double curY, MissionToJava2DCoord m2j)
isSelected
in class MissionPoint
curX
- mouse cursor X coordinatescurY
- mouse cursor Y coordinatesm2j
- coordinate translator