Package | Description |
---|---|
com.yworks.yfiles.graph.labelmodels |
Contains interfaces and default implementations for label layout models.
|
com.yworks.yfiles.graph.portlocationmodels |
Contains interfaces and default implementations for port location models.
|
com.yworks.yfiles.graphml |
Definitions, default implementations, and support classes for GraphML I/O support.
|
Modifier and Type | Method and Description |
---|---|
boolean |
GenericLabelModel.canConvert(IWriteContext context,
Object value) |
MarkupExtension |
GenericLabelModel.convert(IWriteContext context,
Object value) |
Modifier and Type | Method and Description |
---|---|
boolean |
GenericPortLocationModel.canConvert(IWriteContext context,
Object value) |
MarkupExtension |
GenericPortLocationModel.convert(IWriteContext context,
Object value) |
Modifier and Type | Class and Description |
---|---|
class |
ChildWriteContext
An
IWriteContext implementation for use in the context of GraphMLWriter that wraps a given instance and
delegates most of the calls to it but allows for modifying lookup and
serialization properties . |
Modifier and Type | Method and Description |
---|---|
protected IWriteContext |
GraphMLWriter.createWriteContext(IGraph graph,
IXmlWriter writer)
Create the initial
IWriteContext instance. |
IWriteContext |
WriteEventArgs.getContext()
Gets the context that is being used for writing.
|
IWriteContext |
QueryReferenceIdEventArgs.getContext()
The current write context that can be used by the event handler for additional information.
|
IWriteContext |
QueryOutputHandlersEventArgs.getContext()
Gets the context for which the handlers are queried.
|
IWriteContext |
HandleSerializationEventArgs.getContext()
Gets the context to be used for writing.
|
IWriteContext |
ChildWriteContext.getParentContext()
Gets the parent context to which most calls are delegated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
IMarkupExtensionConverter.canConvert(IWriteContext context,
Object value)
Returns if the converter can convert the
value to a MarkupExtension in the current write context. |
MarkupExtension |
IMarkupExtensionConverter.convert(IWriteContext context,
Object value)
Converts the
value to a MarkupExtension using the current write context. |
String |
IGraphElementIdProvider.getEdgeId(IWriteContext context,
IEdge edge)
Get an ID for the specified
edge object. |
String |
IGraphElementIdProvider.getGraphId(IWriteContext context,
IGraph graph)
Get an ID for the specified
graph object. |
IReferenceHandle |
IReferenceHandler.getHandle(IWriteContext context,
Object subject)
Gets the reference handle for a given subject.
|
XmlName |
IXamlNameMapper.getName(IWriteContext context,
Type type)
Returns the XML tag name that belongs to type .
|
String |
IGraphElementIdProvider.getNodeId(IWriteContext context,
INode node)
Get an ID for the specified
node object. |
Iterable<IOutputHandler> |
GraphMLWriter.getOutputHandlers(IWriteContext context,
KeyScope scope)
Dynamically retrieve all
IOutputHandler that should be used for the current write process. |
String |
IGraphElementIdProvider.getPortId(IWriteContext context,
IPort port)
Get an ID for the specified
port object. |
protected TData |
MapperOutputHandler.getValue(IWriteContext context,
TKey key)
Callback method that obtains the data for the given key.
|
protected abstract TData |
AbstractOutputHandler.getValue(IWriteContext context,
TKey key)
Callback method that obtains the data for the given key.
|
boolean |
IOutputHandler.isDefaultValue(IWriteContext context)
Determines whether in the current context, the value is the default value and therefore no data element needs to be
written.
|
boolean |
AbstractOutputHandler.isDefaultValue(IWriteContext context)
Determines whether in the current context, the value is the default value and therefore no data element needs to be
written.
|
void |
IReferenceHandler.markAsUnshared(IWriteContext context,
Object subject)
Unregister a shared resource.
|
SharingState |
IReferenceHandler.registerResource(IWriteContext context,
Object subject)
Register a shared resource.
|
void |
XamlSerializer.serialize(Type type,
IWriteContext context,
Object subject)
Serialize the given object to a
IXmlWriter . |
<T> void |
IWriteContext.serialize(Type targetType,
IWriteContext context,
T item)
Serialize
item to an XML representation. |
protected <T> void |
GraphMLWriter.serialize(Type targetType,
IWriteContext context,
T item)
Serialize
item . |
<T> void |
ChildWriteContext.serialize(Type targetType,
IWriteContext context,
T item) |
void |
MapperOutputHandler.writeKeyDefinitionContent(IWriteContext context)
Writes the contents of the key definition.
|
void |
IOutputHandler.writeKeyDefinitionContent(IWriteContext context)
Writes the contents of the key definition.
|
void |
AbstractOutputHandler.writeKeyDefinitionContent(IWriteContext context)
Writes the contents of the key definition.
|
void |
IOutputHandler.writeValue(IWriteContext context)
Actually writes the value for the current context.
|
void |
AbstractOutputHandler.writeValue(IWriteContext context)
Actually writes the value for the current context.
|
protected void |
MapperOutputHandler.writeValueCore(IWriteContext context,
TData data)
Callback method that performs the actual writing of the data using either the
Serializer or the
serialize(Type, IWriteContext, Object) method. |
protected abstract void |
AbstractOutputHandler.writeValueCore(IWriteContext context,
TData data)
Callback method that performs the actual writing of the data.
|
Constructor and Description |
---|
ChildWriteContext(IWriteContext parentContext)
Initializes a new instance of the
ChildWriteContext class that delegates to the given parent context. |
ChildWriteContext(IWriteContext parentContext,
Object currentObject)
Initializes a new instance of the
ChildWriteContext class that delegates to the provided context and returns the
given value in ChildWriteContext.getCurrent() . |
GraphMLWriteValueSerializerContext(IWriteContext context)
Creates a new instance that wraps .
|
HandleSerializationEventArgs(IWriteContext context,
Object item)
Initializes a new instance of the
HandleSerializationEventArgs class using the provided context to write the item
using the given type for serialization. |
HandleSerializationEventArgs(IWriteContext context,
Object item,
Type serializationType)
Initializes a new instance of the
HandleSerializationEventArgs class using the provided context to write the item
using the given type for serialization. |
QueryOutputHandlersEventArgs(IWriteContext context,
KeyScope scope)
Initializes a new instance of the
QueryOutputHandlersEventArgs class. |
QueryReferenceIdEventArgs(IWriteContext context,
Object value)
Creates a new instance.
|
WriteEventArgs(IWriteContext context,
Object item)
Initializes a new instance of the
WriteEventArgs class. |