vanted.attribute
Class ArcWeightAttribute

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

public class ArcWeightAttribute
extends org.graffiti.attributes.StringAttribute

The Class ArcWeightAttribute handles the arc-weight 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 path
          The Constant path.
static java.lang.String positionAttributeName
          The Constant positionAttributeName.
static java.lang.String positionAttributeNameEdge
          The Constant positionAttributeNameEdge.
static java.lang.String sizeAttributeName
          The Constant sizeAttributeName.
 
Fields inherited from interface org.graffiti.attributes.Attribute
SEPARATOR
 
Constructor Summary
ArcWeightAttribute()
          Instantiates a new arc-weight attribute.
ArcWeightAttribute(java.lang.String id)
          Instantiates a new arc-weight attribute.
ArcWeightAttribute(java.lang.String id, java.lang.String value)
          Instantiates a new arc-weight attribute.
 
Method Summary
 void addArcWeight(ArcWeight arcWeight)
          Adds the arc-weight.
 ArcWeight getArcWeight()
          Gets the arc-weight.
 java.lang.String getString()
           
 java.lang.Object getValue()
           
 boolean removeArcWeight()
          Removes the arc-weight.
 void setString(java.lang.String value)
           
 
Methods inherited from class org.graffiti.attributes.StringAttribute
copy, getTypedStringAttribute, getTypedStringAttribute, putAttributeType, setDefaultValue, 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

path

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

See Also:
Constant Field Values

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

positionAttributeNameEdge

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

See Also:
Constant Field Values
Constructor Detail

ArcWeightAttribute

public ArcWeightAttribute()
Instantiates a new arc-weight attribute.


ArcWeightAttribute

public ArcWeightAttribute(java.lang.String id)
Instantiates a new arc-weight attribute.

Parameters:
id - the id

ArcWeightAttribute

public ArcWeightAttribute(java.lang.String id,
                          java.lang.String value)
Instantiates a new arc-weight attribute.

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

getString

public java.lang.String getString()
Overrides:
getString in class org.graffiti.attributes.StringAttribute

getValue

public java.lang.Object getValue()
Specified by:
getValue in interface org.graffiti.attributes.Attribute
Specified by:
getValue in interface org.graffiti.plugin.Displayable
Overrides:
getValue in class org.graffiti.attributes.StringAttribute

setString

public void setString(java.lang.String value)
Overrides:
setString in class org.graffiti.attributes.StringAttribute

getArcWeight

public ArcWeight getArcWeight()
Gets the arc-weight.

Returns:
the arc-weight

addArcWeight

public void addArcWeight(ArcWeight arcWeight)
Adds the arc-weight.

Parameters:
arcWeight - the arc-weight

removeArcWeight

public boolean removeArcWeight()
Removes the arc-weight.

Returns:
true, if successful