com.supermap.mapping
Class CallOut
- java.lang.Object
-
- com.supermap.mapping.CallOut
-
public class CallOut extends java.lang.Object
The CallOut class.
-
-
Constructor Summary
Constructors Constructor and Description CallOut(android.content.Context context)
Initialize a new CallOut object with the parameters specified.CallOut(android.content.Context context, android.view.View contentView)
Initialize a new CallOut object with the parameters specified.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
dispose()
Disposes the resources occupied by the object.double
getLocationX()
Get the display coordinate x of the CallOut.double
getLocationY()
Get the display coordinate y of the CallOut.CalloutAlignment
getStyle()
Get the justification of CallOut.void
setBackground(int startColor, int endColor)
Set the background color of the CallOut.void
setContentView(android.view.View contentView)
Set the display content.void
setCustomize(boolean arg0)
Sets whether to customize the background.void
setLocation(double x, double y)
Set the icon to display of the CallOut.void
setStyle(CalloutAlignment style)
Set the justification of CallOut.
-
-
-
Constructor Detail
-
CallOut
public CallOut(android.content.Context context)
Initialize a new CallOut object with the parameters specified.- Parameters:
context
- Android context environment.
-
CallOut
public CallOut(android.content.Context context, android.view.View contentView)
Initialize a new CallOut object with the parameters specified.- Parameters:
context
- Android context environment.contentView
- The view to display.
-
-
Method Detail
-
setContentView
public void setContentView(android.view.View contentView)
Set the display content.- Parameters:
contentView
- The view to display.
-
setStyle
public void setStyle(CalloutAlignment style)
Set the justification of CallOut.- Parameters:
style
- Set the justification of CallOut.
-
getStyle
public CalloutAlignment getStyle()
Get the justification of CallOut.- Returns:
- The justification of CallOut.
-
setBackground
public void setBackground(int startColor, int endColor)
Set the background color of the CallOut.- Parameters:
startColor
- Start Color.endColor
- End Color.
-
setCustomize
public void setCustomize(boolean arg0)
Sets whether to customize the background.- Parameters:
arg0
- A boolean, whether to customize the background.True, that the custom background,Otherwise false.
-
setLocation
public void setLocation(double x, double y)
Set the icon to display of the CallOut.- Parameters:
x
- The geographic coordinates x of the CallOut.y
- The geographic coordinates Y of the CallOut.
-
getLocationX
public double getLocationX()
Get the display coordinate x of the CallOut.- Returns:
- The display coordinate x of the CallOut.
-
getLocationY
public double getLocationY()
Get the display coordinate y of the CallOut.- Returns:
- The display coordinate y of the CallOut.
-
dispose
public void dispose()
Disposes the resources occupied by the object. After calling this method, this object will not be usable.
-
-