public class Popup
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
short |
animationState |
static int |
AUTO_HEIGHT |
static int |
AUTO_WIDTH |
int |
height |
static int |
POPUP_STYLE_DEFAULT |
static int |
POPUP_STYLE_IMAGE |
static int |
POPUP_STYLE_SIMPLE |
boolean |
requireReload |
static short |
RESOURCE_NO_IMG |
static short |
RESOURCE_RESOURCEID |
static short |
RESOURCE_URL |
short |
resourceType |
int |
width |
Constructor and Description |
---|
Popup(Bitmap image) |
Popup(Resources resources) |
Popup(Resources resources,
java.lang.String title) |
Popup(Resources resources,
java.lang.String title,
java.lang.String text) |
Modifier and Type | Method and Description |
---|---|
int |
calculateInSampleSize(BitmapFactory.Options options,
int reqWidth,
int reqHeight) |
Bitmap |
createPopup(int popupWidth,
int popupHeight,
IRequestRender requestRender) |
Bitmap |
decodeSampledBitmapFromResource(Resources res,
int resId,
int reqWidth,
int reqHeight) |
java.lang.String |
getEmail() |
float[] |
getHighlightBoxColor() |
Bitmap |
getImage(int reqWidth,
int reqHeight,
boolean refresh,
IRequestRender requestRender)
Please call .recycle() of this bitmap after finish working with it.
|
java.lang.String |
getLink() |
IPopupListener |
getListener() |
int |
getPopupStyle() |
java.lang.String |
getSubtitle() |
java.lang.String |
getTel() |
java.lang.String |
getText() |
java.lang.String |
getTitle() |
java.lang.String |
getWarning() |
boolean |
isRequireRecycle() |
void |
setEmail(java.lang.String email) |
void |
setHighlightBoxColor(float[] highlightBoxColor)
set highlighted box's color which is locate under subtitle
|
void |
setImage(Resources resources,
int resourceId) |
void |
setImage(java.lang.String url) |
void |
setLink(java.lang.String link) |
void |
setListener(IPopupListener listener) |
void |
setPopupStyle(int popupStyle) |
void |
setRequireRecycle(boolean requiredRecycle)
Set to true if you want map to recycle bitmap source in this popup after map no longer need it.
|
void |
setSubtitle(java.lang.String subtitle) |
void |
setTel(java.lang.String tel) |
void |
setText(java.lang.String text) |
void |
setTitle(java.lang.String title) |
void |
setWarning(java.lang.String warning) |
public static final int POPUP_STYLE_SIMPLE
public static final int POPUP_STYLE_DEFAULT
public static final int POPUP_STYLE_IMAGE
public static final int AUTO_WIDTH
public static final int AUTO_HEIGHT
public static final short RESOURCE_NO_IMG
public static final short RESOURCE_RESOURCEID
public static final short RESOURCE_URL
public short resourceType
public int width
public int height
public boolean requireReload
public short animationState
public Popup(Resources resources)
public Popup(Resources resources, java.lang.String title)
public Popup(Resources resources, java.lang.String title, java.lang.String text)
public Popup(Bitmap image)
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
public java.lang.String getText()
public void setText(java.lang.String text)
public java.lang.String getSubtitle()
public void setSubtitle(java.lang.String subtitle)
public java.lang.String getWarning()
public void setWarning(java.lang.String warning)
public java.lang.String getEmail()
public void setEmail(java.lang.String email)
public java.lang.String getLink()
public void setLink(java.lang.String link)
public java.lang.String getTel()
public void setTel(java.lang.String tel)
public void setHighlightBoxColor(float[] highlightBoxColor)
highlightBoxColor
- float[4] in A,R,G,B format. Min-max value for each color is 0-255 and 0-1 for alpha channel.public float[] getHighlightBoxColor()
public Bitmap createPopup(int popupWidth, int popupHeight, IRequestRender requestRender)
public Bitmap getImage(int reqWidth, int reqHeight, boolean refresh, IRequestRender requestRender)
public void setImage(Resources resources, int resourceId)
public void setImage(java.lang.String url)
public Bitmap decodeSampledBitmapFromResource(Resources res, int resId, int reqWidth, int reqHeight)
public int calculateInSampleSize(BitmapFactory.Options options, int reqWidth, int reqHeight)
public int getPopupStyle()
public void setPopupStyle(int popupStyle)
public boolean isRequireRecycle()
public void setRequireRecycle(boolean requiredRecycle)
requiredRecycle
- public IPopupListener getListener()
public void setListener(IPopupListener listener)