JMSLTM Numerical Library 5.0.1

com.imsl.chart
Class TransformDate

java.lang.Object
  extended by com.imsl.chart.TransformDate
All Implemented Interfaces:
Transform

public class TransformDate
extends Object
implements Transform

Defines a transformation along an axis that skips weekend dates.


Constructor Summary
TransformDate()
           
 
Method Summary
 boolean isWeekday(GregorianCalendar cal)
          Returns true if the specified date is a weekday.
 double mapUnitToUser(double unit)
          Maps points in the interval [0,1] to user coordinates.
 double mapUserToUnit(double user)
          Maps user coordinate to the interval [0,1].
 void setupMapping(Axis1D axis1d)
          Initializes the mappings between user and coordinate space.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransformDate

public TransformDate()
Method Detail

isWeekday

public boolean isWeekday(GregorianCalendar cal)
Returns true if the specified date is a weekday.


mapUnitToUser

public double mapUnitToUser(double unit)
Maps points in the interval [0,1] to user coordinates.

Specified by:
mapUnitToUser in interface Transform

mapUserToUnit

public double mapUserToUnit(double user)
Maps user coordinate to the interval [0,1]. The user coordinate interval is specified by the "Window" attribute for the axis with which the transform is associated.

Specified by:
mapUserToUnit in interface Transform

setupMapping

public void setupMapping(Axis1D axis1d)
Initializes the mappings between user and coordinate space.

Specified by:
setupMapping in interface Transform

JMSLTM Numerical Library 5.0.1

Copyright © 1970-2008 Visual Numerics, Inc.
Built July 8 2008.