|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.silverpeas.media.Definition
public class Definition
A container to handle resolution informations.
Field Summary | |
---|---|
static Definition |
NULL
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
static Definition |
fromZero()
Gets an instance with width and height set to zero. |
int |
getHeight()
Gets the height. |
int |
getWidth()
Gets the width. |
int |
hashCode()
|
Definition |
heightOf(int height)
Sets the height. |
boolean |
isDefined()
Indicates if one one dimension is defined. |
boolean |
isHeightDefined()
Indicates if height is defined. |
boolean |
isWidthDefined()
Indicates if width is defined. |
static Definition |
of(int width,
int height)
Gets an instance initialized with given sizes. |
Definition |
widthOf(int width)
Sets the width. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Definition NULL
Method Detail |
---|
public static Definition fromZero()
public static Definition of(int width, int height)
width
- height
-
public boolean isDefined()
public boolean isWidthDefined()
public boolean isHeightDefined()
public int getWidth()
public Definition widthOf(int width)
width
- public int getHeight()
public Definition heightOf(int height)
height
- public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |