class DirectoryWalker.DirStackEntry
extends java.lang.Object
DirectoryWalker.dirStack| Modifier and Type | Field and Description |
|---|---|
int |
count
Count of files in the directory.
|
java.io.File |
dir
Current Directory.
|
int |
index
Index (or offset) within the directory count.
|
double |
percentageOffset
Offset for percentage calculations.
|
double |
percentageSize
Size of percentage space to work with.
|
| Constructor and Description |
|---|
DirStackEntry(java.io.File d,
int length)
Create a DirStackEntry.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getNextPercentageOffset()
Calculate the next percentage offset.
|
double |
getNextPercentageSize()
Calculate the next percentage size.
|
int |
getPercentage()
The percentage of the DirStackEntry right now.
|
java.lang.String |
toString() |
public int count
public java.io.File dir
public int index
public double percentageOffset
public double percentageSize
public DirStackEntry(java.io.File d,
int length)
d - the directory to tracklength - the length of entries in the directory.public double getNextPercentageOffset()
public double getNextPercentageSize()
public int getPercentage()
public java.lang.String toString()
toString in class java.lang.Object