Class Size
java.lang.Object
org.gvsig.app.project.documents.layout.Size
- All Implemented Interfaces:
org.gvsig.tools.persistence.Persistent
Clase que almacena la altura y anchura de un folio.
- Author:
- Vicente Caballero Navarro
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublegetAlto()Deprecated.doublegetAncho()Deprecated.UsegetWidth()insteaddoubleGets the height of the sheet, measured in centimeters.doublegetWidth()Gets the width of the sheet, measured in centimeters.voidloadFromState(org.gvsig.tools.persistence.PersistentState state) static voidvoidsaveToState(org.gvsig.tools.persistence.PersistentState state)
-
Field Details
-
PERSISTENCE_DEFINITION_NAME
- See Also:
-
-
Constructor Details
-
Size
public Size() -
Size
public Size(double al, double an) Creates a new Size object.- Parameters:
al- Alturaan- Anchura
-
-
Method Details
-
getHeight
public double getHeight()Gets the height of the sheet, measured in centimeters.- Returns:
- Height.
-
getWidth
public double getWidth()Gets the width of the sheet, measured in centimeters.- Returns:
- Width of the sheet.
-
getAncho
Deprecated.UsegetWidth()instead -
getAlto
Deprecated.UsegetHeight()instead -
registerPersistent
public static void registerPersistent() -
loadFromState
public void loadFromState(org.gvsig.tools.persistence.PersistentState state) throws org.gvsig.tools.persistence.exception.PersistenceException - Specified by:
loadFromStatein interfaceorg.gvsig.tools.persistence.Persistent- Throws:
org.gvsig.tools.persistence.exception.PersistenceException
-
saveToState
public void saveToState(org.gvsig.tools.persistence.PersistentState state) throws org.gvsig.tools.persistence.exception.PersistenceException - Specified by:
saveToStatein interfaceorg.gvsig.tools.persistence.Persistent- Throws:
org.gvsig.tools.persistence.exception.PersistenceException
-
getHeight()instead