Package | Description |
---|---|
com.yworks.yfiles.graph |
Definitions, default implementations, and support classes that represent graph structures and provide facilities for their programmatic modification.
|
com.yworks.yfiles.graphml |
Definitions, default implementations, and support classes for GraphML I/O support.
|
com.yworks.yfiles.layout |
Provides essential classes and interfaces that constitute the infrastructure for automatic graph layout generation.
|
com.yworks.yfiles.layout.circular |
Provides circular layout style algorithms.
|
com.yworks.yfiles.layout.hierarchic |
Provides hierarchic layout style algorithms.
|
com.yworks.yfiles.layout.radial |
Provides the radial layout algorithm.
|
com.yworks.yfiles.view |
Contains the main UI classes, interfaces, default implementations and support classes that can be used to display
IGraph instances. |
Modifier and Type | Class and Description |
---|---|
class |
Mapper<K,V>
|
Modifier and Type | Method and Description |
---|---|
default <K,V> IMapper<K,V> |
IMapperRegistry.createConstantMapper(Class<K> kType,
Class<V> vType,
Object tag,
V constant)
|
default <V> IMapper<IEdge,V> |
IMapperRegistry.createConstantMapper(Class<V> valueType,
EdgeDpKey<V> tag,
V constant)
|
default <V> IMapper<ILabel,V> |
IMapperRegistry.createConstantMapper(Class<V> valueType,
ILabelLayoutDpKey<V> tag,
V constant)
|
default <V> IMapper<INode,V> |
IMapperRegistry.createConstantMapper(Class<V> valueType,
NodeDpKey<V> tag,
V constant)
|
default <K,V> IMapper<K,V> |
IMapperRegistry.createDelegateMapper(Class<K> kType,
Class<V> vType,
Object tag,
Function<K,V> getter)
|
default <V> IMapper<IEdge,V> |
IMapperRegistry.createDelegateMapper(Class<V> valueType,
EdgeDpKey<V> tag,
Function<IEdge,V> getter)
|
default <V> IMapper<ILabel,V> |
IMapperRegistry.createDelegateMapper(Class<V> valueType,
ILabelLayoutDpKey<V> tag,
Function<ILabel,V> getter)
|
default <V> IMapper<INode,V> |
IMapperRegistry.createDelegateMapper(Class<V> valueType,
NodeDpKey<V> tag,
Function<INode,V> getter)
|
static <K,V> IMapper<K,V> |
IMapper.fromConstant(V constant)
Creates a constant mapper that will always return the
constant . |
static <K,V> IMapper<K,V> |
IMapper.fromFunction(Function<K,V> getter)
Create an implementation of
IMapper that delegates getValue(java.lang.Object) getter calls to the
provided handler. |
<K,V> IMapper<K,V> |
MapperRegistry.getMapper(Class<K> keyType,
Class<V> valueType,
Object tag) |
<K,V> IMapper<K,V> |
IMapperRegistry.getMapper(Class<K> keyType,
Class<V> valueType,
Object tag)
Returns a mapper that has previously been registered with this instance for the given tag.
|
default <V> IMapper<IEdge,V> |
IMapperRegistry.getMapper(Class<V> valueType,
EdgeDpKey<V> tag)
Returns a mapper that has previously been registered with this instance for the given tag.
|
default <V> IMapper<ILabel,V> |
IMapperRegistry.getMapper(Class<V> valueType,
ILabelLayoutDpKey<V> tag)
Returns a mapper that has previously been registered with this instance for the given tag.
|
default <V> IMapper<INode,V> |
IMapperRegistry.getMapper(Class<V> valueType,
NodeDpKey<V> tag)
Returns a mapper that has previously been registered with this instance for the given tag.
|
default IMapper<Object,Object> |
IMapperRegistry.getObjectObjectMapper(Object tag)
Returns a mapper instance for which there has previously been registered an instance for the given tag, however using a
different type parameter set.
|
Modifier and Type | Method and Description |
---|---|
<K,V> void |
MapperRegistry.addMapper(Class<K> keyType,
Class<V> valueType,
Object tag,
IMapper<K,V> mapper) |
<K,V> void |
IMapperRegistry.addMapper(Class<K> keyType,
Class<V> valueType,
Object tag,
IMapper<K,V> mapper)
Registers a mapper for the given tag.
|
default <V> void |
IMapperRegistry.addMapper(Class<V> valueType,
EdgeDpKey<V> tag,
IMapper<IEdge,V> mapper)
Adds a previously created mapper to this instance for the given tag.
|
default <V> void |
IMapperRegistry.addMapper(Class<V> valueType,
ILabelLayoutDpKey<V> tag,
IMapper<ILabel,V> mapper)
Adds a previously created mapper to this instance for the given tag.
|
default <V> void |
IMapperRegistry.addMapper(Class<V> valueType,
NodeDpKey<V> tag,
IMapper<INode,V> mapper)
Adds a previously created mapper to this instance for the given tag.
|
static <TKey,TValue> |
MapperMetadata.create(Class<TKey> keyType,
Class<TValue> valueType,
IMapper<TKey,TValue> mapper)
Creates an instance for the specified mapper.
|
Modifier and Type | Class and Description |
---|---|
class |
CreationProperties
|
Modifier and Type | Method and Description |
---|---|
protected <TKey,TData> |
GraphMLIOHandler.createMapper(Class<TKey> keyType,
Class<TData> dataType,
IParseContext context,
Object registryTag)
Callback used by
GraphMLIOHandler.addRegistryInputMapper(Class, Class, String) and its overloads to creates the mapper
instance. |
IMapper<TKey,TData> |
MapperOutputHandler.getMapper()
Gets the mapper to use for querying the data for each item.
|
IMapper<TKey,TData> |
MapperInputHandler.getMapper()
Gets the mapper to use for storing the data.
|
Modifier and Type | Method and Description |
---|---|
<TKey,TData> |
GraphMLIOHandler.addInputMapperFuture(Class<TKey> keyType,
Class<TData> dataType,
Predicate<Element> keyDefinitionPredicate,
IEventHandler<HandleDeserializationEventArgs> deserializationCallback)
|
<TKey,TData> |
GraphMLIOHandler.addInputMapperFuture(Class<TKey> keyType,
Class<TData> dataType,
String name)
|
<TKey,TData> |
GraphMLIOHandler.addRegistryInputMapper(Class<TKey> keyType,
Class<TData> dataType,
Object tag,
Predicate<Element> keyDefinitionPredicate,
IEventHandler<HandleDeserializationEventArgs> deserializationCallback)
Create a
Future instance that wraps an IInputHandler that stores the data in an IMapper that
will be created in the graph's IMapperRegistry . |
<TKey,TData> |
GraphMLIOHandler.addRegistryInputMapper(Class<TKey> keyType,
Class<TData> dataType,
String name)
Create a
Future instance that wraps an IInputHandler that stores the data in an IMapper that
will be created in the graph's IMapperRegistry . |
Modifier and Type | Method and Description |
---|---|
<TKey,TData> |
GraphMLIOHandler.addInputMapper(Class<TKey> keyType,
Class<TData> dataType,
Predicate<Element> keyDefinitionPredicate,
IMapper<TKey,TData> mapper,
IEventHandler<HandleDeserializationEventArgs> deserializationCallback)
Register a
IMapper instance for use as an input data target. |
<TKey,TData> |
GraphMLIOHandler.addInputMapper(Class<TKey> keyType,
Class<TData> dataType,
String name,
IMapper<TKey,TData> mapper)
Register a
IMapper instance for use as an input data target. |
<TModelItem,TValue> |
GraphMLIOHandler.addOutputMapper(Class<TModelItem> modelItemType,
Class<TValue> valueType,
String name,
IMapper<TModelItem,TValue> mapper)
Register a
IMapper instance for use as an output data source. |
<TModelItem,TValue> |
GraphMLIOHandler.addOutputMapper(Class<TModelItem> modelItemType,
Class<TValue> valueType,
String name,
String uri,
IMapper<TModelItem,TValue> mapper,
IEventHandler<HandleSerializationEventArgs> serializationCallback,
KeyType declaredKeyType)
Register a
IMapper instance for use as an output data source. |
static <TKey,TData> |
GraphMLIOHandler.createMapperInputHandler(Class<TKey> modelItemType,
Class<TData> dataType,
IMapper<TKey,TData> mapper,
IEventHandler<HandleDeserializationEventArgs> deserializationCallback)
Convenience factory method that can create an instance of several predefined
IInputHandler implementations that
match the provided TKey and TData . |
static <TKey,TData> |
GraphMLIOHandler.createMapperOutputHandler(Class<TKey> modelItemType,
Class<TData> dataType,
String name,
IMapper<TKey,TData> mapper,
IEventHandler<HandleSerializationEventArgs> serializationCallback)
Convenience factory method that can create an instance of several predefined
IOutputHandler implementations that
match the provided TKey and TData . |
void |
MapperOutputHandler.setMapper(IMapper<TKey,TData> value)
Sets the mapper to use for querying the data for each item.
|
void |
MapperInputHandler.setMapper(IMapper<TKey,TData> value)
Sets the mapper to use for storing the data.
|
Modifier and Type | Method and Description |
---|---|
<T> IMapper<IModelItem,T> |
YGraphAdapter.createMapper(IDataProvider dataProvider)
Creates an
IMapper that delegates to the provided IDataProvider when queried for items in the
IGraph . |
<T> IMapper<IEdge,T> |
YGraphAdapter.createMapper(IEdgeMap edgeMap)
|
<T> IMapper<INode,T> |
YGraphAdapter.createMapper(INodeMap nodeMap)
|
IMapper<TItem,TValue> |
ItemMapping.getMapper()
Gets an
IMapper that realizes the mapping. |
IMapper<TItem,Boolean> |
ItemCollection.getMapper()
Gets a mapping from the items to a boolean value.
|
IMapper<V,Boolean> |
SingleItemCollection.provideMapper(LayoutGraphAdapter adapter,
ILayoutAlgorithm layout)
Provides a mapper describing which elements are contained in this
ItemCollection . |
IMapper<TItem,TValue> |
ItemMapping.provideMapper(LayoutGraphAdapter adapter,
ILayoutAlgorithm layout)
Provides a mapper mapping the items to values.
|
IMapper<TItem,Boolean> |
ItemCollection.provideMapper(LayoutGraphAdapter adapter,
ILayoutAlgorithm layout)
Provides a mapper describing which elements are contained in this
ItemCollection . |
IMapper<TItem,TValue> |
ContextItemMapping.provideMapper(LayoutGraphAdapter adapter,
ILayoutAlgorithm layout,
TContext context)
Provides a mapper mapping the items to values.
|
Modifier and Type | Method and Description |
---|---|
<K,V> IDataProvider |
LayoutGraphAdapter.addDataProvider(Object dataKey,
IMapper<K,V> mapper)
Registers a data provider with the graph using the given look-up key and wrapping the given mapper.
|
<K,V> IDataMap |
YGraphAdapter.createDataMap(Class<K> kType,
Class<V> vType,
IMapper<K,V> mapper)
|
<K,V> IDataProvider |
YGraphAdapter.createDataProvider(Class<K> kType,
IMapper<K,V> mapper)
Creates an
IDataProvider that delegates to the provided IMapper when queried for items in the
YGraph . |
<V> IEdgeMap |
YGraphAdapter.createEdgeMap(IMapper<IEdge,V> mapper)
|
<V> INodeMap |
YGraphAdapter.createNodeMap(IMapper<INode,V> mapper)
|
void |
ItemCollection.setMapper(IMapper<TItem,Boolean> value)
Sets a mapping from the items to a boolean value.
|
void |
ItemMapping.setMapper(IMapper<TItem,TValue> value)
Sets an
IMapper that realizes the mapping. |
Constructor and Description |
---|
DataMapAdapter(Class<K> kType,
Class<V> vType,
IMapper<K,V> mapper)
Initializes a new instance of the
DataMapAdapter class. |
DataProviderAdapter(Class<TKey> kType,
IMapper<TKey,TValue> mapper)
Creates a new instance that adapts the provided mapper instance.
|
Modifier and Type | Method and Description |
---|---|
IMapper<INode,Integer> |
CircularLayoutData.getCircleIds()
Gets the mapper from nodes to their circle id.
|
Modifier and Type | Method and Description |
---|---|
void |
CircularLayoutData.setCircleIds(IMapper<INode,Integer> value)
Sets the mapper from nodes to their circle id.
|
Modifier and Type | Method and Description |
---|---|
IMapper<INode,Integer> |
HierarchicLayoutData.getLayerIndices()
Gets a mapper from nodes to the index of their layer.
|
IMapper<INode,Integer> |
HierarchicLayoutData.getSequenceIndices()
Gets a mapper from nodes to the sequence index in their layer.
|
IMapper<IModelItem,Object> |
IncrementalHintItemMapping.provideMapper(LayoutGraphAdapter adapter,
ILayoutAlgorithm layout,
IIncrementalHintsFactory hintsFactory) |
Modifier and Type | Method and Description |
---|---|
void |
HierarchicLayoutData.setLayerIndices(IMapper<INode,Integer> value)
Sets a mapper from nodes to the index of their layer.
|
void |
HierarchicLayoutData.setSequenceIndices(IMapper<INode,Integer> value)
Sets a mapper from nodes to the sequence index in their layer.
|
Modifier and Type | Method and Description |
---|---|
IMapper<INode,RadialLayout.NodeInfo> |
RadialLayoutData.getNodeInfos()
Gets the mapping from nodes to a
RadialLayout.NodeInfo describing on which circle and in which sector the node
is placed. |
Modifier and Type | Method and Description |
---|---|
void |
RadialLayoutData.setNodeInfos(IMapper<INode,RadialLayout.NodeInfo> value)
Sets the mapping from nodes to a
RadialLayout.NodeInfo describing on which circle and in which sector the node
is placed. |
Modifier and Type | Method and Description |
---|---|
static IAnimation |
IAnimation.createGraphAnimation(IGraph graph,
IMapper<INode,IRectangle> targetNodeLayouts,
IMapper<IEdge,IPoint[]> targetBendLocations,
IMapper<IPort,IPortLocationModelParameter> targetPortLocations,
IMapper<ILabel,ILabelModelParameter> targetLayoutParameters,
Duration preferredDuration)
Creates a new
IAnimation that animates the given layout of all types of graph items. |
static IAnimation |
IAnimation.createGraphAnimation(IGraph graph,
IMapper<INode,IRectangle> targetNodeLayouts,
IMapper<IEdge,IPoint[]> targetBendLocations,
IMapper<IPort,IPortLocationModelParameter> targetPortLocations,
IMapper<ILabel,ILabelModelParameter> targetLayoutParameters,
Duration preferredDuration)
Creates a new
IAnimation that animates the given layout of all types of graph items. |
static IAnimation |
IAnimation.createGraphAnimation(IGraph graph,
IMapper<INode,IRectangle> targetNodeLayouts,
IMapper<IEdge,IPoint[]> targetBendLocations,
IMapper<IPort,IPortLocationModelParameter> targetPortLocations,
IMapper<ILabel,ILabelModelParameter> targetLayoutParameters,
Duration preferredDuration)
Creates a new
IAnimation that animates the given layout of all types of graph items. |
static IAnimation |
IAnimation.createGraphAnimation(IGraph graph,
IMapper<INode,IRectangle> targetNodeLayouts,
IMapper<IEdge,IPoint[]> targetBendLocations,
IMapper<IPort,IPortLocationModelParameter> targetPortLocations,
IMapper<ILabel,ILabelModelParameter> targetLayoutParameters,
Duration preferredDuration)
Creates a new
IAnimation that animates the given layout of all types of graph items. |