Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.port80.graph.impl
Class DefaultGraphAttrTable  view DefaultGraphAttrTable download DefaultGraphAttrTable.java

java.lang.Object
  extended bycom.port80.util.attr.AttrTable
      extended bycom.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.


Field Summary
private static DefaultGraphAttrTable instance
           
private static java.lang.String NAME
           
static int RANKDIR_LR
           
static int RANKDIR_TB
           
 
Fields inherited from class com.port80.util.attr.AttrTable
parentAttrTable
 
Constructor Summary
private DefaultGraphAttrTable()
           
 
Method Summary
 void clearAttrs()
          Remove all local attributes.
static DefaultGraphAttrTable getInstance()
           
 java.lang.Object removeAttr(java.lang.String name)
          Remove a local attribute.
 void removeUnregisteredAttrs()
          Remove all unregistered attributes.
 java.lang.Object setAttr(java.lang.String name, boolean value)
           
 java.lang.Object setAttr(java.lang.String name, double value)
           
 java.lang.Object setAttr(java.lang.String name, float value)
           
 java.lang.Object setAttr(java.lang.String name, int value)
           
 java.lang.Object setAttr(java.lang.String name, long value)
           
 java.lang.Object setAttr(java.lang.String name, java.lang.Object value)
          Setting attributes always affect the local table only.
 java.lang.Object setAttrFromString(java.lang.String name, double value)
           
 java.lang.Object setAttrFromString(java.lang.String name, java.lang.String value)
           
 
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
 

Field Detail

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
Constructor Detail

DefaultGraphAttrTable

private DefaultGraphAttrTable()
Method Detail

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.