Search this API

y.base
Interface DataProvider

All Known Subinterfaces:
DataMap, EdgeMap, FaceMap, NodeMap
All Known Implementing Classes:
AlignmentDrawer.BottomAlignmentDataProvider, AlignmentDrawer.LeftAlignmentDataProvider, AlignmentDrawer.RightAlignmentDataProvider, AlignmentDrawer.TopAlignmentDataProvider, DataProviderAdapter, EdgeMapAdapter, GroupLayoutConfigurator.MinNodeSizeDataProvider, IntValueHolderAdapter, LeftRightPlacer.LeftRightDataProvider, Maps.HighPerformanceBoolMap, Maps.HighPerformanceDoubleMap, Maps.HighPerformanceIntMap, Maps.HighPerformanceObjectMap, NodeMapAdapter, NodeRealizerIntersectionCalculator, WrappedObjectDataProvider

public interface DataProvider

A general interface for data provision. A data provider grants access to data associated with one or more data holders. It constitutes a read-only view on particular data.

 

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.
 

Method Detail

get

java.lang.Object get(java.lang.Object dataHolder)
Returns an object value associated with the given data holder. This method may throw an UnsupportedOperationException.


getInt

int getInt(java.lang.Object dataHolder)
Returns an integer value associated with the given data holder. This method may throw an UnsupportedOperationException.


getDouble

double getDouble(java.lang.Object dataHolder)
Returns a double value associated with the given data holder. This method may throw an UnsupportedOperationException.


getBool

boolean getBool(java.lang.Object dataHolder)
Returns a boolean value associated with the given data holder. This method may throw an UnsupportedOperationException.


© Copyright 2000-2018,
yWorks GmbH.
All rights reserved.