# Class PointLayer

java.lang.Object
com.codename1.maps.Coord
com.codename1.maps.layers.PointLayer

All Implemented Interfaces:
  `Layer`

public class PointLayer extends Coord implements Layer
Do not use this layer directly, you need to add this layer into a PointsLayer class instance in order for it to work as expected!

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `PointLayer(Coord position, String name, Image icon)`
  Creates a Point Layer.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `BoundingBox`
  `boundingBox()`
  The bounding box of this Layer
  `boolean`
  `equals(Object o)`
  `Image`
  `getIcon()`
  Gets the point Icon
  `String`
  `getName()`
  Gets the Point name
  `int`
  `hashCode()`
  `void`
  `paint(Graphics g, Tile tile)`
  Paints the Layer on the given Graphics
  `void`
  `setDisplayName(boolean displayName)`
  This method declares if the point name should be displayed
  `void`
  `setIcon(Image icon)`
  Sets the display icon
  `String`
  `toString()`

  ### Methods inherited from class Coord

  `getLatitude, getLongitude, isProjected, setLatitude, setLongitude, setProjected, translate, translate`

  ### Methods inherited from class Object

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### PointLayer

    public PointLayer(Coord position, String name, Image icon)

    Creates a Point Layer.

    ###### Parameters

    - `position`: the position of the Point

    - `getName`: the getName of the Point

    - `icon`: icon of the Point

- ## Method Details

  - ### getName

    public String getName()

    Gets the Point name

    ###### Returns

    the Point name

    Specified by:
      `getName` in interface `Layer`

  - ### getIcon

    public Image getIcon()

    Gets the point Icon

    ###### Returns

    the point Icon

  - ### setIcon

    public void setIcon(Image icon)

    Sets the display icon

    ###### Parameters

    - `icon`

  - ### setDisplayName

    public void setDisplayName(boolean displayName)

    This method declares if the point name should be displayed

    ###### Parameters

    - `displayName`

  - ### equals

    public boolean equals(Object o)
    Description copied from class: `Coord`
    Overrides:
      `equals` in class `Coord`

  - ### hashCode

    public int hashCode()
    Overrides:
      `hashCode` in class `Coord`

  - ### paint

    public void paint(Graphics g, Tile tile)

    Paints the Layer on the given Graphics

    ###### Parameters

    - `g`: a Graphics Object to paint on

    - `screenTile`: the screen tile

    Specified by:
      `paint` in interface `Layer`

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Coord`

  - ### boundingBox

    public BoundingBox boundingBox()

    The bounding box of this Layer

    ###### Returns

    the Layer bounding box

    Specified by:
      `boundingBox` in interface `Layer`