public class PlacemarkAttributes
extends java.lang.Object
Placemark
shapes.Constructor and Description |
---|
PlacemarkAttributes()
Constructs a placemark attributes bundle.
|
PlacemarkAttributes(PlacemarkAttributes attributes)
Constructs a placemark attribute bundle from the specified attributes.
|
Modifier and Type | Method and Description |
---|---|
static PlacemarkAttributes |
createWithImage(ImageSource imageSource) |
static PlacemarkAttributes |
createWithImageAndLeader(ImageSource imageSource) |
boolean |
equals(java.lang.Object o) |
Color |
getImageColor()
Returns the image color.
|
Offset |
getImageOffset()
Returns the location within the placemark's image to align with the placemark's geographic position.
|
double |
getImageScale()
Returns the amount to scale the placemark's image.
|
ImageSource |
getImageSource()
Returns the source of the placemark's image.
|
java.lang.Object |
getLabelAttributes()
Returns the attributes to apply to the placemark's label, if any.
|
ShapeAttributes |
getLeaderAttributes()
Returns the attributes to apply to the leader line if it's drawn.
|
double |
getMinimumImageScale()
Returns the minimum amount to scale the placemark's image.
|
int |
hashCode() |
boolean |
isDepthTest()
Returns whether the placemark should be depth-tested against other objects in the scene.
|
boolean |
isDrawLeader()
Returns whether to draw a line from the placemark's geographic position to the ground.
|
PlacemarkAttributes |
set(PlacemarkAttributes attributes) |
PlacemarkAttributes |
setDepthTest(boolean depthTest)
Sets whether the placemark should be depth-tested against other objects in the scene.
|
PlacemarkAttributes |
setDrawLeader(boolean drawLeader)
Sets whether to draw a line from the placemark's geographic position to the ground.
|
PlacemarkAttributes |
setImageColor(Color imageColor)
Sets the image color.
|
PlacemarkAttributes |
setImageOffset(Offset imageOffset)
Sets the location within the placemark's image to align with the placemark's geographic position.
|
PlacemarkAttributes |
setImageScale(double imageScale)
Sets the amount to scale the placemark's image.
|
PlacemarkAttributes |
setImageSource(ImageSource imageSource) |
PlacemarkAttributes |
setLabelAttributes(TextAttributes labelAttributes)
Sets the attributes to apply to the placemark's label, if any.
|
PlacemarkAttributes |
setLeaderAttributes(ShapeAttributes leaderAttributes)
Sets the attributes to apply to the leader line if it's drawn.
|
PlacemarkAttributes |
setMinimumImageScale(double minimumImageScale)
Sets the minimum amount to scale the placemark's image when
Placemark.isEyeDistanceScaling() is true. |
public PlacemarkAttributes()
public PlacemarkAttributes(PlacemarkAttributes attributes)
attributes
- The attributes to be copied.java.lang.IllegalArgumentException
- If the location is nullpublic PlacemarkAttributes set(PlacemarkAttributes attributes)
public static PlacemarkAttributes createWithImage(ImageSource imageSource)
public static PlacemarkAttributes createWithImageAndLeader(ImageSource imageSource)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ImageSource getImageSource()
getImageScale()
property.public PlacemarkAttributes setImageSource(ImageSource imageSource)
public Color getImageColor()
public PlacemarkAttributes setImageColor(Color imageColor)
imageColor
- The new image colorpublic Offset getImageOffset()
public PlacemarkAttributes setImageOffset(Offset imageOffset)
imageOffset
- The new location used to align the placemark's image.public double getImageScale()
public PlacemarkAttributes setImageScale(double imageScale)
imageScale
- The new image scale value.public double getMinimumImageScale()
Placemark.isEyeDistanceScaling()
is true,
this value controls the minimum size of the rendered placemark. A value of 0 allows the placemark to disappear.public PlacemarkAttributes setMinimumImageScale(double minimumImageScale)
Placemark.isEyeDistanceScaling()
is true. This
value controls the minimum size of the rendered placemark. A value of 0 allows the placemark to disappear.minimumImageScale
- The new image scale value.public boolean isDrawLeader()
public PlacemarkAttributes setDrawLeader(boolean drawLeader)
drawLeader
- The new draw leader-line setting.public boolean isDepthTest()
public PlacemarkAttributes setDepthTest(boolean depthTest)
depthTest
- The new depth test setting.public java.lang.Object getLabelAttributes()
public PlacemarkAttributes setLabelAttributes(TextAttributes labelAttributes)
labelAttributes
- The new label attributes for the placemark. May be null.public ShapeAttributes getLeaderAttributes()
public PlacemarkAttributes setLeaderAttributes(ShapeAttributes leaderAttributes)
leaderAttributes
- The new leader-line attributes. May be null.