y.io.gml
Class HierarchicGraphObjectEncoder

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

public class HierarchicGraphObjectEncoder
extends Object
implements ObjectEncoder

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


Constructor Summary
HierarchicGraphObjectEncoder(HierarchicGraphObjectEncoder parent)
           
HierarchicGraphObjectEncoder(ObjectEncoder graphEncoder, ObjectEncoder interEdgeEncoder, HierarchicGraphObjectEncoder parent)
           
 
Method Summary
 String createNodeReference(Graph forGraph, Node n, HierarchyManager hm)
           
 void encode(Object item, GMLEncoder enc)
          This method will try to encode the given object using the GMLEncoder
 ObjectEncoder getGraphEncoder()
          Getter for property graphEncoder.
 ObjectEncoder getInterEdgeEncoder()
          Getter for property interEdgeEncoder.
 List getInterEdgeList()
           
 void setGraphEncoder(ObjectEncoder graphEncoder)
          Setter for property graphEncoder.
 void setInterEdgeEncoder(ObjectEncoder interEdgeEncoder)
          Setter for property interEdgeEncoder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HierarchicGraphObjectEncoder

public HierarchicGraphObjectEncoder(HierarchicGraphObjectEncoder parent)

HierarchicGraphObjectEncoder

public HierarchicGraphObjectEncoder(ObjectEncoder graphEncoder,
                                    ObjectEncoder interEdgeEncoder,
                                    HierarchicGraphObjectEncoder parent)
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

getInterEdgeEncoder

public ObjectEncoder getInterEdgeEncoder()
Getter for property interEdgeEncoder.

Returns:
Value of property interEdgeEncoder.

setInterEdgeEncoder

public void setInterEdgeEncoder(ObjectEncoder interEdgeEncoder)
Setter for property interEdgeEncoder.

Parameters:
interEdgeEncoder - New value of property interEdgeEncoder.

getInterEdgeList

public List getInterEdgeList()

createNodeReference

public String createNodeReference(Graph forGraph,
                                  Node n,
                                  HierarchyManager hm)

getGraphEncoder

public ObjectEncoder getGraphEncoder()
Getter for property graphEncoder.

Returns:
Value of property graphEncoder.

setGraphEncoder

public void setGraphEncoder(ObjectEncoder graphEncoder)
Setter for property graphEncoder.

Parameters:
graphEncoder - New value of property graphEncoder.

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

2003