public class

PopupDrawInfo

extends Object
java.lang.Object
   ↳ com.carto.ui.PopupDrawInfo

Class Overview

A container class that provides information how to draw the popup.

Summary

Public Constructors
PopupDrawInfo(ScreenPos anchorScreenPos, ScreenBounds screenBounds, Popup popup, float dpToPX)
Constructs a PopupClickInfo object from a click position and a vector element.
Public Methods
synchronized void delete()
boolean equals(Object obj)
Checks if this object is equal to the specified object.
ScreenPos getAnchorScreenPos()
Returns the screen position of the anchor point of this popup in pixels.
float getDPToPX()
Returns the value used for converting display independent pixels (dp) to pixels (px).
Popup getPopup()
Returns the popup to draw.
ScreenBounds getScreenBounds()
Returns the screen bounds, so that the popup can be clipped if neccessary.
int hashCode()
Returns the hash value of this object.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public PopupDrawInfo (ScreenPos anchorScreenPos, ScreenBounds screenBounds, Popup popup, float dpToPX)

Constructs a PopupClickInfo object from a click position and a vector element.

Parameters
anchorScreenPos The screen position of the anchor point of this popup in pixels.
screenBounds The screen bounds for clipping the popup.
popup The popup on which the click was performed.
dpToPX The value used for converting display independent pixels (dp) to pixels (px).

Public Methods

public synchronized void delete ()

public boolean equals (Object obj)

Checks if this object is equal to the specified object.

Parameters
obj The reference object.
Returns
  • True when objects are equal, false otherwise.

public ScreenPos getAnchorScreenPos ()

Returns the screen position of the anchor point of this popup in pixels.

Returns
  • The screen position of the anchor point of this popup in pixels.

public float getDPToPX ()

Returns the value used for converting display independent pixels (dp) to pixels (px).

Returns
  • The value used for converting display independent pixels (dp) to pixels (px).

public Popup getPopup ()

Returns the popup to draw.

Returns
  • The popup to draw.

public ScreenBounds getScreenBounds ()

Returns the screen bounds, so that the popup can be clipped if neccessary.

Returns
  • The screen bounds in pixels.

public int hashCode ()

Returns the hash value of this object.

Returns
  • The hash value of this object.