public class LabelGraphics extends Object
label
property in CZML.Constructor and Description |
---|
LabelGraphics()
Initializes a new instance.
|
Modifier and Type | Method and Description |
---|---|
CesiumProperty<Color> |
getBackgroundColor()
Gets the color of the background behind the label.
|
CesiumProperty<Rectangular> |
getBackgroundPadding()
Gets the amount of padding between the text and the label's background in each dimension, in pixels.
|
CesiumProperty<Double> |
getDisableDepthTestDistance()
Gets the distance from the camera at which to disable the depth test.
|
CesiumProperty<Bounds> |
getDistanceDisplayCondition()
Gets the distances from the camera at which this label will be displayed.
|
CesiumProperty<Cartesian> |
getEyeOffset()
Gets the label's offset from the origin in eye coordinates.
|
CesiumProperty<Color> |
getFillColor()
Gets the fill color of the label.
|
CesiumProperty<String> |
getFont()
Gets the font of the label.
|
CesiumProperty<CesiumHeightReference> |
getHeightReference()
Gets the height reference of the label.
|
CesiumProperty<CesiumHorizontalOrigin> |
getHorizontalOrigin()
Gets whether the label is left, center, or right-aligned with the origin.
|
CesiumProperty<Color> |
getOutlineColor()
Gets the outline color of the label.
|
CesiumProperty<Double> |
getOutlineWidth()
Gets the outline width of the label.
|
CesiumProperty<Rectangular> |
getPixelOffset()
Gets the label's offset from the origin in pixel coordinates.
|
CesiumProperty<NearFarScalar> |
getPixelOffsetScaleByDistance()
Gets how the label's pixel offset should change based on the label's distance from the camera.
|
CesiumProperty<Double> |
getScale()
Gets the scale of the label text.
|
CesiumProperty<NearFarScalar> |
getScaleByDistance()
Gets how the label's scale should change based on the label's distance from the camera.
|
CesiumProperty<Boolean> |
getShow()
Gets whether or not the label is shown.
|
CesiumProperty<Boolean> |
getShowBackground()
Gets whether or not a background behind the label is shown.
|
CesiumProperty<CesiumLabelStyle> |
getStyle()
Gets the style of the label.
|
CesiumProperty<String> |
getText()
Gets the text of the label.
|
CesiumProperty<NearFarScalar> |
getTranslucencyByDistance()
Gets how the label's translucency should change based on the label's distance from the camera.
|
CesiumProperty<CesiumVerticalOrigin> |
getVerticalOrigin()
Gets whether the label is bottom, center, or top-aligned with the origin.
|
void |
setBackgroundColor(CesiumProperty<Color> value)
Sets the color of the background behind the label.
|
void |
setBackgroundPadding(CesiumProperty<Rectangular> value)
Sets the amount of padding between the text and the label's background in each dimension, in pixels.
|
void |
setDisableDepthTestDistance(CesiumProperty<Double> value)
Sets the distance from the camera at which to disable the depth test.
|
void |
setDistanceDisplayCondition(CesiumProperty<Bounds> value)
Sets the distances from the camera at which this label will be displayed.
|
void |
setEyeOffset(CesiumProperty<Cartesian> value)
Sets the label's offset from the origin in eye coordinates.
|
void |
setFillColor(CesiumProperty<Color> value)
Sets the fill color of the label.
|
void |
setFont(CesiumProperty<String> value)
Sets the font of the label.
|
void |
setHeightReference(CesiumProperty<CesiumHeightReference> value)
Sets the height reference of the label.
|
void |
setHorizontalOrigin(CesiumProperty<CesiumHorizontalOrigin> value)
Sets whether the label is left, center, or right-aligned with the origin.
|
void |
setOutlineColor(CesiumProperty<Color> value)
Sets the outline color of the label.
|
void |
setOutlineWidth(CesiumProperty<Double> value)
Sets the outline width of the label.
|
void |
setPixelOffset(CesiumProperty<Rectangular> value)
Sets the label's offset from the origin in pixel coordinates.
|
void |
setPixelOffsetScaleByDistance(CesiumProperty<NearFarScalar> value)
Sets how the label's pixel offset should change based on the label's distance from the camera.
|
void |
setScale(CesiumProperty<Double> value)
Sets the scale of the label text.
|
void |
setScaleByDistance(CesiumProperty<NearFarScalar> value)
Sets how the label's scale should change based on the label's distance from the camera.
|
void |
setShow(CesiumProperty<Boolean> value)
Sets whether or not the label is shown.
|
void |
setShowBackground(CesiumProperty<Boolean> value)
Sets whether or not a background behind the label is shown.
|
void |
setStyle(CesiumProperty<CesiumLabelStyle> value)
Sets the style of the label.
|
void |
setText(CesiumProperty<String> value)
Sets the text of the label.
|
void |
setTranslucencyByDistance(CesiumProperty<NearFarScalar> value)
Sets how the label's translucency should change based on the label's distance from the camera.
|
void |
setVerticalOrigin(CesiumProperty<CesiumVerticalOrigin> value)
Sets whether the label is bottom, center, or top-aligned with the origin.
|
public final CesiumProperty<Boolean> getShow()
true
.public final void setShow(CesiumProperty<Boolean> value)
true
.public final CesiumProperty<String> getText()
\n
) indicates line breaks.public final void setText(CesiumProperty<String> value)
\n
) indicates line breaks.public final CesiumProperty<String> getFont()
public final void setFont(CesiumProperty<String> value)
public final CesiumProperty<CesiumLabelStyle> getStyle()
CesiumLabelStyle.FILL
.public final void setStyle(CesiumProperty<CesiumLabelStyle> value)
CesiumLabelStyle.FILL
.public final CesiumProperty<Double> getScale()
public final void setScale(CesiumProperty<Double> value)
public final CesiumProperty<Boolean> getShowBackground()
false
.public final void setShowBackground(CesiumProperty<Boolean> value)
false
.public final CesiumProperty<Color> getBackgroundColor()
rgba(42, 42, 42, 0.8)
,
or, in CSS hexadecimal notation: #2a2a2a
with alpha 0.8.public final void setBackgroundColor(CesiumProperty<Color> value)
rgba(42, 42, 42, 0.8)
,
or, in CSS hexadecimal notation: #2a2a2a
with alpha 0.8.public final CesiumProperty<Rectangular> getBackgroundPadding()
public final void setBackgroundPadding(CesiumProperty<Rectangular> value)
public final CesiumProperty<Rectangular> getPixelOffset()
public final void setPixelOffset(CesiumProperty<Rectangular> value)
public final CesiumProperty<Cartesian> getEyeOffset()
public final void setEyeOffset(CesiumProperty<Cartesian> value)
public final CesiumProperty<CesiumHorizontalOrigin> getHorizontalOrigin()
CesiumHorizontalOrigin.CENTER
.public final void setHorizontalOrigin(CesiumProperty<CesiumHorizontalOrigin> value)
CesiumHorizontalOrigin.CENTER
.public final CesiumProperty<CesiumVerticalOrigin> getVerticalOrigin()
CesiumVerticalOrigin.CENTER
.public final void setVerticalOrigin(CesiumProperty<CesiumVerticalOrigin> value)
CesiumVerticalOrigin.CENTER
.public final CesiumProperty<CesiumHeightReference> getHeightReference()
CesiumHeightReference.NONE
.public final void setHeightReference(CesiumProperty<CesiumHeightReference> value)
CesiumHeightReference.NONE
.public final CesiumProperty<Color> getFillColor()
Style
(get
/ set
) is CesiumLabelStyle.FILL
or
CesiumLabelStyle.FILL_AND_OUTLINE
.
If not specified, the default is White
(get
).public final void setFillColor(CesiumProperty<Color> value)
Style
(get
/ set
) is CesiumLabelStyle.FILL
or
CesiumLabelStyle.FILL_AND_OUTLINE
.
If not specified, the default is White
(get
).public final CesiumProperty<Color> getOutlineColor()
Style
(get
/ set
) is CesiumLabelStyle.OUTLINE
or
CesiumLabelStyle.FILL_AND_OUTLINE
.
If not specified, the default is Black
(get
).public final void setOutlineColor(CesiumProperty<Color> value)
Style
(get
/ set
) is CesiumLabelStyle.OUTLINE
or
CesiumLabelStyle.FILL_AND_OUTLINE
.
If not specified, the default is Black
(get
).public final CesiumProperty<Double> getOutlineWidth()
Style
(get
/ set
) is CesiumLabelStyle.OUTLINE
or
CesiumLabelStyle.FILL_AND_OUTLINE
.
If not specified, the default is 1.0.public final void setOutlineWidth(CesiumProperty<Double> value)
Style
(get
/ set
) is CesiumLabelStyle.OUTLINE
or
CesiumLabelStyle.FILL_AND_OUTLINE
.
If not specified, the default is 1.0.public final CesiumProperty<NearFarScalar> getTranslucencyByDistance()
public final void setTranslucencyByDistance(CesiumProperty<NearFarScalar> value)
public final CesiumProperty<NearFarScalar> getPixelOffsetScaleByDistance()
public final void setPixelOffsetScaleByDistance(CesiumProperty<NearFarScalar> value)
public final CesiumProperty<NearFarScalar> getScaleByDistance()
public final void setScaleByDistance(CesiumProperty<NearFarScalar> value)
public final CesiumProperty<Bounds> getDistanceDisplayCondition()
public final void setDistanceDisplayCondition(CesiumProperty<Bounds> value)
public final CesiumProperty<Double> getDisableDepthTestDistance()
Double.POSITIVE_INFINITY
, the depth test is never applied.
If not specified, the default is 0.0.public final void setDisableDepthTestDistance(CesiumProperty<Double> value)
Double.POSITIVE_INFINITY
, the depth test is never applied.
If not specified, the default is 0.0.