| Package | Description |
|---|---|
| de.saxsys.svgfx.core | |
| de.saxsys.svgfx.core.attributes.type | |
| de.saxsys.svgfx.core.elements | |
| de.saxsys.svgfx.core.utils | |
| de.saxsys.svgfx.xml.core |
| Modifier and Type | Method and Description |
|---|---|
<TData extends SVGElementBase> |
SVGDocumentDataProvider.getData(String key,
Class<TData> clazz)
Returns the data of the given key as the desired type if it exists.
|
| Modifier and Type | Method and Description |
|---|---|
javafx.scene.paint.Paint |
SVGAttributeTypePaint.getValue(ThrowableSupplier<SVGAttributeTypeRectangle.SVGTypeRectangle,SVGException> boundingBox,
javafx.scene.transform.Transform transform)
Resolves the given data into a paint.
|
| Modifier and Type | Method and Description |
|---|---|
<TValue> TValue |
SVGAttributeHolder.getAttributeValue(String name,
Class<TValue> clazz,
TValue defaultValue)
Returns the value of the desired attribute as the desired type using the provided key or the given default value should the attribute not exist.
|
List<Double> |
SVGAttributeTypeStrokeDashArray.getDashValues() |
boolean |
SVGAttributeTypePaint.getIsCurrentColor() |
TUnit |
SVGAttributeType.getUnit()
Returns the
SVGAttributeType.valueAndUnits value. |
TValue |
SVGAttributeType.getValue()
Returns the
SVGAttributeType.valueAndUnits key. |
javafx.scene.paint.Paint |
SVGAttributeTypePaint.getValue(ThrowableSupplier<SVGAttributeTypeRectangle.SVGTypeRectangle,SVGException> boundingBox,
javafx.scene.transform.Transform transform)
Resolves the given data into a paint.
|
javafx.util.Pair<TValue,TUnit> |
SVGAttributeType.getValueAndUnit()
Returns the
SVGAttributeType.valueAndUnit. |
protected javafx.util.Pair<javafx.scene.transform.Transform,Void> |
SVGAttributeTypeTransform.getValueAndUnit(String text) |
protected javafx.util.Pair<SVGCssStyle,Void> |
SVGAttributeTypeStyle.getValueAndUnit(String text) |
protected javafx.util.Pair<javafx.scene.shape.StrokeType,Void> |
SVGAttributeTypeStrokeType.getValueAndUnit(String cssText) |
protected javafx.util.Pair<javafx.scene.shape.StrokeLineJoin,Void> |
SVGAttributeTypeStrokeLineJoin.getValueAndUnit(String cssText) |
protected javafx.util.Pair<javafx.scene.shape.StrokeLineCap,Void> |
SVGAttributeTypeStrokeLineCap.getValueAndUnit(String cssText) |
protected javafx.util.Pair<SVGAttributeTypeLength[],Void> |
SVGAttributeTypeStrokeDashArray.getValueAndUnit(String cssText)
This will be called if actual data is present in the css text, this is the case if the cssText is not
SVGAttributeType.INHERIT_INDICATOR or SVGAttributeType.NONE_INDICATOR. |
protected javafx.util.Pair<String,Void> |
SVGAttributeTypeString.getValueAndUnit(String cssText) |
protected javafx.util.Pair<SVGAttributeTypeRectangle.SVGTypeRectangle,Void> |
SVGAttributeTypeRectangle.getValueAndUnit(String text) |
protected javafx.util.Pair<List<SVGAttributeTypePoint>,Void> |
SVGAttributeTypePoints.getValueAndUnit(String cssText) |
protected javafx.util.Pair<SVGAttributeTypePoint.SVGTypePoint,Void> |
SVGAttributeTypePoint.getValueAndUnit(String cssText) |
javafx.util.Pair<javafx.scene.paint.Paint,Void> |
SVGAttributeTypePaint.getValueAndUnit(String text) |
protected javafx.util.Pair<Double,SVGAttributeTypeLength.Unit> |
SVGAttributeTypeLength.getValueAndUnit(String cssText) |
protected javafx.util.Pair<GradientUnit,Void> |
SVGAttributeTypeGradientUnits.getValueAndUnit(String cssText) |
protected javafx.util.Pair<javafx.scene.shape.FillRule,Void> |
SVGAttributeTypeFillRule.getValueAndUnit(String cssText) |
protected javafx.util.Pair<Double,Void> |
SVGAttributeTypeDouble.getValueAndUnit(String cssText) |
protected javafx.util.Pair<javafx.scene.paint.CycleMethod,Void> |
SVGAttributeTypeCycleMethod.getValueAndUnit(String cssText) |
protected abstract javafx.util.Pair<TValue,TUnit> |
SVGAttributeType.getValueAndUnit(String text)
This will be called if actual data is present in the css text, this is the case if the cssText is not
SVGAttributeType.INHERIT_INDICATOR or SVGAttributeType.NONE_INDICATOR. |
boolean |
SVGAttributeType.hasUnit(TUnit unit)
Determines if this length value has the provided unit.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
SVGGradientBase.convertToAbsoluteCoordinates(javafx.scene.shape.Rectangle boundingBox,
List<Wrapper<javafx.geometry.Point2D>> points)
Converts the given coordinates into absolute coordinates based on the given bounding box.
|
protected void |
SVGGradientBase.convertToRelativeCoordinates(javafx.scene.shape.Rectangle boundingBox,
List<Wrapper<javafx.geometry.Point2D>> points)
Converts the given coordinates into relative coordinates based on the given bounding box.
|
TResult |
SVGElementBase.createAndInitializeResult(SVGCssStyle parentStyle,
javafx.scene.transform.Transform parentTransform)
Creates a result represented by this element and uses the given supplier in order to fetch data needed to initialize the result
|
protected SVGAttributeTypeRectangle.SVGTypeRectangle |
SVGCircle.createBoundingBox(javafx.scene.shape.Circle shape) |
protected SVGAttributeTypeRectangle.SVGTypeRectangle |
SVGEllipse.createBoundingBox(javafx.scene.shape.Ellipse shape) |
protected SVGAttributeTypeRectangle.SVGTypeRectangle |
SVGLine.createBoundingBox(javafx.scene.shape.Line shape) |
SVGAttributeTypeRectangle.SVGTypeRectangle |
SVGRectangle.createBoundingBox(javafx.scene.shape.Rectangle rectangle) |
protected SVGAttributeTypeRectangle.SVGTypeRectangle |
SVGPath.createBoundingBox(javafx.scene.shape.SVGPath shape) |
protected abstract SVGAttributeTypeRectangle.SVGTypeRectangle |
SVGShapeBase.createBoundingBox(TShape shape)
Returns the bounding box of the given shape
|
protected SVGAttributeTypeRectangle.SVGTypeRectangle |
SVGPolyBase.createBoundingBox(TShape shape) |
javafx.scene.paint.RadialGradient |
SVGRadialGradient.createResult(SVGAttributeTypeRectangle.SVGTypeRectangle elementBoundingBox,
javafx.scene.transform.Transform elementTransform) |
javafx.scene.paint.LinearGradient |
SVGLinearGradient.createResult(SVGAttributeTypeRectangle.SVGTypeRectangle elementBoundingBox,
javafx.scene.transform.Transform elementTransform) |
abstract TPaint |
SVGGradientBase.createResult(SVGAttributeTypeRectangle.SVGTypeRectangle elementBoundingBox,
javafx.scene.transform.Transform elementTransform)
This method can be used to create a result, that depends on the provided
SVGElementBase. |
protected javafx.scene.Group |
SVGUse.createResult(SVGCssStyle ownStyle,
javafx.scene.transform.Transform ownTransform)
Must be overwritten in the actual implementation to create a new result for this element based on the information available.
|
protected Set<SVGCssStyle> |
SVGStyle.createResult(SVGCssStyle ownStyle,
javafx.scene.transform.Transform ownTransform)
Must be overwritten in the actual implementation to create a new result for this element based on the information available.
|
protected javafx.scene.paint.Stop |
SVGStop.createResult(SVGCssStyle ownStyle,
javafx.scene.transform.Transform ownTransform)
Must be overwritten in the actual implementation to create a new result for this element based on the information available.
|
protected javafx.scene.Group |
SVGRoot.createResult(SVGCssStyle ownStyle,
javafx.scene.transform.Transform ownTransform) |
protected javafx.scene.shape.Rectangle |
SVGRectangle.createResult(SVGCssStyle ownStyle,
javafx.scene.transform.Transform ownTransform) |
protected javafx.scene.shape.Polyline |
SVGPolyline.createResult(SVGCssStyle ownStyle,
javafx.scene.transform.Transform ownTransform) |
protected javafx.scene.shape.Polygon |
SVGPolygon.createResult(SVGCssStyle ownStyle,
javafx.scene.transform.Transform ownTransform) |
protected javafx.scene.shape.SVGPath |
SVGPath.createResult(SVGCssStyle ownStyle,
javafx.scene.transform.Transform ownTransform) |
protected javafx.scene.shape.Line |
SVGLine.createResult(SVGCssStyle ownStyle,
javafx.scene.transform.Transform ownTransform) |
protected javafx.scene.Group |
SVGGroup.createResult(SVGCssStyle ownStyle,
javafx.scene.transform.Transform ownTransform) |
protected TPaint |
SVGGradientBase.createResult(SVGCssStyle ownStyle,
javafx.scene.transform.Transform ownTransform) |
protected javafx.scene.shape.Ellipse |
SVGEllipse.createResult(SVGCssStyle ownStyle,
javafx.scene.transform.Transform ownTransform) |
protected abstract TResult |
SVGElementBase.createResult(SVGCssStyle ownStyle,
javafx.scene.transform.Transform ownTransform)
Must be overwritten in the actual implementation to create a new result for this element based on the information available.
|
protected javafx.scene.Node |
SVGDefinitions.createResult(SVGCssStyle ownStyle,
javafx.scene.transform.Transform ownTransform) |
protected javafx.scene.Group |
SVGClipPath.createResult(SVGCssStyle ownStyle,
javafx.scene.transform.Transform ownTransform) |
protected javafx.scene.shape.Circle |
SVGCircle.createResult(SVGCssStyle ownStyle,
javafx.scene.transform.Transform ownTransform) |
protected Optional<javafx.scene.transform.Transform> |
SVGGradientBase.getCombinedTransform(javafx.scene.transform.Transform elementTransform)
Will be used to get the correct transformation for the gradient if any.
|
protected Optional<javafx.scene.transform.Transform> |
SVGGradientBase.getGradientTransform()
Returns a
Optional containing the CoreAttributeMapper.GRADIENT_TRANSFORM of this gradient if present or Optional.empty(). |
List<Double> |
SVGPolyBase.getPoints()
Returns the list of points contained by the attributes.
|
List<javafx.scene.paint.Stop> |
SVGGradientBase.getStops()
Gets the stops related to this gradient.
|
protected Optional<javafx.scene.transform.Transform> |
SVGElementBase.getTransformation() |
protected void |
SVGUse.initializeResult(javafx.scene.Group result,
SVGCssStyle ownStyle,
javafx.scene.transform.Transform ownTransform) |
protected void |
SVGRoot.initializeResult(javafx.scene.Group group,
SVGCssStyle ownStyle,
javafx.scene.transform.Transform ownTransform) |
protected void |
SVGDefinitions.initializeResult(javafx.scene.Node node,
SVGCssStyle ownStyle,
javafx.scene.transform.Transform ownTransform) |
protected void |
SVGRectangle.initializeResult(javafx.scene.shape.Rectangle result,
SVGCssStyle ownStyle,
javafx.scene.transform.Transform ownTransform)
This method will be called in the
SVGElementBase.createAndInitializeResult(SVGCssStyle, Transform) and allows to modify the result such as applying a style or transformations. |
protected void |
SVGStyle.initializeResult(Set<SVGCssStyle> cssStyles,
SVGCssStyle ownStyle,
javafx.scene.transform.Transform ownTransform) |
protected void |
SVGStop.initializeResult(javafx.scene.paint.Stop stop,
SVGCssStyle ownStyle,
javafx.scene.transform.Transform ownTransform) |
protected void |
SVGPath.initializeResult(javafx.scene.shape.SVGPath result,
SVGCssStyle ownStyle,
javafx.scene.transform.Transform ownTransform)
This method will be called in the
SVGElementBase.createAndInitializeResult(SVGCssStyle, Transform) and allows to modify the result such as applying a style or transformations. |
protected void |
SVGNodeBase.initializeResult(TNode result,
SVGCssStyle ownStyle,
javafx.scene.transform.Transform ownTransform)
This method will be called in the
SVGElementBase.createAndInitializeResult(SVGCssStyle, Transform) and allows to modify the result such as applying a style or transformations. |
protected void |
SVGGradientBase.initializeResult(TPaint paint,
SVGCssStyle ownStyle,
javafx.scene.transform.Transform ownTransform) |
protected abstract void |
SVGElementBase.initializeResult(TResult result,
SVGCssStyle ownStyle,
javafx.scene.transform.Transform ownTransform)
This method will be called in the
SVGElementBase.createAndInitializeResult(SVGCssStyle, Transform) and allows to modify the result such as applying a style or transformations. |
protected void |
SVGShapeBase.initializeResult(TShape result,
SVGCssStyle ownStyle,
javafx.scene.transform.Transform ownTransform)
This method will be called in the
SVGElementBase.createAndInitializeResult(SVGCssStyle, Transform) and allows to modify the result such as applying a style or transformations. |
protected javafx.scene.shape.Rectangle |
SVGGradientBase.transformBoundingBox(SVGAttributeTypeRectangle.SVGTypeRectangle boundingBox,
javafx.scene.transform.Transform transform)
Creates an adjusted
Rectangle that is the given SVGAttributeTypeRectangle.SVGTypeRectangle which has the given Transform applied. |
| Modifier and Type | Method and Description |
|---|---|
static <TSVGElementBase extends SVGElementBase<?>> |
SVGUtil.resolveIRI(String data,
SVGDocumentDataProvider dataProvider,
Class<TSVGElementBase> clazz)
Returns the element which might be referenced by the given data.
|
| Modifier and Type | Method and Description |
|---|---|
<TContent extends TAttribute> |
AttributeHolder.getAttributeOrFail(String name,
Class<TContent> clazz)
Returns the
TAttribute in the AttributeHolder.attributes as the desired type using the provided key or throws an IllegalArgumentException of the attribute does not exit. |
Copyright © 2017 Saxonia Systems AG. All rights reserved.