|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectMovieLibrary.CropSettings
public class CropSettings
class to store and access crop settings easily
| Constructor Summary | |
|---|---|
CropSettings(CropSettings reqCropSet)
crop settings constructor from given crop setting |
|
CropSettings(java.lang.String cropSettings,
int originalWidth,
int originalHeight)
Constructor for a crop settings object Will take a string containing crop values and uncropped width and height. crop settings will be parsed and crop values will be extracted and calculated appropriately. |
|
| Method Summary | |
|---|---|
int |
getCropBottom()
gets crop bottom value |
int |
getCropHeight()
gets cropped height value |
int |
getCropLeft()
gets crop left value |
int |
getCropRight()
gets crop right value |
int |
getCropTop()
gets crop top value |
int |
getCropWidth()
gets cropped width value |
int |
getUnCroppedHeight()
get uncropped height |
int |
getUnCroppedWidth()
get uncropped width |
void |
setCropSettings(int leftCrop,
int rightCrop,
int topCrop,
int bottomCrop)
sets the crop values to this crop settings object |
java.lang.String |
toString()
displays the crop settings in a string form such as "640:480:8:16" |
java.lang.String |
toStringNice()
displays the crop settings in a more detailed string form such as "Left: 8, Right: 16, Top: 32, Bottom: 16. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CropSettings(java.lang.String cropSettings,
int originalWidth,
int originalHeight)
cropSettings - cropdetect string from mencoder such as "720:480:10:2"originalWidth - original source video uncropped widthoriginalHeight - original source video uncropped heightpublic CropSettings(CropSettings reqCropSet)
reqCropSet - crop settings to use to create new crop setting| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toStringNice()
public int getCropLeft()
public int getCropRight()
public int getCropTop()
public int getCropBottom()
public int getCropWidth()
public int getCropHeight()
public int getUnCroppedWidth()
public int getUnCroppedHeight()
public void setCropSettings(int leftCrop,
int rightCrop,
int topCrop,
int bottomCrop)
leftCrop - left crop value to be usedrightCrop - right crop value to be usedtopCrop - top crop value to be usedbottomCrop - bottom crop value to be used
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||