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.
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|