vanted.attribute.token
Class TokenAttributeDiscrete

java.lang.Object
  extended by org.graffiti.attributes.AbstractAttribute
      extended by org.graffiti.attributes.StringAttribute
          extended by vanted.attribute.token.AbstractTokenAttribute
              extended by vanted.attribute.token.TokenAttributeDiscrete
All Implemented Interfaces:
org.graffiti.attributes.Attribute, org.graffiti.core.DeepCopy, org.graffiti.plugin.Displayable

public class TokenAttributeDiscrete
extends AbstractTokenAttribute

The Class TokenAttributeDiscrete handles a discrete token attribute.

Author:
Kevin Pucknat

Field Summary
static java.lang.String colorAttributeName
          The Constant colorAttributeName.
static java.lang.String name
          The Constant name.
static java.lang.String positionAttributeName
          The Constant positionAttributeName.
static java.lang.String sizeAttributeName
          The Constant sizeAttributeName.
 
Fields inherited from class vanted.attribute.token.AbstractTokenAttribute
path, seperator
 
Fields inherited from interface org.graffiti.attributes.Attribute
SEPARATOR
 
Constructor Summary
TokenAttributeDiscrete()
          Instantiates a new token attribute discrete.
TokenAttributeDiscrete(java.lang.String id)
          Instantiates a new token attribute discrete.
TokenAttributeDiscrete(java.lang.String id, java.lang.String value)
          Instantiates a new token attribute discrete.
 
Method Summary
 void removeAllTokens()
          Removes all tokens.
 boolean removeAnyToken()
          Removes any token.
 
Methods inherited from class vanted.attribute.token.AbstractTokenAttribute
addToken, getString, getTokens, getValue, removeToken, setDefaultValue, setString
 
Methods inherited from class org.graffiti.attributes.StringAttribute
copy, getTypedStringAttribute, getTypedStringAttribute, putAttributeType, toString, toXMLString
 
Methods inherited from class org.graffiti.attributes.AbstractAttribute
addEdgeAttributeType, addNodeAttributeType, getAttributable, getDescription, getIcon, getId, getName, getParent, getPath, getTypedAttribute, isTypedAttributeFromID, setDescription, setId, setParent, setValue, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

public static final java.lang.String name
The Constant name.

See Also:
Constant Field Values

positionAttributeName

public static final java.lang.String positionAttributeName
The Constant positionAttributeName.

See Also:
Constant Field Values

sizeAttributeName

public static final java.lang.String sizeAttributeName
The Constant sizeAttributeName.

See Also:
Constant Field Values

colorAttributeName

public static final java.lang.String colorAttributeName
The Constant colorAttributeName.

See Also:
Constant Field Values
Constructor Detail

TokenAttributeDiscrete

public TokenAttributeDiscrete()
Instantiates a new token attribute discrete.


TokenAttributeDiscrete

public TokenAttributeDiscrete(java.lang.String id)
Instantiates a new token attribute discrete.

Parameters:
id - the id

TokenAttributeDiscrete

public TokenAttributeDiscrete(java.lang.String id,
                              java.lang.String value)
Instantiates a new token attribute discrete.

Parameters:
id - the id
value - the value
Method Detail

removeAnyToken

public boolean removeAnyToken()
Removes any token.

Returns:
true, if successful

removeAllTokens

public void removeAllTokens()
Description copied from class: AbstractTokenAttribute
Removes all tokens.

Overrides:
removeAllTokens in class AbstractTokenAttribute