A description of a more specific algorithm is considered a "subtype" and a description of a more general algorithm is considered a "supertype". Thus, the deriveSubType method provides a way to create a new CompositeType that is related to but more specific than an existing CompositeType and the getSuperType method provides a way to ask a given CompositeType for a more general algorithm to achieve the same result.
Note that you cannot construct a brand new root for a chain since the constructor is private. Every chain of types must at some point derive from the Any node provided here using the deriveSubType() method. The presence of this common Any node on every chain ensures that all chains end with the DESC_ANY descriptor so that a suitable General GraphicsPrimitive object can be obtained for the indicated algorithm if all of the more specific searches fail.
| Modifier and Type | Field and Description |
|---|---|
| public static final CompositeType | |
| public static final CompositeType | Any
The root CompositeType object for all chains of algorithm descriptions. |
| public static final CompositeType | |
| public static final CompositeType | |
| private static final HashMap | |
| private String | |
| public static final String | |
| public static final String | DESC_ANY
algorithm is a general algorithm that uses a CompositeContext to do the rendering. |
| public static final String | DESC_ANY_ALPHA
constant used to describe an algorithm that implements all 8 of the Porter-Duff rules in one Primitive. |
| public static final String | DESC_CLEAR
constants used to describe the various AlphaComposite algorithms. |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | DESC_SRC_NO_EA
constants used to describe the two common cases of AlphaComposite algorithms that are simpler if there is not extraAlpha. |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | DESC_XOR
constant used to describe the Graphics.setXORMode() algorithm |
| public static final CompositeType | |
| public static final CompositeType | |
| public static final CompositeType | |
| public static final CompositeType | |
| public static final CompositeType | |
| public static final CompositeType | |
| private CompositeType | |
| public static final CompositeType | |
| public static final CompositeType | |
| public static final CompositeType | |
| public static final CompositeType | |
| public static final CompositeType | |
| public static final CompositeType | |
| public static final CompositeType | |
| public static final CompositeType | |
| private int | |
| private static int | |
| public static final CompositeType |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public CompositeType | deriveSubType(String desc)
Return a new CompositeType object which uses this object as its more general "supertype" descriptor. |
| public boolean | equals(Object o)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public static CompositeType | forAlphaComposite(AlphaComposite ac)
Return a CompositeType object for the specified AlphaComposite rule. |
| public String | |
| public CompositeType | |
| public int | |
| public int | |
| public boolean | |
| public static synchronized int | |
| public String |
| AlphaXor | back to summary |
|---|---|
| public static final CompositeType AlphaXor | |
| Any | back to summary |
|---|---|
| public static final CompositeType Any The root CompositeType object for all chains of algorithm descriptions. | |
| AnyAlpha | back to summary |
|---|---|
| public static final CompositeType AnyAlpha | |
| Clear | back to summary |
|---|---|
| public static final CompositeType Clear | |
| compositeUIDMap | back to summary |
|---|---|
| private static final HashMap<String, Integer> compositeUIDMap | |
| desc | back to summary |
|---|---|
| private String desc | |
| DESC_ALPHA_XOR | back to summary |
|---|---|
| public static final String DESC_ALPHA_XOR | |
| DESC_ANY | back to summary |
|---|---|
| public static final String DESC_ANY algorithm is a general algorithm that uses a CompositeContext to do the rendering. | |
| DESC_ANY_ALPHA | back to summary |
|---|---|
| public static final String DESC_ANY_ALPHA constant used to describe an algorithm that implements all 8 of the Porter-Duff rules in one Primitive. | |
| DESC_CLEAR | back to summary |
|---|---|
| public static final String DESC_CLEAR constants used to describe the various AlphaComposite algorithms. | |
| DESC_DST | back to summary |
|---|---|
| public static final String DESC_DST | |
| DESC_DST_ATOP | back to summary |
|---|---|
| public static final String DESC_DST_ATOP | |
| DESC_DST_IN | back to summary |
|---|---|
| public static final String DESC_DST_IN | |
| DESC_DST_OUT | back to summary |
|---|---|
| public static final String DESC_DST_OUT | |
| DESC_DST_OVER | back to summary |
|---|---|
| public static final String DESC_DST_OVER | |
| DESC_SRC | back to summary |
|---|---|
| public static final String DESC_SRC | |
| DESC_SRC_ATOP | back to summary |
|---|---|
| public static final String DESC_SRC_ATOP | |
| DESC_SRC_IN | back to summary |
|---|---|
| public static final String DESC_SRC_IN | |
| DESC_SRC_NO_EA | back to summary |
|---|---|
| public static final String DESC_SRC_NO_EA constants used to describe the two common cases of AlphaComposite algorithms that are simpler if there is not extraAlpha. | |
| DESC_SRC_OUT | back to summary |
|---|---|
| public static final String DESC_SRC_OUT | |
| DESC_SRC_OVER | back to summary |
|---|---|
| public static final String DESC_SRC_OVER | |
| DESC_SRC_OVER_NO_EA | back to summary |
|---|---|
| public static final String DESC_SRC_OVER_NO_EA | |
| DESC_XOR | back to summary |
|---|---|
| public static final String DESC_XOR constant used to describe the Graphics.setXORMode() algorithm | |
| Dst | back to summary |
|---|---|
| public static final CompositeType Dst | |
| DstAtop | back to summary |
|---|---|
| public static final CompositeType DstAtop | |
| DstIn | back to summary |
|---|---|
| public static final CompositeType DstIn | |
| DstOut | back to summary |
|---|---|
| public static final CompositeType DstOut | |
| DstOver | back to summary |
|---|---|
| public static final CompositeType DstOver | |
| General | back to summary |
|---|---|
| public static final CompositeType General | |
| next | back to summary |
|---|---|
| private CompositeType next | |
| OpaqueSrcOverNoEa | back to summary |
|---|---|
| public static final CompositeType OpaqueSrcOverNoEa | |
| Src | back to summary |
|---|---|
| public static final CompositeType Src | |
| SrcAtop | back to summary |
|---|---|
| public static final CompositeType SrcAtop | |
| SrcIn | back to summary |
|---|---|
| public static final CompositeType SrcIn | |
| SrcNoEa | back to summary |
|---|---|
| public static final CompositeType SrcNoEa | |
| SrcOut | back to summary |
|---|---|
| public static final CompositeType SrcOut | |
| SrcOver | back to summary |
|---|---|
| public static final CompositeType SrcOver | |
| SrcOverNoEa | back to summary |
|---|---|
| public static final CompositeType SrcOverNoEa | |
| uniqueID | back to summary |
|---|---|
| private int uniqueID | |
| unusedUID | back to summary |
|---|---|
| private static int unusedUID | |
| Xor | back to summary |
|---|---|
| public static final CompositeType Xor | |
| CompositeType | back to summary |
|---|---|
| private CompositeType(CompositeType parent, String desc) | |
| deriveSubType | back to summary |
|---|---|
| public CompositeType deriveSubType(String desc) Return a new CompositeType object which uses this object as its more general "supertype" descriptor. If no operation can be found that implements the algorithm described more exactly by desc, then this object will define the more general compositing algorithm that can be used instead. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| forAlphaComposite | back to summary |
|---|---|
| public static CompositeType forAlphaComposite(AlphaComposite ac) Return a CompositeType object for the specified AlphaComposite rule. | |
| getDescriptor | back to summary |
|---|---|
| public String getDescriptor() | |
| getSuperType | back to summary |
|---|---|
| public CompositeType getSuperType() | |
| getUniqueID | back to summary |
|---|---|
| public int getUniqueID() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isDerivedFrom | back to summary |
|---|---|
| public boolean isDerivedFrom(CompositeType other) | |
| makeUniqueID | back to summary |
|---|---|
| public static synchronized int makeUniqueID(String desc) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |