Class MapCoordinateElement

  • Direct Known Subclasses:
    MapLabel, Marker

    public abstract class MapCoordinateElement
    extends MapElement
    Common base class for elements on the map that have a defined position on the map.
    Author:
    P.J. Meisch ([email protected]).
    • Field Detail

      • position

        protected final javafx.beans.property.SimpleObjectProperty<Coordinate> position
        the coordinate
      • offsetX

        protected final int offsetX
        horizontal offset
      • offsetY

        protected final int offsetY
        the vertical offset
      • cssClass

        protected javafx.beans.property.SimpleStringProperty cssClass
        custom css style name.
    • Constructor Detail

      • MapCoordinateElement

        public MapCoordinateElement()
      • MapCoordinateElement

        public MapCoordinateElement​(int offsetX,
                                    int offsetY)
    • Method Detail

      • getOffsetX

        public int getOffsetX()
      • getOffsetY

        public int getOffsetY()
      • getCssClass

        public java.lang.String getCssClass()
      • setCssClass

        public MapCoordinateElement setCssClass​(java.lang.String cssClass)
        sets the cssClass for the Label
        Parameters:
        cssClass - class name
        Returns:
        this object
      • cssClassProperty

        public javafx.beans.property.SimpleStringProperty cssClassProperty()
      • getId

        public abstract java.lang.String getId()
        Returns:
        the marker's id
      • positionProperty

        public javafx.beans.property.SimpleObjectProperty<Coordinate> positionProperty()
      • setPosition

        public MapCoordinateElement setPosition​(Coordinate position)
        sets the marker's new position
        Parameters:
        position - new position
        Returns:
        this object