Class ColoredObjectCollection

Object
ColoredObjectCollection

public class ColoredObjectCollection extends Object
Associates a ColorList with a ObjectCollection

Operations ensure both maintain an identical number of objects

Author:
Owen Feehan
  • Constructor Details

    • ColoredObjectCollection

      public ColoredObjectCollection()
      Create with an empty collection.
    • ColoredObjectCollection

      public ColoredObjectCollection(Stream<ColoredObject> stream)
      Create from a stream of ColoredObjects.
      Parameters:
      stream - the stream.
    • ColoredObjectCollection

      public ColoredObjectCollection(ObjectMask object, RGBColor color)
      Create with a single object and color.
      Parameters:
      object - the object
      color - the color
    • ColoredObjectCollection

      public ColoredObjectCollection(ObjectCollection objects, ColorList colors)
      Create with an existing object and color list.

      Both arguments are reused internally as data-structures.

      Parameters:
      objects - the object
      colors - the colors, which must have the same number of items as objects
  • Method Details