Package adalid.core.page.format
Class AbstractPageFormat
- java.lang.Object
-
- adalid.core.page.format.AbstractPageFormat
-
- All Implemented Interfaces:
PageFormat
- Direct Known Subclasses:
DefaultPageFormat,LandscapeA4,LandscapeB5,LandscapeLegal,LandscapeLetter,Ledger,PortraitA4,PortraitB5,PortraitLegal,PortraitLetter,Tabloid
public abstract class AbstractPageFormat extends java.lang.Object implements PageFormat
- Author:
- Jorge Campins
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractPageFormat(java.lang.String paperSize, int pageWidth, int pageHeight, int topMargin, int bottomMargin, int leftMargin, int rightMargin)Construye una instancia de la clase, dando valor a todos los campos requeridos del formato.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBottomMargin()intgetColumnWidth()intgetLeftMargin()intgetPageHeight()intgetPageWidth()java.lang.StringgetPaperSize()intgetRightMargin()intgetTopMargin()booleanisLandscapeOrientation()booleanisPortraitOrientation()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface adalid.core.interfaces.PageFormat
ordinal
-
-
-
-
Constructor Detail
-
AbstractPageFormat
protected AbstractPageFormat(java.lang.String paperSize, int pageWidth, int pageHeight, int topMargin, int bottomMargin, int leftMargin, int rightMargin)Construye una instancia de la clase, dando valor a todos los campos requeridos del formato.Todas las dimensiones se expresan en puntos tipográficos. Una pulgada equivale a 72 puntos tipográficos. Si el valor de
pageWidthes mayor que el valor depageHeight, entonces el reporte tendrá orientación horizontal; de lo contrario, orientación vertical. En cualquier caso, el ancho del área de impresión espageWidth-leftMargin-rightMargin.- Parameters:
paperSize- tamaño de la hoja de papel; por ejemplo: A4, B5, Legal, Letter. Especifique Custom para tamaños personalizados.pageWidth- ancho de la hoja de papel. Valor mínimo 360 puntos (5"). Valor máximo 1296 puntos (18").pageHeight- largo de la hoja de papel. Valor mínimo 360 puntos (5"). Valor máximo 1296 puntos (18").topMargin- margen superior. Valor mínimo 18 puntos (0.25"). Valor máximo 144 puntos (2").bottomMargin- margen inferior. Valor mínimo 18 puntos (0.25"). Valor máximo 144 puntos (2").leftMargin- margen izquierdo. Valor mínimo 18 puntos (0.25"). Valor máximo 144 puntos (2").rightMargin- margen derecho. Valor mínimo 18 puntos (0.25"). Valor máximo 144 puntos (2").- See Also:
- Paper size, Formato de papel
-
-
Method Detail
-
getPaperSize
public java.lang.String getPaperSize()
- Specified by:
getPaperSizein interfacePageFormat
-
isLandscapeOrientation
public boolean isLandscapeOrientation()
- Specified by:
isLandscapeOrientationin interfacePageFormat
-
isPortraitOrientation
public boolean isPortraitOrientation()
- Specified by:
isPortraitOrientationin interfacePageFormat
-
getColumnWidth
public int getColumnWidth()
- Specified by:
getColumnWidthin interfacePageFormat
-
getPageWidth
public int getPageWidth()
- Specified by:
getPageWidthin interfacePageFormat
-
getPageHeight
public int getPageHeight()
- Specified by:
getPageHeightin interfacePageFormat
-
getTopMargin
public int getTopMargin()
- Specified by:
getTopMarginin interfacePageFormat
-
getBottomMargin
public int getBottomMargin()
- Specified by:
getBottomMarginin interfacePageFormat
-
getLeftMargin
public int getLeftMargin()
- Specified by:
getLeftMarginin interfacePageFormat
-
getRightMargin
public int getRightMargin()
- Specified by:
getRightMarginin interfacePageFormat
-
-