Class mxGraphMlKey


  • public class mxGraphMlKey
    extends java.lang.Object
    Represents a Key element in the GML Structure.
    • Constructor Detail

      • mxGraphMlKey

        public mxGraphMlKey​(java.lang.String keyId,
                            mxGraphMlKey.keyForValues keyFor,
                            java.lang.String keyName,
                            mxGraphMlKey.keyTypeValues keyType)
        Construct a key with the given parameters.
        Parameters:
        keyId - Key's ID
        keyFor - Scope of the key.
        keyName - Key Name
        keyType - Type of the values represented for this key.
      • mxGraphMlKey

        public mxGraphMlKey​(org.w3c.dom.Element keyElement)
        Construct a key from a xml key element.
        Parameters:
        keyElement - Xml key element.
    • Method Detail

      • getKeyDefault

        public java.lang.String getKeyDefault()
      • setKeyDefault

        public void setKeyDefault​(java.lang.String keyDefault)
      • getKeyId

        public java.lang.String getKeyId()
      • setKeyId

        public void setKeyId​(java.lang.String keyId)
      • getKeyName

        public java.lang.String getKeyName()
      • setKeyName

        public void setKeyName​(java.lang.String keyName)
      • generateElement

        public org.w3c.dom.Element generateElement​(org.w3c.dom.Document document)
        Generates a Key Element from this class.
        Parameters:
        document - Document where the key Element will be inserted.
        Returns:
        Returns the generated Elements.
      • enumForValue

        public mxGraphMlKey.keyForValues enumForValue​(java.lang.String value)
        Converts a String value in its corresponding enum value for the keyFor attribute.
        Parameters:
        value - Value in String representation.
        Returns:
        Returns the value in its enum representation.
      • stringForValue

        public java.lang.String stringForValue​(mxGraphMlKey.keyForValues value)
        Converts a enum value in its corresponding String value for the keyFor attribute.
        Parameters:
        value - Value in enum representation.
        Returns:
        Returns the value in its String representation.
      • enumTypeValue

        public mxGraphMlKey.keyTypeValues enumTypeValue​(java.lang.String value)
        Converts a String value in its corresponding enum value for the keyType attribute.
        Parameters:
        value - Value in String representation.
        Returns:
        Returns the value in its enum representation.
      • stringTypeValue

        public java.lang.String stringTypeValue​(mxGraphMlKey.keyTypeValues value)
        Converts a enum value in its corresponding string value for the keyType attribute.
        Parameters:
        value - Value in enum representation.
        Returns:
        Returns the value in its String representation.