Class MColor

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

public class MColor extends X_AD_Color
Color Model (DisplayType=27)
Version:
$Id: MColor.java,v 1.3 2006/07/30 00:51:03 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Constructor Details

    • MColor

      public MColor(Properties ctx, int AD_Color_ID, String trxName)
      Color Model
      Parameters:
      ctx - context
      AD_Color_ID - color
      trxName - transaction
    • MColor

      public MColor(Properties ctx, String AD_Color_UU, String trxName)
      Parameters:
      ctx -
      AD_Color_UU -
      trxName -
    • MColor

      public MColor(Properties ctx, ResultSet rs, String trxName)
      Parameters:
      ctx -
      rs -
      trxName -
  • Method Details

    • toString

      public String toString()
      String Representation
      Overrides:
      toString in class X_AD_Color
      Returns:
      string
    • getColor

      public Color getColor(boolean primary)
      Get Color
      Parameters:
      primary - true for primary color model (usually rgb), false for secondary color model (usually cmy)
      Returns:
      Color
    • getURL

      public String getURL(int AD_Image_ID)
      Get URL from Image
      Parameters:
      AD_Image_ID - image
      Returns:
      URL as String or null