Package net.sourceforge.jeuclid.ant
Class MathMLConverter
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.MatchingTask
net.sourceforge.jeuclid.ant.MathMLConverter
- All Implemented Interfaces:
Cloneable,org.apache.tools.ant.types.selectors.SelectorContainer
public class MathMLConverter
extends org.apache.tools.ant.taskdefs.MatchingTask
This task converts MathML files to images.
- Version:
- $Revision: ee8eb070689f $
-
Field Summary
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask
filesetFields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapperFields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Executes the task.voidsetAntiAlias(boolean antiAlias) Sets support for anti alias (default is true).voidsetAntiAliasMinSize(float antiAliasMinSize) Sets minimal size for turn on anti alias (default is 10.0).voidsetBackgroundColor(String color) Sets background color.voidsetBasedir(File dir) Set the base directory.voidsetDebug(boolean debug) Sets support for debug (default is false).voidsetDestdir(File dir) Set the destination directory into which the result files should be copied to.voidsetDisplay(String display) Sets display style (default is BLOCK.voidsetFontsDoublestruck(String fonts) Sets list of supported font families for Double-Struck.voidsetFontsFraktur(String fonts) Sets list of supported font families for Fraktur.voidsetFontSize(float fontSize) Sets font size of text.voidsetFontsMonospaced(String fonts) Sets list of supported font families for Monospaced.voidsetFontsSansSerif(String fonts) Sets list of supported font families for Sans-Serif.voidsetFontsScript(String fonts) Sets list of supported font families for Script.voidsetFontsSerif(String fonts) Sets list of supported font families for Serif.voidsetForce(boolean force) Set whether to check dependencies, or always generate.voidsetForegroundColor(String color) Sets foreground color.voidSets an input xml file to be converted.voidsetMfracKeepScriptLevel(boolean keepScriptLevel) Sets <mfrac> keep scriptlevel.voidSets an out file.voidsetScriptLevel(int level) Sets scripts level (default is 0).voidsetScriptMinSize(float minSize) Sets minimal size of smallest font size (default is 8.0).voidsetScriptSizeMult(float multSize) Sets size of multiplier (default is 0.71).voidSets output file mimetype.Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItemsMethods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation
-
Constructor Details
-
MathMLConverter
public MathMLConverter()Creates a new MathMLConverter Task.
-
-
Method Details
-
execute
public void execute()Executes the task.- Overrides:
executein classorg.apache.tools.ant.Task
-
setAntiAlias
public void setAntiAlias(boolean antiAlias) Sets support for anti alias (default is true).- Parameters:
antiAlias- Flag for support anti alias.
-
setAntiAliasMinSize
public void setAntiAliasMinSize(float antiAliasMinSize) Sets minimal size for turn on anti alias (default is 10.0).- Parameters:
antiAliasMinSize- Minimal size in float number.
-
setBackgroundColor
Sets background color.- Parameters:
color- String representation of color.
-
setDebug
public void setDebug(boolean debug) Sets support for debug (default is false).- Parameters:
debug- Flag for support debug.
-
setDisplay
Sets display style (default is BLOCK.- Parameters:
display- String value of display style.- See Also:
-
setFontsDoublestruck
Sets list of supported font families for Double-Struck.- Parameters:
fonts- List separated by comma.
-
setFontsFraktur
Sets list of supported font families for Fraktur.- Parameters:
fonts- List separated by comma.
-
setFontSize
public void setFontSize(float fontSize) Sets font size of text.- Parameters:
fontSize- Font size as float value.
-
setFontsMonospaced
Sets list of supported font families for Monospaced.- Parameters:
fonts- List separated by comma.
-
setFontsSansSerif
Sets list of supported font families for Sans-Serif.- Parameters:
fonts- List separated by comma.
-
setFontsScript
Sets list of supported font families for Script.- Parameters:
fonts- List separated by comma.
-
setFontsSerif
Sets list of supported font families for Serif.- Parameters:
fonts- List separated by comma.
-
setForegroundColor
Sets foreground color.- Parameters:
color- String representation of color.
-
setMfracKeepScriptLevel
public void setMfracKeepScriptLevel(boolean keepScriptLevel) Sets <mfrac> keep scriptlevel.- Parameters:
keepScriptLevel- if true, element will NEVER increase children's scriptlevel (in violation of the spec).
-
setScriptLevel
public void setScriptLevel(int level) Sets scripts level (default is 0).- Parameters:
level- Script level.
-
setScriptMinSize
public void setScriptMinSize(float minSize) Sets minimal size of smallest font size (default is 8.0).- Parameters:
minSize- Size of font.
-
setScriptSizeMult
public void setScriptSizeMult(float multSize) Sets size of multiplier (default is 0.71).- Parameters:
multSize- Size of multiplier.
-
setForce
public void setForce(boolean force) Set whether to check dependencies, or always generate.- Parameters:
force- True, if the task should always generate the images.
-
setBasedir
Set the base directory.- Parameters:
dir- Base directory
-
setDestdir
Set the destination directory into which the result files should be copied to.- Parameters:
dir- Destination directory
-
setOut
Sets an out file.- Parameters:
outFile- Output file
-
setIn
Sets an input xml file to be converted.- Parameters:
inFile- Input file
-
setType
Sets output file mimetype.- Parameters:
mimetype- mimetype for output file.
-