com.dlsc.flexgantt.model.dateline
Class GridLine

java.lang.Object
  extended by com.dlsc.flexgantt.model.dateline.GridLine

public class GridLine
extends java.lang.Object

A class that combines a grid coordinate with the corresponding time point at the location.

Since:
1.0
Author:
Dirk Lemmermann
See Also:
IDatelineModel.getGrid(int, int, boolean)

Constructor Summary
GridLine(int location, long time)
          Constructs a new grid line.
 
Method Summary
 int getLocation()
          Returns the location of the grid line (the x-coordinate).
 long getTime()
          Returns the time represented the grid line location
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GridLine

public GridLine(int location,
                long time)
Constructs a new grid line.

Parameters:
location - the x-coordinate of the grid line
time - the time given at the grid line location
Since:
1.0
Method Detail

getTime

public long getTime()
Returns the time represented the grid line location

Returns:
the time represented by the grid line location
Since:
1.0

getLocation

public int getLocation()
Returns the location of the grid line (the x-coordinate).

Returns:
the location of the grid line
Since:
1.0