Package generic.theme

Class GColorUIResource

java.lang.Object
java.awt.Color
generic.theme.GColor
generic.theme.GColorUIResource
All Implemented Interfaces:
Paint, Transparency, Serializable, UIResource

public class GColorUIResource extends GColor implements UIResource
Version of GColor that implements UIResource. It is important that when setting java defaults in the UIDefaults that it implements UIResource. Otherwise, java will think the color was set explicitly by client code and therefore can't update it generically when it goes to update the default color in the UIs for each component.
See Also:
  • Constructor Details

    • GColorUIResource

      public GColorUIResource(String id)
  • Method Details

    • toGColor

      public GColor toGColor()
      Returns a non-UIResource GColor for this GColorUiResource's id
      Returns:
      a non-UIResource GColor for this GColorUiResource's id