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 java.util.Map edgeModelMap
          Mapping between label model identifier and string description
static java.util.Map edgePosMap
          Mapping between label position identifier and string description
static java.util.Map edgePrefMap
          Mapping between preferred label position identifier and string description
 
Constructor Summary
EdgeLabelGraphicsEncoder()
           
 
Method Summary
 void encode(java.lang.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, encodeType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

edgeModelMap

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


edgePosMap

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


edgePrefMap

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

Constructor Detail

EdgeLabelGraphicsEncoder

public EdgeLabelGraphicsEncoder()
Method Detail

encode

public void encode(java.lang.Object item,
                   GMLEncoder enc)
            throws java.io.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
Parameters:
item - the object to be encoded
enc - an encoder
Throws:
java.io.IOException - in the case of an I/O exception

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