[gui] Add IndexColorModel methods

Tom Tromey tromey@redhat.com
Thu Sep 30 16:37:00 GMT 2004


>>>>> "Jerry" == Jerry Quinn <jlquinn@optonline.net> writes:

Jerry> The API docs actually require a BigInteger to be returned for
Jerry> validBits. So we could keep a bitset internally and construct a
Jerry> BigInteger when needed.

Sorry, I didn't realize that the API used a BigInteger.

Jerry> One thing from sun's docs that isn't clear is
Jerry> if a client calls validBits() and changes a bit, is the model supposed
Jerry> to pick up that change?

As Mark points out a BigInteger is immutable.

Tom



More information about the Java-patches mailing list