|
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
This class is an adapter 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 | |
|---|---|
java.lang.Object |
get(java.lang.Object dataHolder)
Returns an Object value associated with the given data holder. |
boolean |
getBool(java.lang.Object dataHolder)
Returns a boolean value associated with the given data holder. |
double |
getDouble(java.lang.Object dataHolder)
Returns a double value associated with the given data holder. |
int |
getInt(java.lang.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)
IntValueHolderAdapter using a DataMap.
map - the DataMap that stores integer values for each node
and/or edge.public IntValueHolderAdapter(NodeMap map)
IntValueHolderAdapter using a NodeMap.
map - the NodeMap that stores an integer value for each node.public IntValueHolderAdapter(EdgeMap map)
IntValueHolderAdapter using an EdgeMap.
map - the EdgeMap that stores an integer value for each edge.
public IntValueHolderAdapter(DataAcceptor acc,
DataProvider dp)
IntValueHolderAdapter using a pair
of DataAcceptor and DataProvider instances for storage and retrieval.
acc - the DataAcceptor that holds an Object for each node and/or edgedp - the DataProvider that returns an Object for each node and/or edge| Method Detail |
|---|
public java.lang.Object get(java.lang.Object dataHolder)
Object value associated with the given data holder.
get in interface DataProviderdataHolder - the given Object
Object instancepublic boolean getBool(java.lang.Object dataHolder)
data holder.
getBool in interface DataProviderdataHolder - the given Object
public double getDouble(java.lang.Object dataHolder)
data holder.
getDouble in interface DataProviderdataHolder - the given Object
public int getInt(java.lang.Object dataHolder)
data holder.
getInt in interface DataProviderdataHolder - the given Object
|
© Copyright 2000-2025, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||