Class MapObject

    • Constructor Detail

      • MapObject

        public MapObject()
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns:
        object's name
      • setName

        public void setName​(java.lang.String name)
        Parameters:
        name - new name for the object
      • getColor

        public Color getColor()
        Returns:
        object's color
      • setColor

        public void setColor​(Color color)
        Parameters:
        color - new color for the object
      • getOpacity

        public float getOpacity()
        Returns:
        object's opacity
      • setOpacity

        public void setOpacity​(float opacity)
        Parameters:
        opacity - new opacity value for the object
      • isVisible

        public boolean isVisible()
        Returns:
        whether the object is visible or not
      • setVisible

        public void setVisible​(boolean visible)
        Parameters:
        visible - toggles object's visibility
      • getProperties

        public MapProperties getProperties()
        Returns:
        object's properties set