java.lang.Object
org.gvsig.app.project.documents.layout.Size
All Implemented Interfaces:
org.gvsig.tools.persistence.Persistent

public class Size extends Object implements org.gvsig.tools.persistence.Persistent
Clase que almacena la altura y anchura de un folio.
Author:
Vicente Caballero Navarro
  • Field Details

  • Constructor Details

    • Size

      public Size()
    • Size

      public Size(double al, double an)
      Creates a new Size object.
      Parameters:
      al - Altura
      an - 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 public double getAncho()
      Deprecated.
      Use getWidth() instead
    • getAlto

      @Deprecated public double getAlto()
      Deprecated.
      Use getHeight() 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:
      loadFromState in interface org.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:
      saveToState in interface org.gvsig.tools.persistence.Persistent
      Throws:
      org.gvsig.tools.persistence.exception.PersistenceException