|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.xoetrope.optional.laf.synth.SvgPreprocessor
public class SvgPreprocessor
Process a svg file to replace colors etc... with the styles
Copyright (c) Xoetrope Ltd., 2001-2005
License: see license.txt
$Revision: 1.7 $
| Constructor Summary | |
|---|---|
protected |
SvgPreprocessor()
Creates a new instance of SvgPreprocessor |
| Method Summary | |
|---|---|
protected java.lang.String |
findAndReplace(java.util.Hashtable methodNames,
java.lang.String originalText)
Search and replace a function references embedded in the synth file |
protected java.lang.String |
getColorStyleAttribute(java.lang.String args,
int attrib,
boolean isRgb,
boolean isHSB)
Replace the tagged field. |
java.lang.String |
process(java.io.BufferedInputStream is)
Read the file from the input stream, do any substitutions required and return the processed file as a string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected SvgPreprocessor()
| Method Detail |
|---|
public java.lang.String process(java.io.BufferedInputStream is)
throws java.io.IOException
process in interface FilePreprocessoris - the input stream
java.io.IOException - problems processing the input stream
protected java.lang.String findAndReplace(java.util.Hashtable methodNames,
java.lang.String originalText)
methodNames - the table of methods to find and replaceoriginalText - the original config file text
protected java.lang.String getColorStyleAttribute(java.lang.String args,
int attrib,
boolean isRgb,
boolean isHSB)
isHSB - is a HSB color space used instead of RGBargs - the text to locate e.g. ${getColorForegroundHex(name)}attrib - the attribute to lookup in the styleisRgb - true to output an RGB color, or false for Hex
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||