public abstract class AbstractAwtConverter extends java.lang.Object implements CSSProperties, NodeGraphics2DConverter
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
allProperties
The CSS Properties of the Node to convert, including only those which have a not null StyleOrigin.
|
protected java.util.Map<java.lang.String,CSSProperty> |
cssProperties
The CSS Properties of the Node to convert, including all the properties.
|
protected AwtConverterDelegate |
delegate
The AwtConverterDelegate.
|
protected static java.awt.geom.AffineTransform |
IDENTITY
The Identity transform.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
properties
The CSS Properties of the Node to convert, including only those which have a not null StyleOrigin.
|
ARC_HEIGHT, ARC_WIDTH, BACKGROUND_COLOR, BACKGROUND_IMAGE, BACKGROUND_RADIUS, BORDER_COLOR, BORDER_RADIUS, FILL_PAINT, FONT, FONT_FAMILY, FONT_SIZE, FONT_STYLE, FONT_WEIGHT, IMAGE, OPACITY, REGION_BACKGROUND, REGION_BACKGROUND_POSITION, REGION_BACKGROUND_RADIUS, REGION_BACKGROUND_SIZE, REGION_BORDER, SCALE_SHAPE, SCALE_X, SCALE_Y, SHAPE, STROKE_DASHARRAY, STROKE_DASHOFFSET, STROKE_LINECAP, STROKE_LINEJOIN, STROKE_MITERLIMIT, STROKE_PAINT, STROKE_TYPE, STROKE_WIDTH, TEXT_BOUNDS_TYPE, TEXT_FILL, TRANSLATE_X, TRANSLATE_Y, VISIBILITY| Constructor and Description |
|---|
AbstractAwtConverter(AwtConverterDelegate converter,
javafx.scene.Node node)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyTransforms(boolean withLayout)
Apply all the Nodes transformations on the ConverterDelegate.Will result on the call of several of the following orders:
AwtConverterDelegate.applyTransform(java.awt.geom.AffineTransform)
AwtConverterDelegate.applyTranslation(double, double)
AwtConverterDelegate.applyScale(double, double)
AwtConverterDelegate.applyRotation(double, double, double)
Note that only transformations which are different from an Identity transform will be applied on the AwtConverterDelegate. |
javafx.scene.Node |
getAdditionalNode()
Return the additional child Node on this Node (this is for example the case with the graphics Node on
Labeled Nodes). |
java.util.Map<java.lang.String,java.lang.Object> |
getAllProperties()
Return all the CSS properties Map of the Node.
|
java.util.Map<java.lang.String,CSSProperty> |
getCSSProperties()
Return the CSS properties Map of the Node.
|
protected double |
getOpacity()
Return the opacity of the Node.
|
javafx.scene.Parent |
getParent()
Return the converter Parent Node (may be null).
|
java.util.Map<java.lang.String,java.lang.Object> |
getProperties()
Return the CSS properties Map of the Node.
|
protected java.awt.geom.AffineTransform |
getTransform()
Return the result of all the Nodes transformations for the Converter Node.
|
protected java.awt.geom.AffineTransform |
getTransform(javafx.scene.transform.Transform tr)
Convert a AffineTransform to an AffineTransform
|
javafx.scene.transform.Transform |
getTransformFromAncestor(javafx.scene.Node node)
Return the Transform from the root of the Scene to the delegate Node.
|
boolean |
hasVisibility() |
boolean |
isVisible() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvertprotected static final java.awt.geom.AffineTransform IDENTITY
protected AwtConverterDelegate delegate
protected java.util.Map<java.lang.String,CSSProperty> cssProperties
protected java.util.Map<java.lang.String,java.lang.Object> properties
protected java.util.Map<java.lang.String,java.lang.Object> allProperties
public AbstractAwtConverter(AwtConverterDelegate converter, javafx.scene.Node node)
converter - the AwtConverterDelegatenode - the Nodepublic javafx.scene.Parent getParent()
public java.util.Map<java.lang.String,CSSProperty> getCSSProperties()
getCSSProperties in interface NodeConverter<java.lang.Boolean>public java.util.Map<java.lang.String,java.lang.Object> getAllProperties()
getAllProperties in interface NodeConverter<java.lang.Boolean>public java.util.Map<java.lang.String,java.lang.Object> getProperties()
getProperties in interface NodeConverter<java.lang.Boolean>public javafx.scene.transform.Transform getTransformFromAncestor(javafx.scene.Node node)
node - the Nodeprotected java.awt.geom.AffineTransform getTransform(javafx.scene.transform.Transform tr)
tr - the transformprotected java.awt.geom.AffineTransform getTransform()
public void applyTransforms(boolean withLayout)
AwtConverterDelegate.applyTransform(java.awt.geom.AffineTransform)AwtConverterDelegate.applyTranslation(double, double)AwtConverterDelegate.applyScale(double, double)AwtConverterDelegate.applyRotation(double, double, double)AwtConverterDelegate.withLayout - true if the layoutX and layoutY of the node are takne into accountpublic boolean hasVisibility()
public boolean isVisible()
protected double getOpacity()
public javafx.scene.Node getAdditionalNode()
Labeled Nodes). Return null by default.Copyright © 2021, 2022, 2025, 2026 Herve Girod. All Rights Reserved. Documentation and source under the BSD 3-Clause licence