Package com.massifmaps.ui
Class PopupDrawInfo
java.lang.Object
com.massifmaps.ui.PopupDrawInfo
A container class that provides information how to draw the popup.
-
Constructor Summary
ConstructorsConstructorDescriptionPopupDrawInfo(ScreenPos anchorScreenPos, ScreenBounds screenBounds, Popup popup, float dpToPX) Constructs a PopupClickInfo object from a click position and a vector element. -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if this object is equal to the specified object.Returns the screen position of the anchor point of this popup in pixels.floatReturns the value used for converting display independent pixels (dp) to pixels (px).getPopup()Returns the popup to draw.Returns the screen bounds, so that the popup can be clipped if neccessary.inthashCode()Returns the hash value of this object.
-
Constructor Details
-
PopupDrawInfo
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).
-
-
Method Details
-
equals
Checks if this object is equal to the specified object. -
hashCode
public int hashCode()Returns the hash value of this object. -
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.
-
getScreenBounds
Returns the screen bounds, so that the popup can be clipped if neccessary.- Returns:
- The screen bounds in pixels.
-
getPopup
Returns the popup to draw.- Returns:
- The popup to draw.
-
getDPToPX
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).
-