Class ColorStack
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<ColorStack.Entry>
,Collection<ColorStack.Entry>
,List<ColorStack.Entry>
,RandomAccess
A
Stack
of RGBA colors.
This class extends the Stack
class and is used to
store ColorStack.Entry
objects, each representing an RGBA color.- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Defines the methods for blending colors.static final class
Represents an entry in the ColorStack. -
Field Summary
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
apply
(TDrawContext pencil) final ColorStack.Entry
final ColorStack.Entry
pop()
final ColorStack.Entry
push
(float r, float g, float b, float a) final ColorStack.Entry
push
(float r, float g, float b, float a, ColorStack.BlendMethod blendMethod) final ColorStack.Entry
push
(ColorStack.Entry item) final ColorStack.Entry
pushAlpha
(float alpha) Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, removeRange, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, toString, trimToSize
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
-
Constructor Details
-
ColorStack
public ColorStack()
-
-
Method Details
-
push
-
push
public final ColorStack.Entry push(float r, float g, float b, float a, ColorStack.BlendMethod blendMethod) -
pushAlpha
-
push
- Overrides:
push
in classStack<ColorStack.Entry>
-
pop
- Overrides:
pop
in classStack<ColorStack.Entry>
-
apply
-
calculate
-