org.epics.pvmanager.data
Class SimpleValueFormat
java.lang.Object
java.text.Format
org.epics.pvmanager.data.ValueFormat
org.epics.pvmanager.data.SimpleValueFormat
- All Implemented Interfaces:
- Serializable, Cloneable
public class SimpleValueFormat
- extends ValueFormat
Default implementation for formatting.
- Author:
- carcassi
- See Also:
- Serialized Form
Constructor Summary |
SimpleValueFormat(int maxElements)
Formats any scalar and array, by using the server side formatting
and limiting the elements of the array displayed to maxElements. |
SimpleValueFormat
public SimpleValueFormat(int maxElements)
- Formats any scalar and array, by using the server side formatting
and limiting the elements of the array displayed to maxElements.
- Parameters:
maxElements
- maximum number of array elements converted to string
format
protected StringBuffer format(Scalar<?> scalar,
StringBuffer toAppendTo,
FieldPosition pos)
- Description copied from class:
ValueFormat
- Formats a scalar.
- Specified by:
format
in class ValueFormat
- Parameters:
scalar
- data object to formattoAppendTo
- output buffer
- Returns:
- the output buffer
format
protected StringBuffer format(Array<?> array,
StringBuffer toAppendTo,
FieldPosition pos)
- Description copied from class:
ValueFormat
- Formats an array.
- Specified by:
format
in class ValueFormat
- Parameters:
array
- data object to formattoAppendTo
- output buffer
- Returns:
- the output buffer
Copyright © 2011. All Rights Reserved.