fr.cnes.genopus.time
Class GPIntervalFormatDateOffset

java.lang.Object
  extended by fr.cnes.genius.interval.GIntervalFormatAbstract
      extended by fr.cnes.genopus.time.GPIntervalFormatDateOffset

public class GPIntervalFormatDateOffset
extends fr.cnes.genius.interval.GIntervalFormatAbstract

Abstract class defining an interval formatter used to update the format of the tooltip message of a GPDateOffset.

Author:
ffsm

Constructor Summary
GPIntervalFormatDateOffset(GPDateOffsetField.GPOffsetFormat format, fr.cnes.genius.unit.GUnit unit)
          Constructor.
 
Method Summary
 String format(Object object)
           The object must be of Number type.
 void update(GPDateOffsetField.GPOffsetFormat format, fr.cnes.genius.unit.GUnit unit)
          Update the class attributes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GPIntervalFormatDateOffset

public GPIntervalFormatDateOffset(GPDateOffsetField.GPOffsetFormat format,
                                  fr.cnes.genius.unit.GUnit unit)
Constructor.

Parameters:
format - calendar or fractional for the interval edges to be shown in the message
unit - current unit needed to determine the number of fractional digits for the interval edges to be shown in the message
Method Detail

format

public String format(Object object)
The object must be of Number type.

Specified by:
format in class fr.cnes.genius.interval.GIntervalFormatAbstract

update

public void update(GPDateOffsetField.GPOffsetFormat format,
                   fr.cnes.genius.unit.GUnit unit)
Update the class attributes.

Parameters:
format - calendar or fractional for the interval edges to be shown in the message
unit - current unit needed to determine the number of fractional digits for the interval edges to be shown in the message


Copyright © 2017. All rights reserved.