Adempiere 3.5.2a

org.compiere.print
Class MPrintTableFormat

java.lang.Object
  extended by org.compiere.model.PO
      extended by org.compiere.model.X_AD_PrintTableFormat
          extended by org.compiere.print.MPrintTableFormat
All Implemented Interfaces:
Serializable, Comparator, I_AD_PrintTableFormat, I_Persistent, Evaluatee

public class MPrintTableFormat
extends X_AD_PrintTableFormat

Table Print Format

Version:
$Id: MPrintTableFormat.java,v 1.3 2006/07/30 00:53:02 jjanke Exp $
Author:
Jorg Janke
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.compiere.model.X_AD_PrintTableFormat
FUNCT_PRINTFONT_ID_AD_Reference_ID, FUNCTBG_PRINTCOLOR_ID_AD_Reference_ID, FUNCTFG_PRINTCOLOR_ID_AD_Reference_ID, HDR_PRINTFONT_ID_AD_Reference_ID, HDRLINE_PRINTCOLOR_ID_AD_Reference_ID, HDRSTROKETYPE_AD_Reference_ID, HDRSTROKETYPE_Dash_DottedLine, HDRSTROKETYPE_DashedLine, HDRSTROKETYPE_DottedLine, HDRSTROKETYPE_SolidLine, HDRTEXTBG_PRINTCOLOR_ID_AD_Reference_ID, HDRTEXTFG_PRINTCOLOR_ID_AD_Reference_ID, LINE_PRINTCOLOR_ID_AD_Reference_ID, LINESTROKETYPE_AD_Reference_ID, LINESTROKETYPE_Dash_DottedLine, LINESTROKETYPE_DashedLine, LINESTROKETYPE_DottedLine, LINESTROKETYPE_SolidLine
 
Fields inherited from class org.compiere.model.PO
ACCESSLEVEL_ALL, ACCESSLEVEL_CLIENT, ACCESSLEVEL_CLIENTORG, ACCESSLEVEL_ORG, ACCESSLEVEL_SYSTEM, ACCESSLEVEL_SYSTEMCLIENT, ENTITYTYPE_Dictionary, ENTITYTYPE_UserMaintained, I_ZERO, log, p_ctx, p_info, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID
 
Fields inherited from interface org.compiere.model.I_AD_PrintTableFormat
accessLevel, COLUMNNAME_AD_PrintTableFormat_ID, COLUMNNAME_Description, COLUMNNAME_FooterCenter, COLUMNNAME_FooterLeft, COLUMNNAME_FooterRight, COLUMNNAME_Funct_PrintFont_ID, COLUMNNAME_FunctBG_PrintColor_ID, COLUMNNAME_FunctFG_PrintColor_ID, COLUMNNAME_Hdr_PrintFont_ID, COLUMNNAME_HdrLine_PrintColor_ID, COLUMNNAME_HdrStroke, COLUMNNAME_HdrStrokeType, COLUMNNAME_HdrTextBG_PrintColor_ID, COLUMNNAME_HdrTextFG_PrintColor_ID, COLUMNNAME_HeaderCenter, COLUMNNAME_HeaderLeft, COLUMNNAME_HeaderRight, COLUMNNAME_ImageIsAttached, COLUMNNAME_ImageURL, COLUMNNAME_IsDefault, COLUMNNAME_IsPaintBoundaryLines, COLUMNNAME_IsPaintHeaderLines, COLUMNNAME_IsPaintHLines, COLUMNNAME_IsPaintVLines, COLUMNNAME_IsPrintFunctionSymbols, COLUMNNAME_Line_PrintColor_ID, COLUMNNAME_LineStroke, COLUMNNAME_LineStrokeType, COLUMNNAME_Name, Model, Table_ID, Table_Name
 
Constructor Summary
MPrintTableFormat(Properties ctx, int AD_PrintTableFormat_ID, String trxName)
          Standard Constructor
MPrintTableFormat(Properties ctx, ResultSet rs, String trxName)
          Load Constructor
 
Method Summary
static MPrintTableFormat get(Properties ctx, int AD_PrintTableFormat_ID, Font standard_font)
          Get Table Format.
static MPrintTableFormat get(Properties ctx, int AD_PrintTableFormat_ID, int AD_PrintFont_ID)
          Get Table Format
static MPrintTableFormat getDefault(Properties ctx)
          Get Default Table Format.
 Font getFunct_Font()
          Get Function Font
 Color getFunctBG_Color()
          Get Function BG Color
 Color getFunctFG_Color()
          Get Function FG Color
 BigDecimal getHdrStroke()
          Get Header Stroke for horizontal Lines
 Font getHeader_Font()
          Get Table Header Font
 Stroke getHeader_Stroke()
          Get Header Stroke
 Color getHeaderBG_Color()
          Get Header BG Color
 Color getHeaderFG_Color()
          Get Header Foreground
 Color getHeaderLine_Color()
          Get Header Line Color
 Color getHLine_Color()
          Get Horizontal Line Color.
 Stroke getHLine_Stroke()
          Get Horizontal Line Stroke - (same DB line column)
 BigDecimal getLineStroke()
          Get Horizontal Stroke for Lines -
 Font getPageFooter_Font()
          Get Page Footer Font
 Color getPageFooterBG_Color()
          Get Page Footer BG_Color
 Color getPageFooterFG_Color()
          Get PageFooter FG_Color
 Font getPageHeader_Font()
          Get Top Page Header Font
 Color getPageHeaderBG_Color()
          Get Page Header BG_Color
 Color getPageHeaderFG_Color()
          Get Page Header FG_Color
 Color getParameter_Color()
          Get Parameter Color
 Font getParameter_Font()
          Get Parameter Font
 Font getStandard_Font()
          Get Stndard Font
 Color getVLine_Color()
          Get Verical Line Color.
 Stroke getVLine_Stroke()
          Get Vertical Line Stroke | (same DB line column)
 BigDecimal getVLineStroke()
          Get Vertical Stroke for Lines |
 void setStandard_Font(Font standardFont)
          Set Standard Font to derive other fonts if not defined
 
Methods inherited from class org.compiere.model.X_AD_PrintTableFormat
get_AccessLevel, getAD_PrintTableFormat_ID, getDescription, getFooterCenter, getFooterLeft, getFooterRight, getFunct_PrintFont_ID, getFunctBG_PrintColor_ID, getFunctFG_PrintColor_ID, getHdr_PrintFont_ID, getHdrLine_PrintColor_ID, getHdrStrokeType, getHdrTextBG_PrintColor_ID, getHdrTextFG_PrintColor_ID, getHeaderCenter, getHeaderLeft, getHeaderRight, getImageURL, getKeyNamePair, getLine_PrintColor_ID, getLineStrokeType, getName, initPO, isDefault, isImageIsAttached, isPaintBoundaryLines, isPaintHeaderLines, isPaintHLines, isPaintVLines, isPrintFunctionSymbols, setAD_PrintTableFormat_ID, setDescription, setFooterCenter, setFooterLeft, setFooterRight, setFunct_PrintFont_ID, setFunctBG_PrintColor_ID, setFunctFG_PrintColor_ID, setHdr_PrintFont_ID, setHdrLine_PrintColor_ID, setHdrStroke, setHdrStrokeType, setHdrTextBG_PrintColor_ID, setHdrTextFG_PrintColor_ID, setHeaderCenter, setHeaderLeft, setHeaderRight, setImageIsAttached, setImageURL, setIsDefault, setIsPaintBoundaryLines, setIsPaintHeaderLines, setIsPaintHLines, setIsPaintVLines, setIsPrintFunctionSymbols, setLine_PrintColor_ID, setLineStroke, setLineStrokeType, setName, toString
 
Methods inherited from class org.compiere.model.PO
afterDelete, afterSave, beforeDelete, beforeSave, compare, copyValues, copyValues, createAttachment, delete_Accounting, delete_Tree, delete, delete, deleteEx, deleteEx, dump, dump, equals, get_ColumnCount, get_ColumnDescription, get_ColumnDisplayType, get_ColumnIndex, get_ColumnLabel, get_ColumnLookup, get_ColumnName, get_DisplayValue, get_HashMap, get_ID, get_IDOld, get_KeyColumns, get_Logger, get_Table_ID, get_TableName, get_Translation, get_TrxName, get_Value, get_Value, get_ValueAsInt, get_ValueAsString, get_ValueDifference, get_ValueDifference, get_ValueE, get_ValueOfColumn, get_ValueOld, get_ValueOld, get_ValueOldAsInt, get_WhereClause, get_xmlDocument, get_xmlString, getAD_Client_ID, getAD_Org_ID, getAllIDs, getAttachment, getAttachment, getAttachmentData, getCreated, getCreatedBy, getCtx, getDoc, getFindParameter, getPdfAttachment, getUpdated, getUpdatedBy, insert_Accounting, insert_Tree, insert_Tree, is_Changed, is_new, is_ValueChanged, is_ValueChanged, isActive, isAttachment, isColumnMandatory, isColumnUpdateable, isMandatoryOK, isPdfAttachment, isReplication, load, load, load, load, loadComplete, loadDefaults, loadSpecial, lock, save, save, saveEx, saveEx, saveNew_getID, saveNewSpecial, saveReplica, saveUpdate, set_ColumnUpdateable, set_CustomColumn, set_TrxName, set_TrxName, set_Value, set_Value, set_ValueE, set_ValueNoCheck, set_ValueNoCheckE, set_ValueOfColumn, set_ValueOfColumn, setAD_Client_ID, setAD_Org_ID, setClientOrg, setClientOrg, setDoc, setDocWorkflowMgr, setIsActive, setReplication, setStandardDefaults, setUpdateable, setUpdatedBy, unlock
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.compiere.model.I_Persistent
save
 

Constructor Detail

MPrintTableFormat

public MPrintTableFormat(Properties ctx,
                         int AD_PrintTableFormat_ID,
                         String trxName)
Standard Constructor

Parameters:
ctx - context
AD_PrintTableFormat_ID - table format
trxName - transaction

MPrintTableFormat

public MPrintTableFormat(Properties ctx,
                         ResultSet rs,
                         String trxName)
Load Constructor

Parameters:
ctx - context
rs - result set
trxName - transaction
Method Detail

setStandard_Font

public void setStandard_Font(Font standardFont)
Set Standard Font to derive other fonts if not defined

Parameters:
standardFont - standard font

getStandard_Font

public Font getStandard_Font()
Get Stndard Font

Returns:
stndard font

getHeader_Font

public Font getHeader_Font()
Get Table Header Font

Returns:
table header font or Bold standard font

getHeaderFG_Color

public Color getHeaderFG_Color()
Get Header Foreground

Returns:
color or blue black

getHeaderBG_Color

public Color getHeaderBG_Color()
Get Header BG Color

Returns:
color or cyan

getHeaderLine_Color

public Color getHeaderLine_Color()
Get Header Line Color

Returns:
color or blue black

getHeader_Stroke

public Stroke getHeader_Stroke()
Get Header Stroke

Returns:
Header Stroke (default solid 2pt)

getHdrStroke

public BigDecimal getHdrStroke()
Get Header Stroke for horizontal Lines

Specified by:
getHdrStroke in interface I_AD_PrintTableFormat
Overrides:
getHdrStroke in class X_AD_PrintTableFormat
Returns:
stroke in pt (default 2)

getFunct_Font

public Font getFunct_Font()
Get Function Font

Returns:
function font or BoldItalic standard font

getFunctBG_Color

public Color getFunctBG_Color()
Get Function BG Color

Returns:
color or white

getFunctFG_Color

public Color getFunctFG_Color()
Get Function FG Color

Returns:
color or green dark

getParameter_Font

public Font getParameter_Font()
Get Parameter Font

Returns:
Italic standard font

getParameter_Color

public Color getParameter_Color()
Get Parameter Color

Returns:
dark gray

getPageHeader_Font

public Font getPageHeader_Font()
Get Top Page Header Font

Returns:
Bold standard font

getPageHeaderFG_Color

public Color getPageHeaderFG_Color()
Get Page Header FG_Color

Returns:
color or blue black

getPageHeaderBG_Color

public Color getPageHeaderBG_Color()
Get Page Header BG_Color

Returns:
color or white

getPageFooter_Font

public Font getPageFooter_Font()
Get Page Footer Font

Returns:
2pt smaller standard font

getPageFooterFG_Color

public Color getPageFooterFG_Color()
Get PageFooter FG_Color

Returns:
blue black

getPageFooterBG_Color

public Color getPageFooterBG_Color()
Get Page Footer BG_Color

Returns:
white

getHLine_Color

public Color getHLine_Color()
Get Horizontal Line Color. (one db attribute for line color)

Returns:
color or gray light

getVLine_Color

public Color getVLine_Color()
Get Verical Line Color. (one db attribute for line color)

Returns:
color or gray light

getHLine_Stroke

public Stroke getHLine_Stroke()
Get Horizontal Line Stroke - (same DB line column)

Returns:
solid line baded on line width (default solid 1p)

getVLine_Stroke

public Stroke getVLine_Stroke()
Get Vertical Line Stroke | (same DB line column)

Returns:
line based on line (1/2 of) width and stroke (default dotted 1/2p

getLineStroke

public BigDecimal getLineStroke()
Get Horizontal Stroke for Lines -

Specified by:
getLineStroke in interface I_AD_PrintTableFormat
Overrides:
getLineStroke in class X_AD_PrintTableFormat
Returns:
stroke in pt (default 1)

getVLineStroke

public BigDecimal getVLineStroke()
Get Vertical Stroke for Lines |

Returns:
stroke in pt (default 1)

get

public static MPrintTableFormat get(Properties ctx,
                                    int AD_PrintTableFormat_ID,
                                    Font standard_font)
Get Table Format.

Parameters:
ctx - context
AD_PrintTableFormat_ID - table format
standard_font - standard font
Returns:
Table Format

get

public static MPrintTableFormat get(Properties ctx,
                                    int AD_PrintTableFormat_ID,
                                    int AD_PrintFont_ID)
Get Table Format

Parameters:
ctx - context
AD_PrintTableFormat_ID - table format
AD_PrintFont_ID - standard font
Returns:
Table Format

getDefault

public static MPrintTableFormat getDefault(Properties ctx)
Get Default Table Format.

Parameters:
ctx - context
Returns:
Default Table Format (need to set standard font)

Adempiere 3.5.2a

Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.