Class MPrintTableFormat

    • 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
      • MPrintTableFormat

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