public class Graphics2DConverter extends AbstractJFXConverter<AwtConverterDelegate>
Graphics2D orders.defaultParams, delegate| Constructor and Description |
|---|
Graphics2DConverter()
Constructor.
|
Graphics2DConverter(ConverterParameters params)
Constructor.
|
Graphics2DConverter(java.awt.Graphics2D g2d)
Constructor.
|
Graphics2DConverter(java.awt.Graphics2D g2d,
ConverterParameters params)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
convert(java.awt.Graphics2D g2D,
javafx.scene.Node root)
Convert a JavaFX Node hierarchy to a series of
Graphics2D orders. |
void |
convert(java.awt.Graphics2D g2D,
javafx.scene.Node root,
ConverterParameters params)
Convert a JavaFX Node hierarchy to a series of
Graphics2D orders. |
void |
convert(javafx.scene.Node root)
Convert a JavaFX Node hierarchy to a series of
Graphics2D orders. |
void |
convert(javafx.scene.Node root,
ConverterParameters params)
Convert a JavaFX Node hierarchy to a series of
Graphics2D orders. |
java.awt.Graphics2D |
getGraphics2D()
Return the Graphics2D.
|
ConverterListener |
getListener()
Return the ConverterListener used for the conversion (may be null).
|
void |
setGraphics2D(java.awt.Graphics2D g2d)
Set the Graphics2D.
|
void |
setListener(ConverterListener listener)
Set the ConverterListener to use for the conversion.
|
getConverterDelegate, getRoot, getTransform, getTranslation, getViewbox, setDefaultParametersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTransform, getTranslation, getViewboxpublic Graphics2DConverter()
setGraphics2D(java.awt.Graphics2D) before or during the conversion.public Graphics2DConverter(ConverterParameters params)
setGraphics2D(java.awt.Graphics2D) before or during the conversion.params - the converter parameterspublic Graphics2DConverter(java.awt.Graphics2D g2d,
ConverterParameters params)
g2d - the Graphics2Dparams - the converter parameterspublic Graphics2DConverter(java.awt.Graphics2D g2d)
g2d - the Graphics2Dpublic void setListener(ConverterListener listener)
listener - the ConverterListenerpublic ConverterListener getListener()
public void setGraphics2D(java.awt.Graphics2D g2d)
g2d - the Graphics2Dpublic java.awt.Graphics2D getGraphics2D()
public void convert(javafx.scene.Node root)
throws JFXConverterException
Graphics2D orders.root - the root NodeJFXConverterException - if writing the SVG failspublic void convert(java.awt.Graphics2D g2D,
javafx.scene.Node root)
throws JFXConverterException
Graphics2D orders.g2D - the Graphics2Droot - the root NodeJFXConverterException - if writing the Graphics2D failspublic void convert(java.awt.Graphics2D g2D,
javafx.scene.Node root,
ConverterParameters params)
throws JFXConverterException
Graphics2D orders.g2D - the Graphics2Droot - the root Nodeparams - the parametersJFXConverterException - if writing the Graphics2D failspublic void convert(javafx.scene.Node root,
ConverterParameters params)
throws JFXConverterException
Graphics2D orders.root - the root Nodeparams - the parametersJFXConverterException - if writing the Graphics2D failsCopyright © 2021, 2022, 2025, 2026 Herve Girod. All Rights Reserved. Documentation and source under the BSD 3-Clause licence