Search this API

y.io.gml
Class NodeLabelGraphicsEncoder

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

public class NodeLabelGraphicsEncoder
extends LabelGraphicsEncoder

This class can encode NodeLabels in valid GML

 

Field Summary
static java.util.Map anchorEncoding
           
static java.util.Map modelEncoding
           
 
Constructor Summary
NodeLabelGraphicsEncoder()
           
 
Method Summary
 void encode(java.lang.Object item, GMLEncoder enc)
          This method will try to encode the given object using the GMLEncoder
static java.lang.String encodeAutoSizePolicy(byte policy)
           
 
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

anchorEncoding

public static final java.util.Map anchorEncoding

modelEncoding

public static final java.util.Map modelEncoding
Constructor Detail

NodeLabelGraphicsEncoder

public NodeLabelGraphicsEncoder()
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

encodeAutoSizePolicy

public static java.lang.String encodeAutoSizePolicy(byte policy)

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