Class MPrintTableFormat

All Implemented Interfaces:
Serializable, Cloneable, Comparator<Object>, I_AD_PrintTableFormat, I_Persistent, Evaluatee, ImmutablePOSupport

public class MPrintTableFormat extends X_AD_PrintTableFormat implements ImmutablePOSupport
Table Print Format
Version:
$Id: MPrintTableFormat.java,v 1.3 2006/07/30 00:53:02 jjanke Exp $
Author:
Jorg Janke, victor.perez@e-evolution.com, e-Evolution
  • BF [ 2011567 ] Implement Background Image for Document printed
  • https://sourceforge.net/p/adempiere/feature-requests/477/
  • See Also:
    • Constructor Details

      • MPrintTableFormat

        public MPrintTableFormat(Properties ctx, String AD_PrintTableFormat_UU, String trxName)
        UUID based Constructor
        Parameters:
        ctx - Context
        AD_PrintTableFormat_UU - UUID key
        trxName - Transaction
      • 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
      • MPrintTableFormat

        public MPrintTableFormat(MPrintTableFormat copy)
        Copy Constructor
        Parameters:
        copy -
      • MPrintTableFormat

        public MPrintTableFormat(Properties ctx, MPrintTableFormat copy)
        Copy Constructor
        Parameters:
        ctx -
        copy -
      • MPrintTableFormat

        public MPrintTableFormat(Properties ctx, MPrintTableFormat copy, String trxName)
        Copy Constructor
        Parameters:
        ctx -
        copy -
        trxName -
    • Method Details

      • 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 Standard Font
        Returns:
        standard font
      • getHeader_Font

        public Font getHeader_Font()
        Get Table Header Font
        Returns:
        set table header font or fall back to the default of bold standard font
      • getHeaderFG_Color

        public Color getHeaderFG_Color()
        Get Header Foreground
        Returns:
        set header foreground color or fallback to the default of black blue.
      • getHeaderBG_Color

        public Color getHeaderBG_Color()
        Get Header BG Color
        Returns:
        set header background color or fallback to the default of cyan
      • getHeaderLine_Color

        public Color getHeaderLine_Color()
        Get Header Line Color
        Returns:
        set header line color or fall back to the default of black blue
      • 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:
        set function font or fall back to the default of BoldItalic standard font
      • getFunctBG_Color

        public Color getFunctBG_Color()
        Get Function BG Color
        Returns:
        set function background color or fallback to the default of white
      • getFunctFG_Color

        public Color getFunctFG_Color()
        Get Function FG Color
        Returns:
        set function foreground color or fallback to the default of dark green
      • getParameter_Font

        public Font getParameter_Font()
        Get Parameter Font
        Returns:
        set parameter font of fallback to the default of Italic standard font
      • getParameter_Color

        public Color getParameter_Color()
        Get Parameter Color
        Returns:
        set parameter color or fallback to the default of dark gray
      • getPageHeader_Font

        public Font getPageHeader_Font()
        Get Top Page Header Font
        Returns:
        set page header font or fallback to the default of Bold standard font
      • getPageHeaderFG_Color

        public Color getPageHeaderFG_Color()
        Get Page Header FG_Color
        Returns:
        set page header foreground color or fallback to the default of blue black
      • getPageHeaderBG_Color

        public Color getPageHeaderBG_Color()
        Get Page Header BG_Color
        Returns:
        set page header background color or fallback to the default of white
      • getPageFooter_Font

        public Font getPageFooter_Font()
        Get Page Footer Font
        Returns:
        set page footer font or fallback to the default of 2pt smaller standard font
      • getPageFooterFG_Color

        public Color getPageFooterFG_Color()
        Get PageFooter FG_Color
        Returns:
        set page footer foreground color or fallback to the default of black blue
      • getPageFooterBG_Color

        public Color getPageFooterBG_Color()
        Get Page Footer BG_Color
        Returns:
        set page footer background color or fallback to the default of white
      • getHLine_Color

        public Color getHLine_Color()
        Get Horizontal Line Color.
        Returns:
        set horizontal line color or fallback to the default of light gray
      • getVLine_Color

        public Color getVLine_Color()
        Get Vertical Line Color.
        Returns:
        set vertical line color or fallback to the default of light gray
      • 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 Print Table Format.
        Parameters:
        ctx - context
        AD_PrintTableFormat_ID - print table format id, 0 to get default print table format
        standard_font - standard font
        Returns:
        Print Table Format
      • get

        public static MPrintTableFormat get(Properties ctx, int AD_PrintTableFormat_ID, int AD_PrintFont_ID)
        Get Print Table Format
        Parameters:
        ctx - context
        AD_PrintTableFormat_ID - print table format id, 0 to get default print table format
        AD_PrintFont_ID - standard font
        Returns:
        Print Table Format
      • getDefault

        public static MPrintTableFormat getDefault(Properties ctx)
        Get Default Print Table Format.
        Parameters:
        ctx - context
        Returns:
        Default Print Table Format (need to set standard font)
      • getImage

        public Image getImage()
        Get the Image
        Returns:
        image or null
      • getImageWaterMark

        public Image getImageWaterMark()
        Get the Image
        Returns:
        image or null
      • markImmutable

        public MPrintTableFormat markImmutable()
        Description copied from interface: ImmutablePOSupport
        mark PO as immutable
        Specified by:
        markImmutable in interface ImmutablePOSupport
        Returns:
        PO