public class RowsCoverage extends Maneuver implements LocatedManeuver, ManeuverWithSpeed, StateRendererInteraction, IMCSerialization, StatisticsProvider, PathProvider
Modifier and Type | Field and Description |
---|---|
protected InteractionAdapter |
adapter |
protected double |
angleApertureDegs |
protected double |
bearingDegs |
protected double |
crossAngleDegs |
protected double |
curvOff |
protected boolean |
editing |
protected boolean |
firstCurveRight |
protected java.awt.geom.Point2D |
lastDragPoint |
protected double |
latDegs |
protected double |
length |
protected double |
lonDegs |
protected short |
overlapPercentage |
protected java.util.Vector<double[]> |
points |
protected int |
range |
protected SpeedType |
speed |
protected boolean |
squareCurve |
protected double |
width |
protected double |
z |
protected ManeuverLocation.Z_UNITS |
zunits |
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 |
---|
RowsCoverage() |
Modifier and Type | Method and Description |
---|---|
protected java.util.Vector<com.l2fprod.common.propertysheet.DefaultProperty> |
additionalProperties() |
protected ManeuverLocation |
calculatePosition() |
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) |
double |
getAngleApertureDegs() |
double |
getBearingDegs() |
double |
getCompletionTime(LocationType initialPosition) |
double |
getCrossAngleDegs() |
double |
getCurvOff() |
double |
getDistanceTravelled(LocationType initialPosition) |
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)
|
double |
getMaxDepth() |
double |
getMinDepth() |
java.awt.Cursor |
getMouseCursor() |
java.lang.String |
getName() |
short |
getOverlapPercent() |
java.util.List<LocationType> |
getPathLocations() |
java.util.List<double[]> |
getPathPoints() |
int |
getRange() |
SpeedType |
getSpeed() |
ManeuverLocation |
getStartLocation()
Retrieve the position where the vehicle will start this maneuver
|
java.lang.String |
getTooltipText() |
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() |
double |
getWidth() |
boolean |
isExclusive() |
boolean |
isSquareCurve() |
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 |
setBearingDegs(double bearingDegs) |
void |
setManeuverLocation(ManeuverLocation location)
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
|
java.lang.String |
validateLength(double value) |
java.lang.String |
validateWidth(double value) |
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, getPropertiesDialogTitle, getPropertiesErrors, getReacheableManeuvers, getSamePositionManeuvers, getStartActions, 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 double latDegs
protected double lonDegs
protected double z
protected ManeuverLocation.Z_UNITS zunits
protected SpeedType speed
protected double bearingDegs
protected double width
protected double length
protected double crossAngleDegs
protected double curvOff
protected double angleApertureDegs
protected int range
protected short overlapPercentage
protected boolean squareCurve
protected boolean firstCurveRight
protected InteractionAdapter adapter
protected java.awt.geom.Point2D lastDragPoint
protected boolean editing
protected java.util.Vector<double[]> points
public java.lang.String getType()
Maneuver
protected ManeuverLocation calculatePosition()
public void loadManeuverFromXML(java.lang.String xml)
Maneuver
loadManeuverFromXML
in class Maneuver
public java.lang.Object clone()
Maneuver
public org.dom4j.Document getManeuverAsDocument(java.lang.String rootElementName)
Maneuver
getManeuverAsDocument
in class Maneuver
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 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 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 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 void setActive(boolean mode, StateRenderer2D source)
setActive
in interface StateRendererInteraction
public ManeuverLocation getManeuverLocation()
LocatedManeuver
getManeuverLocation
in interface LocatedManeuver
public ManeuverLocation getStartLocation()
LocatedManeuver
getStartLocation
in interface LocatedManeuver
public ManeuverLocation getEndLocation()
LocatedManeuver
getEndLocation
in interface LocatedManeuver
public void setManeuverLocation(ManeuverLocation location)
LocatedManeuver
setManeuverLocation
in interface LocatedManeuver
location
- 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 java.util.List<double[]> getPathPoints()
getPathPoints
in interface PathProvider
public java.util.List<LocationType> getPathLocations()
getPathLocations
in interface PathProvider
public double getBearingDegs()
public void setBearingDegs(double bearingDegs)
bearingDegs
- the bearingDegs to setpublic double getWidth()
public short getOverlapPercent()
public double getCurvOff()
public boolean isSquareCurve()
public double getCrossAngleDegs()
public double getAngleApertureDegs()
public int getRange()
public void paintOnMap(java.awt.Graphics2D g2d, PlanElement planElement, StateRenderer2D renderer)
paintOnMap
in class Maneuver
public pt.lsts.imc.IMCMessage serializeToIMC()
serializeToIMC
in interface IMCSerialization
public void parseIMCMessage(pt.lsts.imc.IMCMessage message)
parseIMCMessage
in interface IMCSerialization
protected java.util.Vector<com.l2fprod.common.propertysheet.DefaultProperty> additionalProperties()
additionalProperties
in class Maneuver
public java.lang.String validateLength(double value)
public java.lang.String validateWidth(double value)
public void setProperties(com.l2fprod.common.propertysheet.Property[] properties)
setProperties
in interface PropertiesProvider
setProperties
in class Maneuver
public double getCompletionTime(LocationType initialPosition)
getCompletionTime
in interface StatisticsProvider
public double getDistanceTravelled(LocationType initialPosition)
getDistanceTravelled
in interface StatisticsProvider
public double getMaxDepth()
getMaxDepth
in interface StatisticsProvider
public double getMinDepth()
getMinDepth
in interface StatisticsProvider
public java.lang.String getTooltipText()
getTooltipText
in class Maneuver
public void setAssociatedSwitch(ToolbarSwitch tswitch)
setAssociatedSwitch
in interface StateRendererInteraction
public void paintInteraction(java.awt.Graphics2D g, StateRenderer2D source)
paintInteraction
in interface StateRendererInteraction
public java.util.Collection<ManeuverLocation> getWaypoints()
getWaypoints
in interface LocatedManeuver
public SpeedType getSpeed()
getSpeed
in interface ManeuverWithSpeed
public void setSpeed(SpeedType speed)
ManeuverWithSpeed
setSpeed
in interface ManeuverWithSpeed
public static void main(java.lang.String[] args)
Copyright © 2004-2020 FEUP-LSTS and Neptus developers. All Rights Reserved.