Class MPrintColor

    • Field Detail

      • darkGreen

        public static final Color darkGreen
        Dark Green
      • blackGreen

        public static final Color blackGreen
        Black Green
      • darkBlue

        public static final Color darkBlue
        Dark Blue
      • blackBlue

        public static final Color blackBlue
        Black Blue
      • whiteGray

        public static final Color whiteGray
        White Gray
      • brown

        public static final Color brown
        Brown
      • darkBrown

        public static final Color darkBrown
        Dark Brown
    • Constructor Detail

      • MPrintColor

        public MPrintColor​(Properties ctx,
                           int AD_PrintColor_ID,
                           String trxName)
        Constructor
        Parameters:
        ctx - context
        AD_PrintColor_ID - ID
        trxName - transaction
      • MPrintColor

        public MPrintColor​(MPrintColor copy)
        Parameters:
        copy -
    • Method Detail

      • get

        public static MPrintColor get​(int AD_PrintColor_ID)
        Get Color from cache (immutable) if id = 0, it returns a new color (black) - but do not modify/save as cached
        Parameters:
        AD_PrintColor_ID - id
        Returns:
        Color
      • get

        public static MPrintColor get​(Properties ctx,
                                      int AD_PrintColor_ID)
        Get Color from cache (immutable) if id = 0, it returns a new color (black) - but do not modify/save as cached
        Parameters:
        ctx - context
        AD_PrintColor_ID - id
        Returns:
        Color
      • get

        public static MPrintColor get​(Properties ctx,
                                      String AD_PrintColor_ID)
        Get Color
        Parameters:
        ctx - context
        AD_PrintColor_ID - id
        Returns:
        Color or null
      • getColor

        public Color getColor()
        Get Color
        Returns:
        Color
      • setColor

        public void setColor​(Color color)
        Set Color
        Parameters:
        color - Color
      • getRRGGBB

        public String getRRGGBB()
        Get Color as RRGGBB hex string for HTML font tag
        Returns:
        rgb hex value
      • main

        public static void main​(String[] args)
        Create Standard Colors
        Parameters:
        args - args