FreeHEP API
Version current

org.freehep.graphicsio.svg
Class SVGTagHandler

java.lang.Object
  extended byorg.freehep.graphics2d.TagHandler
      extended byorg.freehep.graphicsio.svg.SVGTagHandler

public class SVGTagHandler
extends TagHandler

Version:
$Id: SVGTagHandler.java,v 1.2 2002/08/24 00:04:15 duns Exp $
Author:
Mark Donszelmann
Source Code:
SVGTagHandler.java

Constructor Summary
SVGTagHandler(boolean stylable, Font font, FontRenderContext fontContext)
           
 
Method Summary
protected  String closeTag(String tag)
           
protected  String defaultEntity(String entity)
          Keep encoded strings for SVG
protected  String entity(String entity)
           
static void main(String[] args)
           
protected  String openTag(String tag)
          handles bold , italic , superscript , subscript , vertical , overline
 int stringWidth(TagString s)
           
protected  String text(String text)
           
 
Methods inherited from class org.freehep.graphics2d.TagHandler
parse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SVGTagHandler

public SVGTagHandler(boolean stylable,
                     Font font,
                     FontRenderContext fontContext)
Method Detail

stringWidth

public int stringWidth(TagString s)

openTag

protected String openTag(String tag)
handles bold , italic , superscript , subscript , vertical , overline

Overrides:
openTag in class TagHandler

closeTag

protected String closeTag(String tag)
Overrides:
closeTag in class TagHandler

defaultEntity

protected String defaultEntity(String entity)
Keep encoded strings for SVG

Overrides:
defaultEntity in class TagHandler

entity

protected String entity(String entity)
Overrides:
entity in class TagHandler

text

protected String text(String text)
Overrides:
text in class TagHandler

main

public static void main(String[] args)

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.