Class ALcdMultilevelGridCoordinateFormat
java.lang.Object
java.text.Format
com.luciad.view.map.multilevelgrid.ALcdMultilevelGridCoordinateFormat
- All Implemented Interfaces:
Serializable
,Cloneable
An abstract
Format
that splits up formatting an ILcdMultilevelGridCoordinate
into formatting the levels of the multilevel grid coordinate.- Since:
- 7.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.text.Format
Format.Field
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Calls super.clone() as this object has no state.format
(Object aObject, StringBuffer aStringBuffer, FieldPosition aPosition) Formats aILcdMultilevelGridCoordinate
into a human readable form by callingformatCoordinate(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 fromformat(Object, StringBuffer, java.text.FieldPosition)
for every level for which the coordinate was specified.Methods inherited from class java.text.Format
format, formatToCharacterIterator, parseObject, parseObject
-
Constructor Details
-
ALcdMultilevelGridCoordinateFormat
public ALcdMultilevelGridCoordinateFormat()
-
-
Method Details
-
format
Formats aILcdMultilevelGridCoordinate
into a human readable form by callingformatCoordinate(ILcdMultilevelGridCoordinate, int, StringBuffer, java.text.FieldPosition)
for every level for which the coordinate is specified.- Specified by:
format
in classFormat
- Parameters:
aObject
- theILcdMultilevelGridCoordinate
to return a human readable form for.aStringBuffer
- the StringBuffer to append to or to modify.aPosition
- aFieldPosition
identifying a field in the formatted text.- Returns:
- a StringBuffer containing a human readable representation of the object passed.
- Throws:
IllegalArgumentException
- when the object passed is not aILcdMultilevelGridCoordinate
- See Also:
-
formatCoordinate
public abstract StringBuffer formatCoordinate(ILcdMultilevelGridCoordinate aMultilevelGridCoordinate, int aLevel, StringBuffer aStringBuffer, FieldPosition aPosition) This method is called fromformat(Object, StringBuffer, java.text.FieldPosition)
for every level for which the coordinate was specified.- Parameters:
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
- AFieldPosition
identifying a field in the formatted text.- Returns:
- a StringBuffer containing at least a human readable representation of the coordinate at the given level.
- See Also:
-
clone
Calls super.clone() as this object has no state.
-