uk.ac.ed.svg_handler
Class SVGHandler

java.lang.Object
  extended by uk.ac.ed.svg_handler.SVGHandler

public class SVGHandler
extends Object


Field Summary
static double BRIGHTNESS_FIDDLE_FACTOR
           
static boolean CONTOURS
           
protected  int current_x
           
protected  int current_y
           
protected  double depth
           
static String ext
           
protected  HashMap feature_map
           
static double INTERVAL
           
static double INVERSE_INTERVAL
           
protected  org.virtualratbrain.namespace.Manifold manifold
           
static boolean MANIFOLD
           
protected  MorphMLHandler morphml_handler
           
protected  Morphology morphology
           
protected  int next_point_id
           
protected  PaxinosHandler paxinos_handler
           
protected  boolean pen_up
           
protected  org.virtualratbrain.namespace.Polygon polygon
           
static double SATURATION_DAMPENING
           
static double SCALE
           
protected  double thickness
           
 
Constructor Summary
SVGHandler(MorphMLHandler morphml_handler, PaxinosHandler paxinos_handler)
           
 
Method Summary
static FileFilter getFileFilter()
           
protected  void handleCurveToInstruction(uk.ac.ed.svg_handler.CurveTo instruction)
           
protected  void handleLineToInstruction(uk.ac.ed.svg_handler.LineTo instruction)
           
protected  void handleMoveToInstruction(uk.ac.ed.svg_handler.MoveTo instruction)
           
protected  void initialiseContourFeature(Color colour)
           
protected  void initialiseManifoldFeature(Color colour)
           
static boolean isSVGFile(File file)
           
static boolean isSVGFileName(String file_name)
           
 Morphology readStream(InputStream input_stream)
           
 void setDepth(double depth)
           
 void setMorphology(Morphology morphology)
           
 void setThickness(double thickness)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ext

public static final String ext
See Also:
Constant Field Values

SCALE

public static double SCALE

INTERVAL

public static double INTERVAL

INVERSE_INTERVAL

public static double INVERSE_INTERVAL

CONTOURS

public static boolean CONTOURS

MANIFOLD

public static boolean MANIFOLD

SATURATION_DAMPENING

public static double SATURATION_DAMPENING

BRIGHTNESS_FIDDLE_FACTOR

public static double BRIGHTNESS_FIDDLE_FACTOR

pen_up

protected boolean pen_up

morphml_handler

protected MorphMLHandler morphml_handler

morphology

protected Morphology morphology

depth

protected double depth

thickness

protected double thickness

paxinos_handler

protected PaxinosHandler paxinos_handler

feature_map

protected HashMap feature_map

next_point_id

protected int next_point_id

manifold

protected org.virtualratbrain.namespace.Manifold manifold

polygon

protected org.virtualratbrain.namespace.Polygon polygon

current_x

protected int current_x

current_y

protected int current_y
Constructor Detail

SVGHandler

public SVGHandler(MorphMLHandler morphml_handler,
                  PaxinosHandler paxinos_handler)
Method Detail

getFileFilter

public static FileFilter getFileFilter()

isSVGFile

public static boolean isSVGFile(File file)

isSVGFileName

public static boolean isSVGFileName(String file_name)

setMorphology

public void setMorphology(Morphology morphology)

setDepth

public void setDepth(double depth)

setThickness

public void setThickness(double thickness)

readStream

public Morphology readStream(InputStream input_stream)

initialiseManifoldFeature

protected void initialiseManifoldFeature(Color colour)

initialiseContourFeature

protected void initialiseContourFeature(Color colour)

handleMoveToInstruction

protected void handleMoveToInstruction(uk.ac.ed.svg_handler.MoveTo instruction)

handleLineToInstruction

protected void handleLineToInstruction(uk.ac.ed.svg_handler.LineTo instruction)

handleCurveToInstruction

protected void handleCurveToInstruction(uk.ac.ed.svg_handler.CurveTo instruction)