Package Map

Class Vessel

All Implemented Interfaces:
Serializable, Cloneable, Icon, ManagedParameters

public class Vessel extends PamSymbol implements Serializable, Cloneable, ManagedParameters
See Also:
  • Field Details

    • vesselColor

      public Color vesselColor
    • shipOutline

      public Coordinate3d[] shipOutline
    • shipPolygon

      public Coordinate3d[] shipPolygon
    • shipPolygonLatLog

      public LatLong[] shipPolygonLatLog
  • Constructor Details

    • Vessel

      public Vessel(Color vesselColor)
  • Method Details

    • setPixelsPerMetre

      public void setPixelsPerMetre(double pixelsPerMetre)
    • setVesselDimension

      public void setVesselDimension(double dimA, double dimB, double dimC, double dimD)
    • setPredictionArrow

      public void setPredictionArrow(int predictionArrow)
    • getShipColor

      public Color getShipColor()
    • setShipColor

      public void setShipColor(Color shipColor)
    • setShipOutline

      public void setShipOutline()
    • drawShip

      public Coordinate3d drawShip(Graphics2D g2d, MapRectProjector rectProj)
      Draw the ship
      Parameters:
      g2d - Graphics context
      rectProj - graphics projector
      Returns:
      3D plot coordinate.
    • drawShip

      public Rectangle drawShip(Graphics g, Point xy, double pixelsPerMetre, double heading)
    • getShipGps

      public GpsData getShipGps(boolean predict)
    • setShipGps

      public void setShipGps(GpsData shipGps)
    • getShipLLD

      public LatLong getShipLLD()
    • getShipPosition

      public Coordinate3d getShipPosition()
    • paintIcon

      public void paintIcon(Component c, Graphics g, int x, int y)
      Specified by:
      paintIcon in interface Icon
      Overrides:
      paintIcon in class PamSymbol
    • getXPoints

      public double[] getXPoints()
      Overrides:
      getXPoints in class PamSymbol
    • getYPoints

      public double[] getYPoints()
      Overrides:
      getYPoints in class PamSymbol
    • getParameterSet

      public PamParameterSet getParameterSet()
      Description copied from interface: ManagedParameters
      Get a set of data that describes all of the parameters in a class
      Specified by:
      getParameterSet in interface ManagedParameters
      Overrides:
      getParameterSet in class PamSymbol
      Returns:
      description of the parameters in a class.