/** * Copies this instance and returns the copy. * @return The copy. */ @Override public LabelCesiumWriter clone() { return new LabelCesiumWriter(this); }
/** * Opens and returns the writer for the {@code backgroundColor} property. The {@code backgroundColor} property defines the color of the background behind the label. If not specified, the default value is [0.165, 0.165, 0.165, 0.8]. */ @Nonnull public final ColorCesiumWriter openBackgroundColorProperty() { openIntervalIfNecessary(); return this.<ColorCesiumWriter> openAndReturn(getBackgroundColorWriter()); }
/** * Opens and returns the writer for the {@code backgroundPadding} property. The {@code backgroundPadding} property defines the amount of padding between the text and the label's background. If not specified, the default value is [7, 5]. */ @Nonnull public final BackgroundPaddingCesiumWriter openBackgroundPaddingProperty() { openIntervalIfNecessary(); return this.<BackgroundPaddingCesiumWriter> openAndReturn(getBackgroundPaddingWriter()); }
/** * Opens and returns the writer for the {@code eyeOffset} property. The {@code eyeOffset} property defines the eye offset of the label, which is the offset in eye coordinates at which to place the label relative to the {@code position} property. Eye coordinates are a left-handed coordinate system where the X-axis points toward the viewer's right, the Y-axis points up, and the Z-axis points into the screen. If not specified, the default value is [0.0, 0.0, 0.0]. */ @Nonnull public final EyeOffsetCesiumWriter openEyeOffsetProperty() { openIntervalIfNecessary(); return this.<EyeOffsetCesiumWriter> openAndReturn(getEyeOffsetWriter()); }
/** * Opens and returns the writer for the {@code disableDepthTestDistance} property. The {@code disableDepthTestDistance} property defines the distance from the camera at which to disable the depth test. This can be used to prevent clipping against terrain, for example. When set to zero, the depth test is always applied. When set to Infinity, the depth test is never applied. If not specified, the default value is 0.0. */ @Nonnull public final DoubleCesiumWriter openDisableDepthTestDistanceProperty() { openIntervalIfNecessary(); return this.<DoubleCesiumWriter> openAndReturn(getDisableDepthTestDistanceWriter()); }
/** * Opens and returns the writer for the {@code distanceDisplayCondition} property. The {@code distanceDisplayCondition} property defines the display condition specifying the distance from the camera at which this label will be displayed. */ @Nonnull public final DistanceDisplayConditionCesiumWriter openDistanceDisplayConditionProperty() { openIntervalIfNecessary(); return this.<DistanceDisplayConditionCesiumWriter> openAndReturn(getDistanceDisplayConditionWriter()); }
/** * Writes a value for the {@code translucencyByDistance} property as a {@code nearFarScalar} value. The {@code translucencyByDistance} property specifies how the label's translucency should change based on the label's distance from the camera. This scalar value should range from 0 to 1. * @param value The value. */ public final void writeTranslucencyByDistanceProperty(@Nonnull NearFarScalar value) { { cesiumlanguagewriter.NearFarScalarCesiumWriter writer = openTranslucencyByDistanceProperty(); try { writer.writeNearFarScalar(value); } finally { DisposeHelper.dispose(writer); } } }
/** * Opens and returns the writer for the {@code font} property. The {@code font} property defines the font to use for the label. If not specified, the default value is 30px sans-serif. */ @Nonnull public final FontCesiumWriter openFontProperty() { openIntervalIfNecessary(); return this.<FontCesiumWriter> openAndReturn(getFontWriter()); }
/** * Opens and returns the writer for the {@code heightReference} property. The {@code heightReference} property defines the height reference of the label, which indicates if the position is relative to terrain or not. If not specified, the default value is NONE. */ @Nonnull public final HeightReferenceCesiumWriter openHeightReferenceProperty() { openIntervalIfNecessary(); return this.<HeightReferenceCesiumWriter> openAndReturn(getHeightReferenceWriter()); }
/** * Opens and returns the writer for the {@code fillColor} property. The {@code fillColor} property defines the fill color of the label. If not specified, the default value is white. */ @Nonnull public final ColorCesiumWriter openFillColorProperty() { openIntervalIfNecessary(); return this.<ColorCesiumWriter> openAndReturn(getFillColorWriter()); }
try { LabelCesiumWriter interval = label.openInterval(); try { NearFarScalarCesiumWriter scaleByDistance = interval.openTranslucencyByDistanceProperty(); try { ArrayList<cesiumlanguagewriter.JulianDate> dates = new ArrayList<cesiumlanguagewriter.JulianDate>();
/** * Writes a value for the {@code translucencyByDistance} property as a {@code reference} value. The {@code translucencyByDistance} property specifies how the label's translucency should change based on the label's distance from the camera. This scalar value should range from 0 to 1. * @param value The earliest date of the interval. */ public final void writeTranslucencyByDistancePropertyReference(String value) { { cesiumlanguagewriter.NearFarScalarCesiumWriter writer = openTranslucencyByDistanceProperty(); try { writer.writeReference(value); } finally { DisposeHelper.dispose(writer); } } }
/** * Writes a value for the {@code translucencyByDistance} property as a {@code reference} value. The {@code translucencyByDistance} property specifies how the label's translucency should change based on the label's distance from the camera. This scalar value should range from 0 to 1. * @param value The reference. */ public final void writeTranslucencyByDistancePropertyReference(Reference value) { { cesiumlanguagewriter.NearFarScalarCesiumWriter writer = openTranslucencyByDistanceProperty(); try { writer.writeReference(value); } finally { DisposeHelper.dispose(writer); } } }
public cesiumlanguagewriter.LabelCesiumWriter invoke() { return new LabelCesiumWriter(LabelPropertyName); } }, false);
/** * Writes a value for the {@code translucencyByDistance} property as a {@code nearFarScalar} value. The {@code translucencyByDistance} property specifies how the label's translucency should change based on the label's distance from the camera. This scalar value should range from 0 to 1. * @param dates The dates at which the value is specified. * @param values The values corresponding to each date. */ public final void writeTranslucencyByDistanceProperty(List<JulianDate> dates, List<NearFarScalar> values) { { cesiumlanguagewriter.NearFarScalarCesiumWriter writer = openTranslucencyByDistanceProperty(); try { writer.writeNearFarScalar(dates, values); } finally { DisposeHelper.dispose(writer); } } }
@Override protected CesiumPropertyWriter<LabelCesiumWriter> createPropertyWriter(String propertyName) { return new LabelCesiumWriter(propertyName); }
/** * Writes a value for the {@code translucencyByDistance} property as a {@code reference} value. The {@code translucencyByDistance} property specifies how the label's translucency should change based on the label's distance from the camera. This scalar value should range from 0 to 1. * @param identifier The identifier of the object which contains the referenced property. * @param propertyNames The hierarchy of properties to be indexed on the referenced object. */ public final void writeTranslucencyByDistancePropertyReference(String identifier, String[] propertyNames) { { cesiumlanguagewriter.NearFarScalarCesiumWriter writer = openTranslucencyByDistanceProperty(); try { writer.writeReference(identifier, propertyNames); } finally { DisposeHelper.dispose(writer); } } }
/** * Writes a value for the {@code translucencyByDistance} property as a {@code reference} value. The {@code translucencyByDistance} property specifies how the label's translucency should change based on the label's distance from the camera. This scalar value should range from 0 to 1. * @param identifier The identifier of the object which contains the referenced property. * @param propertyName The property on the referenced object. */ public final void writeTranslucencyByDistancePropertyReference(String identifier, String propertyName) { { cesiumlanguagewriter.NearFarScalarCesiumWriter writer = openTranslucencyByDistanceProperty(); try { writer.writeReference(identifier, propertyName); } finally { DisposeHelper.dispose(writer); } } }
/** * Writes a value for the {@code translucencyByDistance} property as a {@code nearFarScalar} value. The {@code translucencyByDistance} property specifies how the label's translucency should change based on the label's distance from the camera. This scalar value should range from 0 to 1. * @param nearDistance The lower bound of the camera distance range. * @param nearValue The value to use at the lower bound of the camera distance range. * @param farDistance The upper bound of the camera distance range. * @param farValue The value to use at the upper bound of the camera distance range. */ public final void writeTranslucencyByDistanceProperty(double nearDistance, double nearValue, double farDistance, double farValue) { { cesiumlanguagewriter.NearFarScalarCesiumWriter writer = openTranslucencyByDistanceProperty(); try { writer.writeNearFarScalar(nearDistance, nearValue, farDistance, farValue); } finally { DisposeHelper.dispose(writer); } } }
/** * Writes a value for the {@code translucencyByDistance} property as a {@code nearFarScalar} value. The {@code translucencyByDistance} property specifies how the label's translucency should change based on the label's distance from the camera. This scalar value should range from 0 to 1. * @param dates The dates at which the value is specified. * @param values The values corresponding to each date. * @param startIndex The index of the first element to write. * @param length The number of elements to write. */ public final void writeTranslucencyByDistanceProperty(List<JulianDate> dates, List<NearFarScalar> values, int startIndex, int length) { { cesiumlanguagewriter.NearFarScalarCesiumWriter writer = openTranslucencyByDistanceProperty(); try { writer.writeNearFarScalar(dates, values, startIndex, length); } finally { DisposeHelper.dispose(writer); } } }