y.io.gml
Class LabelGraphicsEncoder
java.lang.Object
|
+--y.io.gml.LabelGraphicsEncoder
- All Implemented Interfaces:
- ObjectEncoder
- Direct Known Subclasses:
- EdgeLabelGraphicsEncoder, NodeLabelGraphicsEncoder
- public class LabelGraphicsEncoder
- extends Object
- implements ObjectEncoder
This class can encode YLabels in valid GML
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LabelGraphicsEncoder
public LabelGraphicsEncoder()
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 encodedenc
- an encoder
encodeFontStyle
public static String encodeFontStyle(int style)
encodeAlignment
public static String encodeAlignment(byte alignment)