Search this API

y.io.graphml.output
Class WriteEvent

java.lang.Object
  extended by java.util.EventObject
      extended by y.io.graphml.output.WriteEvent
All Implemented Interfaces:
java.io.Serializable

public class WriteEvent
extends java.util.EventObject

This is the event argument that is used by the WriteEventListener interface that can be queried from the GraphMLWriteContext.getWriteEvents() property.

This class holds a reference to the getContext() and the getItem() that is currently being written.

See Also:
Serialized Form
 

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
WriteEvent(java.lang.Object source, GraphMLWriteContext context, java.lang.Object item)
          Initializes a new instance of the WriteEvent class.
 
Method Summary
 GraphMLWriteContext getContext()
          Gets the context that is being used for writing.
 java.lang.Object getItem()
          Gets the item that is currently being written or null if nothing is applicable.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WriteEvent

public WriteEvent(java.lang.Object source,
                  GraphMLWriteContext context,
                  java.lang.Object item)
Initializes a new instance of the WriteEvent class.

Parameters:
source - The source where the event was raised.
context - The context to assign to getContext().
item - The item to assign to getItem().
Method Detail

getContext

public GraphMLWriteContext getContext()
Gets the context that is being used for writing.

Returns:
The context.

getItem

public java.lang.Object getItem()
Gets the item that is currently being written or null if nothing is applicable.

Returns:
The item being written.

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