public final class Color extends ProtoableNode
Element.DualDomNode, Element.ReplaceContentNode.ChangeLoggerAttrIsDefault, AttrIsFragment, AttrIsTransient, CREATEACTIONCREATE_ALWAYS_NEW, CREATE_IF_NOT_EXIST, CREATE_MUST_NOT_EXIST, CREATE_REPLACE, gsXFANamespacePrefixATTR_CHANGED, CHILD_ADDED, CHILD_REMOVED, DESCENDENT_ADDED, DESCENDENT_ATTR_CHANGED, DESCENDENT_REMOVED, DESCENDENT_VALUE_CHANGED, PARENT_CHANGED, PERMS_LOCK_CLEARED, PERMS_LOCK_SET, PROTO_ATTR_CHANGED, PROTO_CHILD_ADDED, PROTO_CHILD_REMOVED, PROTO_DESCENDENT_ADDED, PROTO_DESCENDENT_ATTR_CHANGED, PROTO_DESCENDENT_REMOVED, PROTO_DESCENDENT_VALUE_CHANGED, PROTO_VALUE_CHANGED, UPDATED, VALUE_CHANGED| Constructor and Description |
|---|
Color(Element parent,
Node prevSibling) |
| Modifier and Type | Method and Description |
|---|---|
Attribute |
defaultAttribute(int eTag) |
boolean |
equals(Object object)
Compare if two Color objects define the same color
|
int |
getBlue()
Get the blue value of the RGB triplet
|
double |
getGrayRate()
Get the converted grayscale value of the RGB triplet as a percentage
|
int |
getGrayScale()
Get the converted grayscale value of the RGB triplet
|
int |
getGreen()
Get the green value of the RGB triplet
|
int |
getRed()
Get the red value of the RGB triplet
|
int |
hashCode()
Returns a hash code value for the object.
|
boolean |
isContextSensitiveAttribute(int eTag) |
Attribute |
newAttribute(int eTag,
String value) |
void |
setAttribute(Attribute sValue,
int eTag)
Sets an attribute of this element.
|
void |
setBlue(int nBlue)
Set the blue value for the RGB triplet.
|
void |
setBlueInternal(int nBlue) |
void |
setColor(int nRed,
int nGreen,
int nBlue)
Set the Color.
|
void |
setColor(String sColor)
Set the Color.
|
void |
setGreen(int nGreen)
Set the green value for the RGB triplet.
|
void |
setGreenInternal(int nGreen) |
void |
setRed(int nRed)
Set the red value for the RGB triplet.
|
void |
setRedInternal(int nRed) |
String |
toString(char cDelimiter)
Return the string value for this color.
|
static String |
toString(int nRed,
int nGreen,
int nBlue,
char cDelimiter)
Return the string value for a given set of RGB values,
|
clone, createProto, elementGetAttribute, externalProtoFailed, fetchIDValues, getAttribute, getAttributeByName, getElement, getExternalProtoSource, getOneOfChild, getPI, getPI, getProto, getProtoed, getScriptTable, getText, hasExternalProto, hasProto, isDefault, isSpecified, notifyPeers, performResolveProtos, preSave, releaseExternalProtos, reResolveProto, resolveProto, setElement, setOneOfChild, setPermsLock, setProto, updateIDValuesappendChild, appendChild, appendPI, appendPI, assignNode, clone, connectPeerToDocument, constructKey, constructKeys, copyContent, defaultElement, defaultElement, establishID, evaluate, explodeQName, findAttr, findSchemaAttr, foundBadAttribute, foundBadAttribute, getAll, getAppModel, getAtom, getAttr, getAttribute, getAttrIndex, getAttrName, getAttrNS, getAttrProp, getAttrQName, getAttrVal, getChildReln, getClassAll, getClassIndex, getClassName, getDeltas, getElement, getElementClass, getElementLocal, getEnum, getEnum, getEventTable, getFirstXFAChild, getFirstXMLChild, getID, getIndex, getInheritedNS, getInstalledLocale, getIsNull, getLastXMLChild, getLineNumber, getLocalName, getModel, getName, getNode, getNodes, getNodeSchema, getNS, getNumAttrs, getOneOfChild, getPrefix, getProperty, getProperty, getSaveXMLSaveTransient, getSchemaType, getScriptMethodInfo, getSibling, getXFAChild, getXMLChild, getXMLName, getXPath, getXsiNilAttribute, inhibitPrettyPrint, inhibitPrettyPrint, insertChild, isContainer, isFragment, isHidden, isHidden, isIndexed, isInstalledLocaleAmbient, isLeaf, isNameSpaceAttr, isPropertySpecified, isPropertySpecified, isPropertyValid, isSpecified, isSpecified, isTransient, isTransparent, isValidAttr, isValidChild, isValidElement, loadXML, loadXML, makeDefault, makeNonDefault, optimizeNameSpace, peekAttribute, peekElement, peekOneOfChild, peekProperty, peekProperty, postSave, privateSetName, processTextChildrenDuringParse, removeAttr, removeAttr, removeChild, removePI, removePI, removeWhiteSpace, removeXsiNilAttribute, replaceChild, resetPostLoadXML, resolveAndEnumerateChildren, resolveNodeCreate, resolvePrefix, saveFilteredXML, saveXML, saveXML, serialize, setAttribute, setAttribute, setAttribute, setAttrProp, setDefaultFlag, setDOMProperties, setIsDataWindowRoot, setIsIndexed, setLineNumber, setLocalName, setModel, setName, setNS, setProperty, setProperty, setQName, setSaveXMLSaveTransient, setTransparent, setXMLName, setXsiNilAttribute, updateFromPeercheckAncestorPerms, checkDescendentPerms, checkPerms, cleanDirtyFlags, compareVersions, getData, getFirstXMLChildElement, getLocked, getNextXFASibling, getNextXMLSibling, getNextXMLSiblingElement, getNodeAsXML, getOwnerDocument, getPIAsXML, getPIName, getPreviousXMLSibling, getPrivateName, getPropName, getSOMExpression, getSOMExpression, getSomName, getUniqueSOMName, getWillDirty, getXFAChildCount, getXFAParent, getXfaPeer, getXMLChildCount, getXMLParent, hasChanged, isDirty, isMapped, isPermsLockSet, isTransient, locateChildByClass, locateChildByName, logValueChangeHelper, performSOMAssignment, remove, resolveNode, resolveNode, resolveNode, resolveNodes, resolveNodes, sendMessenge, setDirty, setDocument, setLocked, setMapped, setPrivateName, setWillDirty, setXfaPeer, unLock, validateSchema, validateUsage, validateUsageFailedIsFataladdPeer, addPeeredNode, clearPeers, deafen, getClassAtom, getClassTag, getPeer, getScriptProperty, getScriptThis, invokeFunction, isDeaf, isMute, isSameClass, isSameClass, isSameClass, mute, peerRemoved, removePeer, removePeeredNode, setClass, setClassTag, setScriptProperty, unDeafen, unMutepublic static String toString(int nRed, int nGreen, int nBlue, char cDelimiter)
nRed - -
Red RGB valuenGreen - -
Green RGB valuenBlue - -
Blue RGB valuecDelimiter - -
an optional parameter that will return the individual values
of the color delimeted by the delimiter string, or commas if
omitted.public Attribute defaultAttribute(int eTag)
defaultAttribute in class Elementpublic boolean isContextSensitiveAttribute(int eTag)
isContextSensitiveAttribute in class ProtoableNodepublic boolean equals(Object object)
public int hashCode()
public int getBlue()
public double getGrayRate()
public int getGrayScale()
public int getGreen()
public int getRed()
public Attribute newAttribute(int eTag, String value)
newAttribute in class Elementpublic void setAttribute(Attribute sValue, int eTag)
ProtoableNodesetAttribute in class ProtoableNodesValue - the attribute.eTag - The XFA tag name of the attribute being set.public void setBlue(int nBlue)
nBlue - the red value for the RGB triplet.public void setBlueInternal(int nBlue)
public void setColor(int nRed,
int nGreen,
int nBlue)
nRed - the red value for the RGB triplet.nGreen - the green value for the RGB triplet.nBlue - the blue value for the RGB triplet.public void setColor(String sColor)
sColor - the string value representing the RGB triplet. This String must be interned.public void setGreen(int nGreen)
nGreen - the red value for the RGB triplet.public void setGreenInternal(int nGreen)
public void setRed(int nRed)
nRed - the red value for the RGB triplet.public void setRedInternal(int nRed)
public String toString(char cDelimiter)
cDelimiter - -
an optional parameter that will return the individual values
of the color delimeted by the delimiter string, or commas if
omitted.Copyright © 2010 - 2020 Adobe. All Rights Reserved