java.lang.Object
com.port80.util.attr.AttrTable
com.port80.graph.impl.DefaultGraphAttrTable
- All Implemented Interfaces:
- com.port80.util.attr.IAttrTable
- public class DefaultGraphAttrTable
- extends com.port80.util.attr.AttrTable
Place holder for preset default graph attributes.
. The default values should never be changed.
. Client should never access this class directly, instance of this
class should only be used by vertex factories.
| Methods inherited from class com.port80.util.attr.AttrTable |
attrKeySet, getAttr, getAttrAsString, getAttrBool, getAttrBool, getAttrCached, getAttrDouble, getAttrDouble, getAttrFloat, getAttrFloat, getAttrInt, getAttrInt, getAttrLong, getAttrLong, getAttrRegistry, getAttrString, hasAttr, initAttr, initAttr, initAttr, initAttr, initAttr, initAttr, initAttr, initAttr |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME
private static final java.lang.String NAME
- See Also:
- Constant Field Values
RANKDIR_TB
public static final int RANKDIR_TB
- See Also:
- Constant Field Values
RANKDIR_LR
public static final int RANKDIR_LR
- See Also:
- Constant Field Values
instance
private static DefaultGraphAttrTable instance
DefaultGraphAttrTable
private DefaultGraphAttrTable()
getInstance
public static DefaultGraphAttrTable getInstance()
setAttrFromString
public java.lang.Object setAttrFromString(java.lang.String name,
java.lang.String value)
setAttr
public java.lang.Object setAttr(java.lang.String name,
java.lang.Object value)
- Description copied from class:
com.port80.util.attr.AttrTable
- Setting attributes always affect the local table only.
If attribute name is registered, attribute value must match the registered type.
Unregistered attribute values can be any type.
setAttr
public java.lang.Object setAttr(java.lang.String name,
boolean value)
setAttr
public java.lang.Object setAttr(java.lang.String name,
int value)
setAttr
public java.lang.Object setAttr(java.lang.String name,
long value)
setAttr
public java.lang.Object setAttr(java.lang.String name,
float value)
setAttr
public java.lang.Object setAttr(java.lang.String name,
double value)
setAttrFromString
public java.lang.Object setAttrFromString(java.lang.String name,
double value)
removeAttr
public java.lang.Object removeAttr(java.lang.String name)
- Description copied from interface:
com.port80.util.attr.IAttrTable
- Remove a local attribute. @return attribute removed.
removeUnregisteredAttrs
public void removeUnregisteredAttrs()
- Description copied from class:
com.port80.util.attr.AttrTable
- Remove all unregistered attributes. Remove everything if no attribute registry defined.
clearAttrs
public void clearAttrs()
- Description copied from interface:
com.port80.util.attr.IAttrTable
- Remove all local attributes.