ini.trakem2.utils
Class ReconstructArea

java.lang.Object
  extended by ini.trakem2.utils.ReconstructArea

public final class ReconstructArea
extends java.lang.Object

Reconstruct an Area from a list of XML <t2_path d="M ... z"/> entries.


Constructor Summary
ReconstructArea()
           
 
Method Summary
 void add(java.lang.String svg_path)
          To reconstruct from XML, takes a "M ....
 java.awt.geom.Area getArea()
           
 java.awt.geom.GeneralPath getGeneralPath()
           
static int readXY(char[] data, int first, float[] xy)
          Assumes all read chars will be digits except for the separator (single white space char), and won't fail (but generate ugly results) when any char is not a digit.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReconstructArea

public ReconstructArea()
Method Detail

add

public final void add(java.lang.String svg_path)
To reconstruct from XML, takes a "M .... z" SVG path.


getArea

public final java.awt.geom.Area getArea()

getGeneralPath

public final java.awt.geom.GeneralPath getGeneralPath()

readXY

public static final int readXY(char[] data,
                               int first,
                               float[] xy)
Assumes all read chars will be digits except for the separator (single white space char), and won't fail (but generate ugly results) when any char is not a digit.