Search this API

y.io.gml
Class EdgeLabelGraphicsEncoder

java.lang.Object
  extended by y.io.gml.LabelGraphicsEncoder
      extended by y.io.gml.EdgeLabelGraphicsEncoder
All Implemented Interfaces:
ObjectEncoder

public class EdgeLabelGraphicsEncoder
extends LabelGraphicsEncoder

This class can encode EdgeLabels in valid GML


Field Summary
static Map edgeModelMap
          Mapping between label model identifier and string description
static Map edgePosMap
          Mapping between label position identifier and string description
static Map edgePrefMap
          Mapping between preferred label position identifier and string description
 
Constructor Summary
EdgeLabelGraphicsEncoder()
           
 
Method Summary
 void encode(Object item, GMLEncoder enc)
          This method will try to encode the given object using the GMLEncoder
 
Methods inherited from class y.io.gml.LabelGraphicsEncoder
encodeAlignment, encodeFontStyle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

edgeModelMap

public static final Map edgeModelMap
Mapping between label model identifier and string description


edgePosMap

public static final Map edgePosMap
Mapping between label position identifier and string description


edgePrefMap

public static final Map edgePrefMap
Mapping between preferred label position identifier and string description

Constructor Detail

EdgeLabelGraphicsEncoder

public EdgeLabelGraphicsEncoder()
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
Overrides:
encode in class LabelGraphicsEncoder
Throws:
IOException - in the case of an I/O exception
Parameters:
item - the object to be encoded
enc - an encoder

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