|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.scheisseichfindemalkeinen.settings.options.Subdir
public class Subdir
The user can define subdirectory were the files are moved to after download is completed. The files are moved, when the filesize are in the defined range.
| Field Summary | |
|---|---|
static int |
RESOLUTION_BOTH
Both |
static int |
RESOLUTION_ONLY_HEIGHT
Only height is checked |
static int |
RESOLUTION_ONLY_HIGHER
Only the higher component of the resolution is checked |
static int |
RESOLUTION_ONLY_LOWER
Only the lower component of the resolution is checked |
static int |
RESOLUTION_ONLY_WIDTH
Only width is checked |
| Constructor Summary | |
|---|---|
Subdir(java.lang.String subdirName,
long minSize,
long maxSize)
Constructor |
|
Subdir(java.lang.String subdirName,
long minSize,
long maxSize,
int minWidth,
int minHeight,
int maxWidth,
int maxHeight)
Constructor |
|
| Method Summary | |
|---|---|
int |
getMaxHeight()
Returns the maxHeight |
long |
getMaxSize()
Returns the maxSize |
int |
getMaxWidth()
Returns the maxWidth |
int |
getMinHeight()
Returns the minHeight |
long |
getMinSize()
Returns the minSize |
int |
getMinWidth()
Returns the minWidth |
java.lang.String |
getSubdirName()
Returns the subdirName |
boolean |
isInFilesizeRange(long filesize)
Checks if Filesize is in range |
boolean |
isInHeightRange(int height)
Checks if Height is in range |
boolean |
isInRange(long filesize,
int width,
int height,
boolean isImage)
|
boolean |
isInWidthRange(int width)
Checks if Width is in range |
void |
setMaxHeight(int maxHeight)
Sets the maxHeight |
void |
setMaxSize(long maxSize)
Sets the maxSize |
void |
setMaxWidth(int maxWidth)
Sets the maxWidth |
void |
setMinHeight(int minHeight)
Sets the minHeight |
void |
setMinSize(long minSize)
Sets the minSize |
void |
setMinWidth(int minWidth)
Sets the minWidth |
void |
setSubdirName(java.lang.String subdirName)
Sets the subdirName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int RESOLUTION_ONLY_LOWER
public static final int RESOLUTION_ONLY_HIGHER
public static final int RESOLUTION_ONLY_WIDTH
public static final int RESOLUTION_ONLY_HEIGHT
public static final int RESOLUTION_BOTH
| Constructor Detail |
|---|
public Subdir(java.lang.String subdirName,
long minSize,
long maxSize)
subdirName - Name of the subdirectoryminSize - Min FilesizemaxSize - Max Filesize
public Subdir(java.lang.String subdirName,
long minSize,
long maxSize,
int minWidth,
int minHeight,
int maxWidth,
int maxHeight)
subdirName - Name of the subdirectoryminSize - Min FilesizemaxSize - Max FilesizeminWidth - Min WidthmaxWidth - Max WidthminHeight - Min HeightmaxHeight - Max Height| Method Detail |
|---|
public java.lang.String getSubdirName()
public void setSubdirName(java.lang.String subdirName)
subdirName - subdirNamepublic long getMinSize()
public void setMinSize(long minSize)
minSize - minSizepublic long getMaxSize()
public void setMaxSize(long maxSize)
maxSize - maxSizepublic int getMinWidth()
public void setMinWidth(int minWidth)
minWidth - minWidthpublic int getMaxWidth()
public void setMaxWidth(int maxWidth)
maxWidth - maxWidthpublic int getMinHeight()
public void setMinHeight(int minHeight)
minHeight - minHeightpublic int getMaxHeight()
public void setMaxHeight(int maxHeight)
maxHeight - maxHeightpublic boolean isInFilesizeRange(long filesize)
filesize - Filesize
public boolean isInWidthRange(int width)
width - Width
public boolean isInHeightRange(int height)
height - Height
public boolean isInRange(long filesize,
int width,
int height,
boolean isImage)
filesize - width - height - isImage -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||