public class mxGraphMlKey extends 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(Element keyElement)
Construct a key from a xml key element.
|
mxGraphMlKey(String keyId,
mxGraphMlKey.keyForValues keyFor,
String keyName,
mxGraphMlKey.keyTypeValues keyType)
Construct a key with the given parameters.
|
Modifier and Type | Method and Description |
---|---|
mxGraphMlKey.keyForValues |
enumForValue(String value)
Converts a String value in its corresponding enum value for the
keyFor attribute.
|
mxGraphMlKey.keyTypeValues |
enumTypeValue(String value)
Converts a String value in its corresponding enum value for the
keyType attribute.
|
Element |
generateElement(Document document)
Generates a Key Element from this class.
|
String |
getKeyDefault() |
mxGraphMlKey.keyForValues |
getKeyFor() |
String |
getKeyId() |
String |
getKeyName() |
mxGraphMlKey.keyTypeValues |
getKeyType() |
void |
setKeyDefault(String keyDefault) |
void |
setKeyFor(mxGraphMlKey.keyForValues keyFor) |
void |
setKeyId(String keyId) |
void |
setKeyName(String keyName) |
void |
setKeyType(mxGraphMlKey.keyTypeValues keyType) |
String |
stringForValue(mxGraphMlKey.keyForValues value)
Converts a enum value in its corresponding String value for the
keyFor attribute.
|
String |
stringTypeValue(mxGraphMlKey.keyTypeValues value)
Converts a enum value in its corresponding string value for the
keyType attribute.
|
public mxGraphMlKey(String keyId, mxGraphMlKey.keyForValues keyFor, 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(Element keyElement)
keyElement
- Xml key element.public String getKeyDefault()
public void setKeyDefault(String keyDefault)
public mxGraphMlKey.keyForValues getKeyFor()
public void setKeyFor(mxGraphMlKey.keyForValues keyFor)
public String getKeyId()
public void setKeyId(String keyId)
public String getKeyName()
public void setKeyName(String keyName)
public mxGraphMlKey.keyTypeValues getKeyType()
public void setKeyType(mxGraphMlKey.keyTypeValues keyType)
public Element generateElement(Document document)
document
- Document where the key Element will be inserted.public mxGraphMlKey.keyForValues enumForValue(String value)
value
- Value in String representation.public String stringForValue(mxGraphMlKey.keyForValues value)
value
- Value in enum representation.public mxGraphMlKey.keyTypeValues enumTypeValue(String value)
value
- Value in String representation.public String stringTypeValue(mxGraphMlKey.keyTypeValues value)
value
- Value in enum representation.Copyright (c) 2010 Gaudenz Alder, David Benson. All rights reserved.