@DOMObjectAttribute @DOMNameAttribute(name="SVGAngle") public class SVGAngle extends SVGValueType
The SVGAngle interface corresponds to the angle basic data type.
Modifier and Type | Field and Description |
---|---|
static int |
SVG_ANGLETYPE_DEG
The unit type was explicitly set to degrees.
|
static int |
SVG_ANGLETYPE_GRAD
The unit type is radians.
|
static int |
SVG_ANGLETYPE_RAD
The unit type is radians.
|
static int |
SVG_ANGLETYPE_UNKNOWN
The unit type is not one of predefined unit types.
|
static int |
SVG_ANGLETYPE_UNSPECIFIED
No unit type was provided (i.e., a unitless value was specified).
|
flags
PropertyChanged
Constructor and Description |
---|
SVGAngle(com.aspose.html.BrowsingContext context) |
SVGAngle(IBrowsingContext context,
float value,
int unitType)
Initializes a new instance of the
SVGAngle class. |
Modifier and Type | Method and Description |
---|---|
void |
convertToSpecifiedUnits(int unitType)
Preserve the same underlying stored value, but reset the stored unit identifier to the given unitType.
|
Object |
deepClone()
Clones this instance.
|
int |
getUnitType()
The type of the value as specified by one of the SVG_ANGLETYPE_* constants defined on this interface.
|
float |
getValue()
The angle value as a floating point value, in degrees.
|
String |
getValueAsString()
The angle value as a string value, in the units expressed by unitType.
|
float |
getValueInSpecifiedUnits()
The angle value as a floating point value, in the units expressed by unitType.
|
void |
newValueSpecifiedUnits(int newUnitType,
float valueInSpecifiedUnits)
Reset the value as a number with an associated unitType, thereby replacing the values for all of the attributes on the object.
|
void |
setValue(float value)
The angle value as a floating point value, in degrees.
|
void |
setValueAsString(String value)
The angle value as a string value, in the units expressed by unitType.
|
void |
setValueInSpecifiedUnits(float value)
The angle value as a floating point value, in the units expressed by unitType.
|
asReadOnly, dispose, getKey, isDetached, isObserverSuppressed, isReadOnly, notifyPropertyChanged, setDetached, setObserverSuppressed, toString
fireNotifyPropertyChanged, getCurrentValues, getRuntimesBinding, setCurrentValues, setField, setRuntimesBinding
@DOMNameAttribute(name="SVG_ANGLETYPE_UNKNOWN") public static final int SVG_ANGLETYPE_UNKNOWN
The unit type is not one of predefined unit types. It is invalid to attempt to define a new value of this type or to attempt to switch an existing value to this type.
@DOMNameAttribute(name="SVG_ANGLETYPE_UNSPECIFIED") public static final int SVG_ANGLETYPE_UNSPECIFIED
No unit type was provided (i.e., a unitless value was specified). For angles, a unitless value is treated the same as if degrees were specified.
@DOMNameAttribute(name="SVG_ANGLETYPE_DEG") public static final int SVG_ANGLETYPE_DEG
The unit type was explicitly set to degrees.
@DOMNameAttribute(name="SVG_ANGLETYPE_RAD") public static final int SVG_ANGLETYPE_RAD
The unit type is radians.
@DOMNameAttribute(name="SVG_ANGLETYPE_GRAD") public static final int SVG_ANGLETYPE_GRAD
The unit type is radians.
public SVGAngle(com.aspose.html.BrowsingContext context)
public SVGAngle(IBrowsingContext context, float value, int unitType)
Initializes a new instance of the SVGAngle
class.
context
- The context.value
- The value.unitType
- Type of the unit.@DOMNameAttribute(name="unitType") public int getUnitType()
The type of the value as specified by one of the SVG_ANGLETYPE_* constants defined on this interface.
Value: The type of the unit.@DOMNameAttribute(name="value") public float getValue()
The angle value as a floating point value, in degrees. Setting this attribute will cause valueInSpecifiedUnits and valueAsString to be updated automatically to reflect this setting.
DOMException
- Code DOMException.NO_MODIFICATION_ALLOWED_ERR
Raised when the angle corresponds to a read only attribute or when the object itself is read only.
Value:
The value.@DOMNameAttribute(name="value") public void setValue(float value)
The angle value as a floating point value, in degrees. Setting this attribute will cause valueInSpecifiedUnits and valueAsString to be updated automatically to reflect this setting.
DOMException
- Code DOMException.NO_MODIFICATION_ALLOWED_ERR
Raised when the angle corresponds to a read only attribute or when the object itself is read only.
Value:
The value.@DOMNameAttribute(name="valueInSpecifiedUnits") public float getValueInSpecifiedUnits()
The angle value as a floating point value, in the units expressed by unitType. Setting this attribute will cause value and valueAsString to be updated automatically to reflect this setting.
DOMException
- Code DOMException.NO_MODIFICATION_ALLOWED_ERR
Raised when the angle corresponds to a read only attribute or when the object itself is read only.
Value:
The value in specified units.@DOMNameAttribute(name="valueInSpecifiedUnits") public void setValueInSpecifiedUnits(float value)
The angle value as a floating point value, in the units expressed by unitType. Setting this attribute will cause value and valueAsString to be updated automatically to reflect this setting.
DOMException
- Code DOMException.NO_MODIFICATION_ALLOWED_ERR
Raised when the angle corresponds to a read only attribute or when the object itself is read only.
Value:
The value in specified units.@DOMNameAttribute(name="valueAsString") public String getValueAsString()
The angle value as a string value, in the units expressed by unitType. Setting this attribute will cause value, valueInSpecifiedUnits and unitType to be updated automatically to reflect this setting.
DOMException
- Code DOMException.SYNTAX_ERR
Raised if the assigned string cannot be parsed as a valid angle.DOMException
- Code DOMException.NO_MODIFICATION_ALLOWED_ERR
Raised when the angle corresponds to a read only attribute or when the object itself is read only.
Value:
The value as string.@DOMNameAttribute(name="valueAsString") public void setValueAsString(String value)
The angle value as a string value, in the units expressed by unitType. Setting this attribute will cause value, valueInSpecifiedUnits and unitType to be updated automatically to reflect this setting.
DOMException
- Code DOMException.SYNTAX_ERR
Raised if the assigned string cannot be parsed as a valid angle.DOMException
- Code DOMException.NO_MODIFICATION_ALLOWED_ERR
Raised when the angle corresponds to a read only attribute or when the object itself is read only.
Value:
The value as string.@DOMNameAttribute(name="newValueSpecifiedUnits") public void newValueSpecifiedUnits(int newUnitType, float valueInSpecifiedUnits)
Reset the value as a number with an associated unitType, thereby replacing the values for all of the attributes on the object.
newUnitType
- The unit type for the value (e.g., SVG_ANGLETYPE_DEG).valueInSpecifiedUnits
- The angle value.DOMException
- Code DOMException.NOT_SUPPORTED_ERR
Raised if unitType is SVG_ANGLETYPE_UNKNOWN or not a valid unit type constant (one of the other SVG_ANGLETYPE_* constants defined on this interface).DOMException
- Code DOMException.NO_MODIFICATION_ALLOWED_ERR
Raised when the angle corresponds to a read only attribute or when the object itself is read only.@DOMNameAttribute(name="convertToSpecifiedUnits") public void convertToSpecifiedUnits(int unitType)
Preserve the same underlying stored value, but reset the stored unit identifier to the given unitType. Object attributes unitType, valueInSpecifiedUnits and valueAsString might be modified as a result of this method.
unitType
- The unit type to switch to (e.g., SVG_ANGLETYPE_DEG).DOMException
- Code DOMException.NOT_SUPPORTED_ERR
Raised if unitType is SVG_ANGLETYPE_UNKNOWN or not a valid unit type constant (one of the other SVG_ANGLETYPE_* constants defined on this interface).DOMException
- Code DOMException.NO_MODIFICATION_ALLOWED_ERR
Raised when the angle corresponds to a read only attribute or when the object itself is read only.public Object deepClone()
Clones this instance.
deepClone
in class SVGValueType