|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.layout.hierarchic.incremental.IntValueHolderAdapter
public class IntValueHolderAdapter
Adapter class that uses a DataMap, NodeMap, or EdgeMap
implementation and wraps it as a DataProvider that provides
IntValueHolder instances for each element.
See HierarchicLayouter.LAYER_VALUE_HOLDER_DPKEY for a typical use case
of this class.
| Constructor Summary | |
|---|---|
IntValueHolderAdapter(DataAcceptor acc,
DataProvider dp)
Creates a new instance of IntValueHolderAdapter using a pair of DataAcceptor and DataProvider instances for storage and retrieval. |
|
IntValueHolderAdapter(DataMap map)
Creates a new instance of IntValueHolderAdapter using a DataMap |
|
IntValueHolderAdapter(EdgeMap map)
Creates a new instance of IntValueHolderAdapter using an EdgeMap |
|
IntValueHolderAdapter(NodeMap map)
Creates a new instance of IntValueHolderAdapter using a NodeMap |
|
| Method Summary | |
|---|---|
Object |
get(Object dataHolder)
Returns an object value associated with the given data holder. |
boolean |
getBool(Object dataHolder)
Returns a boolean value associated with the given data holder. |
double |
getDouble(Object dataHolder)
Returns a double value associated with the given data holder. |
int |
getInt(Object dataHolder)
Returns an integer value associated with the given data holder. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IntValueHolderAdapter(DataMap map)
public IntValueHolderAdapter(NodeMap map)
public IntValueHolderAdapter(EdgeMap map)
public IntValueHolderAdapter(DataAcceptor acc,
DataProvider dp)
| Method Detail |
|---|
public Object get(Object dataHolder)
DataProvider
get in interface DataProviderpublic boolean getBool(Object dataHolder)
DataProvider
getBool in interface DataProviderpublic double getDouble(Object dataHolder)
DataProvider
getDouble in interface DataProviderpublic int getInt(Object dataHolder)
DataProvider
getInt in interface DataProvider
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||