|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<T>
com.oziexplorer.DataFile<TrackPoint>
com.oziexplorer.TrackFile
public class TrackFile
Read and write OziExplorer track log files.
Field Summary | |
---|---|
protected int |
color
The RGB track color. |
protected String |
datum
The track datum. |
protected String |
description
The track description. |
protected TrackFill |
fill
The track fill type. |
protected int |
fillColor
The track fill color. |
protected int |
reserved
Reserved field - unknown use. |
protected int |
skip
The track 'skip' value. |
protected int |
timezoneOffset
|
protected TrackType |
type
The track type. |
protected int |
width
The track width, in pixels. |
Fields inherited from class com.oziexplorer.DataFile |
---|
C, L, SepRE, T |
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
TrackFile()
Create a new track file reader/writer. |
Method Summary | |
---|---|
void |
clear()
Clear any current contents of the track. |
void |
display(int trackNum)
Display the track log in the specified track number. |
String |
getDatum()
Get the track datum. |
int |
getReserved()
Get the value of the reserved field. |
int |
getTimezoneOffset()
Get the timezone offset for the track, in minutes. |
int |
getTrackColor()
Get the RGB track color. |
String |
getTrackDesc()
Get the track description. |
TrackFill |
getTrackFill()
Get the track fill pattern, see TrackFill . |
int |
getTrackFillColor()
Get the RGB track fill color. |
int |
getTrackSkip()
Get the track 'skip' value. |
TrackType |
getTrackType()
Get the track type, see TrackType . |
int |
getTrackWidth()
Get the track width, in pixels. |
void |
read(File file)
Read a track log from the specified File . |
void |
read(InputStream input)
Read a track log from the specified InputStream . |
void |
read(String file)
Read a track log from the specified file. |
void |
setDatum(String datum)
Set the track datum. |
void |
setReserved(int reserved)
Set the value of the reserved field. |
void |
setTimezoneOffset(int timezoneOffset)
Set the timezone offset for the track, in minutes. |
void |
setTrackColor(int trackColor)
Set the RGB track color. |
void |
setTrackDesc(String trackDesc)
Set the track description. |
void |
setTrackFill(TrackFill trackFill)
Set the track fill pattern, see TrackFill . |
void |
setTrackFillColor(int trackFillColor)
Set the RGB track fill color. |
void |
setTrackSkip(int trackSkip)
set the track 'skip' value. |
void |
setTrackType(TrackType trackType)
Set the track type, see TrackType . |
void |
setTrackWidth(int trackWidth)
Set the track width, in pixels. |
void |
write(File file)
Write a track log to the specified File . |
void |
write(OutputStream output)
Write a track log to the specified OutputStream . |
void |
write(String file)
Write a track log to the specified file. |
Methods inherited from class com.oziexplorer.DataFile |
---|
calendarToOziDate, escapeCommas, getDate, getDouble, getInt, getString, newOziException, newOziException, newScanner, oziDateToCalendar, skipNext, unescapeCommas |
Methods inherited from class java.util.ArrayList |
---|
add, add, addAll, addAll, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
equals, hashCode, iterator, listIterator, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
---|
containsAll, removeAll, retainAll, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
Field Detail |
---|
protected String datum
protected int reserved
protected int width
protected int color
protected String description
protected int skip
protected TrackType type
protected TrackFill fill
protected int fillColor
protected int timezoneOffset
Constructor Detail |
---|
public TrackFile()
Method Detail |
---|
public void clear()
clear
in interface Collection<TrackPoint>
clear
in interface List<TrackPoint>
clear
in class ArrayList<TrackPoint>
public void read(File file) throws OziException
File
.
file
- the file to read from.
OziException
- if there is a problem reading the file.public void read(String file) throws OziException
file
- the file to read from.
OziException
- if there is a problem reading the file.public void read(InputStream input) throws OziException
InputStream
.
input
- the input stream to read from.
OziException
- if there is a problem reading the file.public void write(File file) throws OziException
File
.
file
- the file to write to.
OziException
- if there is a problem writing the file.public void write(String file) throws OziException
file
- the file to write to.
OziException
- if there is a problem writing the file.public void write(OutputStream output) throws OziException
OutputStream
.
output
- the input stream to write to.
OziException
- if there is a problem writing the file.public void display(int trackNum) throws OziException
OziAPI.loadTrackFile(int, java.lang.String)
.
trackNum
- the track number to load into.
OziException
- if there is a problem displaying the track.public String getDatum()
public void setDatum(String datum)
datum
- the track datum.public int getReserved()
public void setReserved(int reserved)
reserved
- the value of the reserved field.public int getTimezoneOffset()
public void setTimezoneOffset(int timezoneOffset)
timezoneOffset
- the timezone offset for the track.public int getTrackColor()
public void setTrackColor(int trackColor)
trackColor
- the RGB track color.public String getTrackDesc()
public void setTrackDesc(String trackDesc)
trackDesc
- the track description.public TrackFill getTrackFill()
TrackFill
.
public void setTrackFill(TrackFill trackFill)
TrackFill
.
trackFill
- the track fill pattern.public int getTrackFillColor()
public void setTrackFillColor(int trackFillColor)
trackFillColor
- the RGB track fill color.public int getTrackSkip()
public void setTrackSkip(int trackSkip)
trackSkip
- the track 'skip' value.public TrackType getTrackType()
TrackType
.
public void setTrackType(TrackType trackType)
TrackType
.
trackType
- public int getTrackWidth()
public void setTrackWidth(int trackWidth)
trackWidth
- the track width, in pixels.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |