Package GPS

Class ShipDimensionsDrawing

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
AirgunDimensionsDrawing

public class ShipDimensionsDrawing extends JPanel
Class to draw a simple ship, to show the layout of the standard AIS dimensions.

A = distance from bow to reference position

B = distance from stern to reference position

C = distance from port side to reference position

D = distance from startboard side to reference position

Make the whole thing look similar to the diagram on p61 of the AIS manual

Author:
Doug
See Also:
  • Constructor Details

  • Method Details

    • setDimensions

      public void setDimensions(double a, double b, double c, double d)
    • getScale

      public int getScale()
    • drawHarrow

      public void drawHarrow(Graphics g, int x1, int y, int x2, String txt)
    • drawVarrow

      public void drawVarrow(Graphics g, int x, int y1, int y2, String txt)
    • getBorderPixels

      public int getBorderPixels()
    • getAntennaPos

      public Point getAntennaPos()
    • getArrowHead

      public int getArrowHead()