public abstract class ALcdMultilevelGridCoordinateFormat extends Format
Format
that splits up formatting an ILcdMultilevelGridCoordinate
into formatting the levels of the multilevel grid coordinate.Format.Field
Constructor and Description |
---|
ALcdMultilevelGridCoordinateFormat() |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Calls super.clone() as this object has no state.
|
StringBuffer |
format(Object aObject,
StringBuffer aStringBuffer,
FieldPosition aPosition)
Formats a
ILcdMultilevelGridCoordinate into a human readable form by calling
formatCoordinate(ILcdMultilevelGridCoordinate, int, StringBuffer, java.text.FieldPosition)
for every level for which the coordinate is specified. |
abstract StringBuffer |
formatCoordinate(ILcdMultilevelGridCoordinate aMultilevelGridCoordinate,
int aLevel,
StringBuffer aStringBuffer,
FieldPosition aPosition)
This method is called from
format(Object, StringBuffer, java.text.FieldPosition) for every level
for which the coordinate was specified. |
format, formatToCharacterIterator, parseObject, parseObject
public StringBuffer format(Object aObject, StringBuffer aStringBuffer, FieldPosition aPosition)
ILcdMultilevelGridCoordinate
into a human readable form by calling
formatCoordinate(ILcdMultilevelGridCoordinate, int, StringBuffer, java.text.FieldPosition)
for every level for which the coordinate is specified.format
in class Format
aObject
- the ILcdMultilevelGridCoordinate
to return a human readable form for.aStringBuffer
- the StringBuffer to append to or to modify.aPosition
- a FieldPosition
identifying a field in the formatted text.IllegalArgumentException
- when the object passed is not a ILcdMultilevelGridCoordinate
formatCoordinate(ILcdMultilevelGridCoordinate, int, StringBuffer, java.text.FieldPosition)
public abstract StringBuffer formatCoordinate(ILcdMultilevelGridCoordinate aMultilevelGridCoordinate, int aLevel, StringBuffer aStringBuffer, FieldPosition aPosition)
format(Object, StringBuffer, java.text.FieldPosition)
for every level
for which the coordinate was specified.aMultilevelGridCoordinate
- the coordinate to format.aLevel
- the level of the coordinate to format.aStringBuffer
- contains the human readable representation of the levels with lower index.aPosition
- A FieldPosition
identifying a field in the formatted text.format(Object, StringBuffer, java.text.FieldPosition)