|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.print.Paper
org.compiere.print.CPaper
public class CPaper
Adempiere Paper
| Constructor Summary | |
|---|---|
CPaper(boolean landscape)
Constructor. |
|
CPaper(MediaSize mediaSize,
boolean landscape,
double left,
double top,
double right,
double bottom)
Detail Constructor |
|
CPaper(PageFormat pf)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Equals |
double |
getHeight(boolean orientationCorrected)
Get Height in 1/72 inch |
double |
getImageableHeight(boolean orientationCorrected)
Get Image Height in 1/72 inch |
double |
getImageableWidth(boolean orientationCorrected)
Get Image Width in 1/72 inch |
double |
getImageableX(boolean orientationCorrected)
Get Image X in 1/72 inch |
double |
getImageableY(boolean orientationCorrected)
Get Image Y in 1/72 inch |
Insets |
getMargin(boolean orientationCorrected)
Get Margin |
MediaPrintableArea |
getMediaPrintableArea()
Get Printable Media Area |
MediaSize |
getMediaSize()
Get Media Size |
MediaSizeName |
getMediaSizeName()
Get Media Size |
PageFormat |
getPageFormat()
Get the Page Format for the Papaer |
PrintRequestAttributeSet |
getPrintRequestAttributeSet()
Return Print Request Attributes |
double |
getWidth(boolean orientationCorrected)
Get Width in 1/72 inch |
boolean |
isLandscape()
Is Landscape |
boolean |
pageSetupDialog(PrinterJob job)
Show Dialog and Set Paper |
void |
setMediaPrintableArea(MediaPrintableArea area)
Get Printable Media Area |
void |
setMediaSize(MediaSize mediaSize,
boolean landscape)
Set Media Size |
void |
setPrintRequestAttributeSet(PrintRequestAttributeSet prats)
Set Print Request Attributes |
String |
toString()
Get String Representation |
String |
toString(Properties ctx)
Get "nice" String Representation |
| Methods inherited from class java.awt.print.Paper |
|---|
clone, getHeight, getImageableHeight, getImageableWidth, getImageableX, getImageableY, getWidth, setImageableArea, setSize |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CPaper(PageFormat pf)
pf - PageFormatpublic CPaper(boolean landscape)
landscape - true if landscape, false if portrait
public CPaper(MediaSize mediaSize,
boolean landscape,
double left,
double top,
double right,
double bottom)
mediaSize - media sizeleft - x in 1/72 inchtop - y in 1/72 inchright - right x in 1/72bottom - bottom y in 1/72landscape - true if landscape, false if portrait| Method Detail |
|---|
public void setMediaSize(MediaSize mediaSize,
boolean landscape)
mediaSize - media sizelandscape - true if landscape, false if portraitpublic MediaSizeName getMediaSizeName()
public MediaSize getMediaSize()
public MediaPrintableArea getMediaPrintableArea()
public void setMediaPrintableArea(MediaPrintableArea area)
area - Printable Areapublic boolean isLandscape()
public boolean pageSetupDialog(PrinterJob job)
job - printer job
public PrintRequestAttributeSet getPrintRequestAttributeSet()
public void setPrintRequestAttributeSet(PrintRequestAttributeSet prats)
prats - PrintRequestAttributeSetpublic PageFormat getPageFormat()
public String toString()
toString in class Objectpublic String toString(Properties ctx)
ctx - context
public boolean equals(Object obj)
equals in class Objectobj - compare
public double getWidth(boolean orientationCorrected)
orientationCorrected - correct for orientation
public double getHeight(boolean orientationCorrected)
orientationCorrected - correct for orientation
public double getImageableY(boolean orientationCorrected)
orientationCorrected - correct for orientation
public double getImageableX(boolean orientationCorrected)
orientationCorrected - correct for orientation
public double getImageableHeight(boolean orientationCorrected)
orientationCorrected - correct for orientation
public double getImageableWidth(boolean orientationCorrected)
orientationCorrected - correct for orientation
public Insets getMargin(boolean orientationCorrected)
orientationCorrected - correct for orientation
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||