|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Provides access to data associated with an edge. A edge map can be considered as a map that allows only edges as keys. Edge keys of an edge map must belong to the same graph.
There are data accessor methods defined for the most common typed values as well.
The edge values are initialized with java default values (null, 0, 0.0, false) upon initialisation.
Method Summary | |
Object |
get(Object edge)
Returns the value bound to the given edge. |
boolean |
getBool(Object edge)
Returns the boolean value bound to the given edge. |
double |
getDouble(Object edge)
Returns the double value bound to the given edge. |
int |
getInt(Object edge)
Returns the integer value bound to the given edge. |
void |
set(Object edge,
Object value)
Associates the given value to the given edge. |
void |
setBool(Object edge,
boolean value)
Associates the given boolean value to the given edge. |
void |
setDouble(Object edge,
double value)
Associates the given double value to the given edge. |
void |
setInt(Object edge,
int value)
Associates the given integer value to the given edge. |
Method Detail |
public void set(Object edge, Object value)
set
in interface DataAcceptor
public Object get(Object edge)
get
in interface DataProvider
public void setBool(Object edge, boolean value)
setBool
in interface DataAcceptor
public boolean getBool(Object edge)
Precondition: The value must have been associated to the given edge by a call to setBool.
getBool
in interface DataProvider
public void setDouble(Object edge, double value)
setDouble
in interface DataAcceptor
public double getDouble(Object edge)
Precondition: The value must have been associated to the given edge by a call to setDouble.
getDouble
in interface DataProvider
public void setInt(Object edge, int value)
setInt
in interface DataAcceptor
public int getInt(Object edge)
Precondition: The value must have been associated to the given edge by a call to setInt.
getInt
in interface DataProvider
|
© Copyright 2000-2003, yWorks GmbH. All rights reserved. 2003 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |