public class Size extends Object implements Persistent
Modifier and Type | Field and Description |
---|---|
static String |
PERSISTENCE_DEFINITION_NAME |
Constructor and Description |
---|
Size() |
Size(double al,
double an)
Creates a new Size object.
|
Modifier and Type | Method and Description |
---|---|
double |
getAlto()
Deprecated.
Use
getHeight() instead |
double |
getAncho()
Deprecated.
Use
getWidth() instead |
double |
getHeight()
Gets the height of the sheet, measured in centimeters.
|
double |
getWidth()
Gets the width of the sheet, measured in centimeters.
|
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
static void |
registerPersistent() |
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
public static final String PERSISTENCE_DEFINITION_NAME
public Size()
public Size(double al, double an)
al
- Alturaan
- Anchurapublic double getHeight()
public double getWidth()
@Deprecated public double getAncho()
getWidth()
instead@Deprecated public double getAlto()
getHeight()
insteadpublic static void registerPersistent()
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
PersistenceException
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
PersistenceException