Enum Class SeriesInteger
- All Implemented Interfaces:
IPropCnrInteger, Serializable, Comparable<SeriesInteger>, Constable
The Series integer settings the can be set or retrieved: the window of a live series, see
Series.appendLive(double...). Both are server-side settings, read when live points are appended; the client ignores them.- Author:
- Christopher Mindus
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionLive window size in points: when more points than this are present after an append, the oldest ones are removed.Live window size in seconds: points appended longer ago than this are removed at the next append (orSeries.applyLiveWindow()).Method Summary
Modifier and TypeMethodDescriptionintGets the default value when the property is not set.Returns the name of the property, usually starting with '$'.voidValidates a new value.static SeriesIntegerReturns the enum constant of this class with the specified name.static SeriesInteger[]values()Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
LIVE_MAX_POINTS
Live window size in points: when more points than this are present after an append, the oldest ones are removed. Zero means no limit by count.Default is 0.
LIVE_MAX_SECONDS
Live window size in seconds: points appended longer ago than this are removed at the next append (orSeries.applyLiveWindow()). A value not added bySeries.appendLive(double...)has no append time and counts as older than any window. Zero means no limit by age.Default is 0.
Method Details
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
getDefaultValue
public int getDefaultValue()Gets the default value when the property is not set.- Specified by:
getDefaultValuein interfaceIPropCnrInteger
getPropName
Returns the name of the property, usually starting with '$'.- Specified by:
getPropNamein interfaceIPropCnrInteger
validate
Validates a new value.Overridden to provide validation for negative values.
- Specified by:
validatein interfaceIPropCnrInteger- Parameters:
pc- The property container that will be set.value- The new value to validate.- Throws:
PropValidateException- If the value is negative.