Class ShapeEditor.ControlPointMarker

  • All Implemented Interfaces:
    Marker
    Enclosing class:
    ShapeEditor

    protected static class ShapeEditor.ControlPointMarker
    extends BasicMarker
    Represents editor control points.
    • Field Detail

      • id

        protected int id
        The control point's ID, which is typically its list index when the shape has a list of locations.
      • leg

        protected int leg
        Identifies individual track boxes.
      • purpose

        protected java.lang.String purpose
        Indicates the feature the control point affects.
      • size

        protected java.lang.Double size
        Indicates size (in meters) if this control point affects a size of the shape, otherwise null.
      • rotation

        protected Angle rotation
        Indicates angle if this control point affects an angle associated with the shape, otherwise null.
    • Constructor Detail

      • ControlPointMarker

        public ControlPointMarker​(Position position,
                                  MarkerAttributes attrs,
                                  int id,
                                  java.lang.String purpose)
      • ControlPointMarker

        public ControlPointMarker​(Position position,
                                  MarkerAttributes attrs,
                                  int id,
                                  int leg,
                                  java.lang.String purpose)
    • Method Detail

      • getId

        public int getId()
      • getLeg

        public int getLeg()
      • getPurpose

        public java.lang.String getPurpose()
      • setSize

        public void setSize​(double size)
      • getSize

        public java.lang.Double getSize()
      • setRotation

        public void setRotation​(Angle rotation)
      • getRotation

        public Angle getRotation()