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)
        Parameters:
        copy -
      • MPrintTableFormat

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

        public MPrintTableFormat(Properties ctx, MPrintTableFormat copy, String trxName)
        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:
        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 Vertical 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)
      • getImage

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

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

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