public class CoverArea extends Maneuver implements LocatedManeuver, ManeuverWithSpeed, IMCSerialization, StateRendererInteraction
Modifier and Type | Field and Description |
---|---|
protected InteractionAdapter |
adapter |
protected java.util.Vector<LocationType> |
points |
java.lang.String |
polygonPoints |
protected double |
rotateIncrement |
protected double |
targetAngle |
circleDiam, COLOR_HELP, CT_BOOLEAN, CT_NUMBER, CT_STRING, customSettings, customSettingsTypeHint, DEFAULT_ROOT_ELEMENT, endActions, id, startActions, T, vehicles, X, Y, Z
Constructor and Description |
---|
CoverArea() |
Modifier and Type | Method and Description |
---|---|
protected java.util.Vector<com.l2fprod.common.propertysheet.DefaultProperty> |
additionalProperties() |
java.lang.Object |
clone()
Clone this maneuver
|
void |
focusGained(java.awt.event.FocusEvent event,
StateRenderer2D source) |
void |
focusLost(java.awt.event.FocusEvent event,
StateRenderer2D source) |
ManeuverLocation |
getEndLocation()
Retrieve the position where the vehicle will end this maneuver
|
java.awt.Image |
getIconImage() |
org.dom4j.Document |
getManeuverAsDocument(java.lang.String rootElementName)
Get each maneuver specific data.
|
ManeuverLocation |
getManeuverLocation()
Retrieve the position of the maneuver (position that can be dragged by the user)
|
java.awt.Cursor |
getMouseCursor() |
java.lang.String |
getName() |
java.lang.String |
getPropertiesDialogTitle() |
java.lang.String[] |
getPropertiesErrors(com.l2fprod.common.propertysheet.Property[] properties) |
double |
getRadiusTolerance() |
SpeedType |
getSpeed() |
ManeuverLocation |
getStartLocation()
Retrieve the position where the vehicle will start this maneuver
|
java.lang.String |
getType()
The extending classes should provide a type name that will be shown to the user related to that maneuver.
|
java.util.Collection<ManeuverLocation> |
getWaypoints() |
boolean |
isExclusive() |
void |
keyPressed(java.awt.event.KeyEvent event,
StateRenderer2D source) |
void |
keyReleased(java.awt.event.KeyEvent event,
StateRenderer2D source) |
void |
keyTyped(java.awt.event.KeyEvent event,
StateRenderer2D source) |
void |
loadManeuverFromXML(java.lang.String xml)
Expects only maneuver specific data.
|
static void |
main(java.lang.String[] args) |
void |
mouseClicked(java.awt.event.MouseEvent event,
StateRenderer2D source) |
void |
mouseDragged(java.awt.event.MouseEvent event,
StateRenderer2D source) |
void |
mouseExited(java.awt.event.MouseEvent event,
StateRenderer2D source) |
void |
mouseMoved(java.awt.event.MouseEvent event,
StateRenderer2D source) |
void |
mousePressed(java.awt.event.MouseEvent event,
StateRenderer2D source) |
void |
mouseReleased(java.awt.event.MouseEvent event,
StateRenderer2D source) |
void |
paintInteraction(java.awt.Graphics2D g,
StateRenderer2D source) |
void |
paintOnMap(java.awt.Graphics2D g2d,
PlanElement planElement,
StateRenderer2D renderer) |
void |
parseIMCMessage(pt.lsts.imc.IMCMessage message) |
pt.lsts.imc.IMCMessage |
serializeToIMC() |
void |
setActive(boolean mode,
StateRenderer2D source) |
void |
setAssociatedSwitch(ToolbarSwitch tswitch) |
void |
setManeuverLocation(ManeuverLocation loc)
Set the maneuver's position
|
void |
setProperties(com.l2fprod.common.propertysheet.Property[] properties) |
void |
setSpeed(SpeedType speed)
Sets the speed
|
void |
translate(double offsetNorth,
double offsetEast,
double offsetDown)
Translate the position of this maneuver
|
void |
wheelMoved(java.awt.event.MouseWheelEvent event,
StateRenderer2D source) |
addTransition, asDocument, asDocument, asElement, asElement, asXML, asXML, clone, cloneActions, compareTo, createFromXML, endManeuver, getCustomSettings, getCustomSettingsTypeHint, getEndActions, getIcon, getId, getManeuverXml, getMaxTime, getMinTime, getMissionType, getProperties, getReacheableManeuvers, getSamePositionManeuvers, getStartActions, getTooltipText, getTransitionCondition, getXPosition, getYPosition, hasEnded, interpolate, isInitialManeuver, loadFromXMLExtraParameters, loadFromXMLExtraParameters, loadManeuverXml, loadXMLWithSettings, loadXMLWithSettings, loadXMLWithSettings, removeTransition, setCustomSettings, setCustomSettingsTypeHint, setId, setInitialManeuver, setMaxTime, setMinTime, setMissionType, setVehicle, setVehicles, setXPosition, setYPosition, toString
protected InteractionAdapter adapter
protected double targetAngle
protected double rotateIncrement
public java.lang.String polygonPoints
protected java.util.Vector<LocationType> points
public java.lang.String getType()
Maneuver
public void parseIMCMessage(pt.lsts.imc.IMCMessage message)
parseIMCMessage
in interface IMCSerialization
public pt.lsts.imc.IMCMessage serializeToIMC()
serializeToIMC
in interface IMCSerialization
public java.lang.String getName()
getName
in interface StateRendererInteraction
public java.awt.Image getIconImage()
getIconImage
in interface StateRendererInteraction
public java.awt.Cursor getMouseCursor()
getMouseCursor
in interface StateRendererInteraction
public boolean isExclusive()
isExclusive
in interface StateRendererInteraction
public void paintOnMap(java.awt.Graphics2D g2d, PlanElement planElement, StateRenderer2D renderer)
paintOnMap
in class Maneuver
public void mouseClicked(java.awt.event.MouseEvent event, StateRenderer2D source)
mouseClicked
in interface StateRendererInteraction
public void mousePressed(java.awt.event.MouseEvent event, StateRenderer2D source)
mousePressed
in interface StateRendererInteraction
public void mouseDragged(java.awt.event.MouseEvent event, StateRenderer2D source)
mouseDragged
in interface StateRendererInteraction
public void mouseMoved(java.awt.event.MouseEvent event, StateRenderer2D source)
mouseMoved
in interface StateRendererInteraction
public void mouseReleased(java.awt.event.MouseEvent event, StateRenderer2D source)
mouseReleased
in interface StateRendererInteraction
public void wheelMoved(java.awt.event.MouseWheelEvent event, StateRenderer2D source)
wheelMoved
in interface StateRendererInteraction
public void setAssociatedSwitch(ToolbarSwitch tswitch)
setAssociatedSwitch
in interface StateRendererInteraction
public void keyPressed(java.awt.event.KeyEvent event, StateRenderer2D source)
keyPressed
in interface StateRendererInteraction
public void keyReleased(java.awt.event.KeyEvent event, StateRenderer2D source)
keyReleased
in interface StateRendererInteraction
public void keyTyped(java.awt.event.KeyEvent event, StateRenderer2D source)
keyTyped
in interface StateRendererInteraction
public void mouseExited(java.awt.event.MouseEvent event, StateRenderer2D source)
mouseExited
in interface StateRendererInteraction
public void setActive(boolean mode, StateRenderer2D source)
setActive
in interface StateRendererInteraction
public void focusGained(java.awt.event.FocusEvent event, StateRenderer2D source)
focusGained
in interface StateRendererInteraction
public void focusLost(java.awt.event.FocusEvent event, StateRenderer2D source)
focusLost
in interface StateRendererInteraction
public java.util.Collection<ManeuverLocation> getWaypoints()
getWaypoints
in interface LocatedManeuver
public void paintInteraction(java.awt.Graphics2D g, StateRenderer2D source)
paintInteraction
in interface StateRendererInteraction
public ManeuverLocation getManeuverLocation()
LocatedManeuver
getManeuverLocation
in interface LocatedManeuver
public ManeuverLocation getEndLocation()
LocatedManeuver
getEndLocation
in interface LocatedManeuver
public ManeuverLocation getStartLocation()
LocatedManeuver
getStartLocation
in interface LocatedManeuver
public void setManeuverLocation(ManeuverLocation loc)
LocatedManeuver
setManeuverLocation
in interface LocatedManeuver
loc
- The new location for this maneuverpublic void translate(double offsetNorth, double offsetEast, double offsetDown)
LocatedManeuver
translate
in interface LocatedManeuver
offsetNorth
- north offset amount, in metersoffsetEast
- east offset amount, in metersoffsetDown
- down offset amount, in meterspublic void loadManeuverFromXML(java.lang.String xml)
Maneuver
loadManeuverFromXML
in class Maneuver
public SpeedType getSpeed()
getSpeed
in interface ManeuverWithSpeed
public void setSpeed(SpeedType speed)
ManeuverWithSpeed
setSpeed
in interface ManeuverWithSpeed
public double getRadiusTolerance()
public java.lang.Object clone()
Maneuver
public org.dom4j.Document getManeuverAsDocument(java.lang.String rootElementName)
Maneuver
getManeuverAsDocument
in class Maneuver
protected java.util.Vector<com.l2fprod.common.propertysheet.DefaultProperty> additionalProperties()
additionalProperties
in class Maneuver
public java.lang.String getPropertiesDialogTitle()
getPropertiesDialogTitle
in interface PropertiesProvider
getPropertiesDialogTitle
in class Maneuver
public void setProperties(com.l2fprod.common.propertysheet.Property[] properties)
setProperties
in interface PropertiesProvider
setProperties
in class Maneuver
public java.lang.String[] getPropertiesErrors(com.l2fprod.common.propertysheet.Property[] properties)
getPropertiesErrors
in interface PropertiesProvider
getPropertiesErrors
in class Maneuver
public static void main(java.lang.String[] args)
Copyright © 2004-2020 FEUP-LSTS and Neptus developers. All Rights Reserved.