y.io.gml
Class HierarchyNodeObjectEncoder

java.lang.Object
  |
  +--y.io.gml.HierarchyNodeObjectEncoder
All Implemented Interfaces:
ObjectEncoder

public class HierarchyNodeObjectEncoder
extends Object
implements ObjectEncoder

This class is capable of encoding a node of a Hierarchic Graph in valid gml format. It is used by HierarchicGraphEncoderFactory.


Constructor Summary
HierarchyNodeObjectEncoder(HierarchicGraphObjectEncoder parent, HierarchicGraphEncoderFactory factory)
           
HierarchyNodeObjectEncoder(ObjectEncoder nodeEncoder, HierarchicGraphObjectEncoder parent, HierarchicGraphEncoderFactory factory)
           
 
Method Summary
 void encode(Object item, GMLEncoder enc)
          This method will try to encode the given object using the GMLEncoder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HierarchyNodeObjectEncoder

public HierarchyNodeObjectEncoder(HierarchicGraphObjectEncoder parent,
                                  HierarchicGraphEncoderFactory factory)

HierarchyNodeObjectEncoder

public HierarchyNodeObjectEncoder(ObjectEncoder nodeEncoder,
                                  HierarchicGraphObjectEncoder parent,
                                  HierarchicGraphEncoderFactory factory)
Method Detail

encode

public void encode(Object item,
                   GMLEncoder enc)
            throws IOException
Description copied from interface: ObjectEncoder
This method will try to encode the given object using the GMLEncoder

Specified by:
encode in interface ObjectEncoder
IOException
Parameters:
item - the object to be encoded
enc - an encoder

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

2003