public abstract class FhConverter extends Object
A converter for SVG documents using the FreeHep library.
| Modifier and Type | Field and Description |
|---|---|
protected UserProperties |
properties
Properties that can be set for conversion.
|
| Constructor and Description |
|---|
FhConverter()
Creates a new converter with default configuration.
|
| Modifier and Type | Method and Description |
|---|---|
abstract String |
convertDocument(BatikLoader loader,
File fout)
Converts the document maintained by the loader to a target format.
|
UserProperties |
getProperties()
Returns the user properties of the converter.
|
abstract void |
setPropertyBackground(boolean on)
Sets background property on or off.
|
abstract void |
setPropertyBackgroundColor(Color color)
Sets background color property to a color.
|
void |
setPropertyClip(boolean on)
Sets clipping property on or off.
|
void |
setPropertyTextAsShapes(boolean on)
Sets text-as-shape property on or off.
|
abstract void |
setPropertyTransparent(boolean on)
Sets transparency property on or off.
|
protected UserProperties properties
Properties that can be set for conversion.
public FhConverter()
Creates a new converter with default configuration. Sets transparency to true, background to false, background color to white, clipping to false, text as shapes to false.
public abstract void setPropertyBackground(boolean on)
Sets background property on or off.
on - new settingpublic abstract void setPropertyBackgroundColor(Color color)
Sets background color property to a color.
color - background colorpublic abstract void setPropertyTransparent(boolean on)
Sets transparency property on or off.
on - new settingpublic void setPropertyClip(boolean on)
Sets clipping property on or off.
on - new settingpublic void setPropertyTextAsShapes(boolean on)
Sets text-as-shape property on or off.
on - new settingpublic abstract String convertDocument(BatikLoader loader, File fout)
Converts the document maintained by the loader to a target format.
loader - the document loader, must have a document successfully loadedfout - the file for the outputpublic UserProperties getProperties()
Returns the user properties of the converter.
Copyright © 2012–2017. All rights reserved.