public class mxGraphMlKey
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
mxGraphMlKey.keyForValues
Possibles values for the keyFor Attribute
|
static class |
mxGraphMlKey.keyTypeValues
Possibles values for the keyType Attribute.
|
Constructor and Description |
---|
mxGraphMlKey(org.w3c.dom.Element keyElement)
Construct a key from a xml key element.
|
mxGraphMlKey(java.lang.String keyId,
mxGraphMlKey.keyForValues keyFor,
java.lang.String keyName,
mxGraphMlKey.keyTypeValues keyType)
Construct a key with the given parameters.
|
Modifier and Type | Method and Description |
---|---|
mxGraphMlKey.keyForValues |
enumForValue(java.lang.String value)
Converts a String value in its corresponding enum value for the
keyFor attribute.
|
mxGraphMlKey.keyTypeValues |
enumTypeValue(java.lang.String value)
Converts a String value in its corresponding enum value for the
keyType attribute.
|
org.w3c.dom.Element |
generateElement(org.w3c.dom.Document document)
Generates a Key Element from this class.
|
java.lang.String |
getKeyDefault() |
mxGraphMlKey.keyForValues |
getKeyFor() |
java.lang.String |
getKeyId() |
java.lang.String |
getKeyName() |
mxGraphMlKey.keyTypeValues |
getKeyType() |
void |
setKeyDefault(java.lang.String keyDefault) |
void |
setKeyFor(mxGraphMlKey.keyForValues keyFor) |
void |
setKeyId(java.lang.String keyId) |
void |
setKeyName(java.lang.String keyName) |
void |
setKeyType(mxGraphMlKey.keyTypeValues keyType) |
java.lang.String |
stringForValue(mxGraphMlKey.keyForValues value)
Converts a enum value in its corresponding String value for the
keyFor attribute.
|
java.lang.String |
stringTypeValue(mxGraphMlKey.keyTypeValues value)
Converts a enum value in its corresponding string value for the
keyType attribute.
|
public mxGraphMlKey(java.lang.String keyId, mxGraphMlKey.keyForValues keyFor, java.lang.String keyName, mxGraphMlKey.keyTypeValues keyType)
keyId
- Key's IDkeyFor
- Scope of the key.keyName
- Key NamekeyType
- Type of the values represented for this key.public mxGraphMlKey(org.w3c.dom.Element keyElement)
keyElement
- Xml key element.public java.lang.String getKeyDefault()
public void setKeyDefault(java.lang.String keyDefault)
public mxGraphMlKey.keyForValues getKeyFor()
public void setKeyFor(mxGraphMlKey.keyForValues keyFor)
public java.lang.String getKeyId()
public void setKeyId(java.lang.String keyId)
public java.lang.String getKeyName()
public void setKeyName(java.lang.String keyName)
public mxGraphMlKey.keyTypeValues getKeyType()
public void setKeyType(mxGraphMlKey.keyTypeValues keyType)
public org.w3c.dom.Element generateElement(org.w3c.dom.Document document)
document
- Document where the key Element will be inserted.public mxGraphMlKey.keyForValues enumForValue(java.lang.String value)
value
- Value in String representation.public java.lang.String stringForValue(mxGraphMlKey.keyForValues value)
value
- Value in enum representation.public mxGraphMlKey.keyTypeValues enumTypeValue(java.lang.String value)
value
- Value in String representation.public java.lang.String stringTypeValue(mxGraphMlKey.keyTypeValues value)
value
- Value in enum representation.Copyright (c) 2010 Gaudenz Alder, David Benson. All rights reserved.