public class GridLine extends Object
IDatelineModel.getGrid(int, int, boolean)
Modifier and Type | Class and Description |
---|---|
static class |
GridLine.DstChangeType
An enumerator used to represent the two types of DST change that can
happen.
|
Constructor and Description |
---|
GridLine(int location,
long time)
Constructs a new grid line.
|
Modifier and Type | Method and Description |
---|---|
GridLine.DstChangeType |
getDstChangeType()
Determines the type of DST change represented by the grid line.
|
int |
getLocation()
Returns the location of the grid line (the x-coordinate).
|
long |
getTime()
Returns the time represented the grid line location
|
void |
setDstChangeType(GridLine.DstChangeType changeType)
Specifies whether the grid lines represents a time point where the
daylight savings time changes.
|
String |
toString() |
public GridLine(int location, long time)
location
- the x-coordinate of the grid linetime
- the time given at the grid line locationpublic long getTime()
public int getLocation()
public GridLine.DstChangeType getDstChangeType()
public void setDstChangeType(GridLine.DstChangeType changeType)
changeType
- the type of change represented by the grid line (summer time
to winter time, winter time to summer time, no change)Copyright © 2006–2016 Dirk Lemmermann Software & Consulting. All rights reserved.