| Package | Description |
|---|---|
| de.saxsys.svgfx.core | |
| de.saxsys.svgfx.core.attributes.type | |
| de.saxsys.svgfx.core.css | |
| 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 |
|---|---|
<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(SVGShapeBase<?> shape)
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 text) |
protected javafx.util.Pair<SVGAttributeTypePoint.SVGTypePoint,Void> |
SVGAttributeTypePoint.getValueAndUnit(String text) |
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<Enumerations.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 |
|---|---|
SVGCssStyle |
StyleSupplier.get()
Returns the
SVGCssStyle required. |
| Modifier and Type | Method and Description |
|---|---|
TResult |
SVGElementBase.createAndInitializeResult(StyleSupplier styleSupplier)
Creates a result represented by this element and uses the given supplier in order to fetch data needed to initialize the result
|
abstract SVGAttributeTypeRectangle.SVGTypeRectangle |
SVGShapeBase.createBoundingBox()
Returns this elements bounding rectangle, which contains the entire shape.
|
SVGAttributeTypeRectangle.SVGTypeRectangle |
SVGRectangle.createBoundingBox() |
SVGAttributeTypeRectangle.SVGTypeRectangle |
SVGPolyBase.createBoundingBox() |
SVGAttributeTypeRectangle.SVGTypeRectangle |
SVGPath.createBoundingBox() |
SVGAttributeTypeRectangle.SVGTypeRectangle |
SVGLine.createBoundingBox() |
SVGAttributeTypeRectangle.SVGTypeRectangle |
SVGEllipse.createBoundingBox() |
SVGAttributeTypeRectangle.SVGTypeRectangle |
SVGCircle.createBoundingBox() |
protected javafx.scene.Group |
SVGUse.createResult(StyleSupplier styleSupplier)
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(StyleSupplier styleSupplier)
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(StyleSupplier styleSupplier)
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(StyleSupplier styleSupplier) |
protected javafx.scene.shape.Rectangle |
SVGRectangle.createResult(StyleSupplier styleSupplier) |
protected javafx.scene.paint.RadialGradient |
SVGRadialGradient.createResult(StyleSupplier styleSupplier) |
protected javafx.scene.shape.Polyline |
SVGPolyline.createResult(StyleSupplier styleSupplier) |
protected javafx.scene.shape.Polygon |
SVGPolygon.createResult(StyleSupplier styleSupplier) |
protected javafx.scene.shape.SVGPath |
SVGPath.createResult(StyleSupplier styleSupplier) |
protected javafx.scene.paint.LinearGradient |
SVGLinearGradient.createResult(StyleSupplier styleSupplier) |
protected javafx.scene.shape.Line |
SVGLine.createResult(StyleSupplier styleSupplier) |
protected javafx.scene.Group |
SVGGroup.createResult(StyleSupplier styleSupplier) |
protected javafx.scene.shape.Ellipse |
SVGEllipse.createResult(StyleSupplier styleSupplier) |
protected abstract TResult |
SVGElementBase.createResult(StyleSupplier styleSupplier)
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(StyleSupplier styleSupplier) |
protected javafx.scene.Group |
SVGClipPath.createResult(StyleSupplier styleSupplier) |
protected javafx.scene.shape.Circle |
SVGCircle.createResult(StyleSupplier styleSupplier) |
javafx.scene.paint.RadialGradient |
SVGRadialGradient.createResult(SVGShapeBase<?> shape) |
javafx.scene.paint.LinearGradient |
SVGLinearGradient.createResult(SVGShapeBase<?> shape) |
abstract TPaint |
SVGGradientBase.createResult(SVGShapeBase<?> shape)
This method can be used to create a result, that depends on the provided
SVGElementBase. |
protected javafx.scene.Node |
SVGElementBase.getClipPath(StyleSupplier styleSupplier)
Returns a node which represents the clip path to be applied to this element.
|
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.
|
SVGCssStyle |
SVGElementBase.getStyle()
Gets the elements own style and resolves its inheritance, also removed any self references.
|
SVGCssStyle |
SVGElementBase.getStyleAndResolveInheritance(SVGCssStyle otherStyle)
Gets the elements own
SVGCssStyle and combines it with the given SVGCssStyle |
protected javafx.scene.transform.Transform |
SVGElementBase.getTransformation() |
protected void |
SVGUse.initializeResult(javafx.scene.Group node,
StyleSupplier styleSupplier) |
protected void |
SVGRoot.initializeResult(javafx.scene.Group group,
StyleSupplier styleSupplier) |
protected void |
SVGDefinitions.initializeResult(javafx.scene.Node node,
StyleSupplier styleSupplier) |
protected void |
SVGRectangle.initializeResult(javafx.scene.shape.Rectangle rect,
StyleSupplier styleSupplier)
This method will be called in the
SVGElementBase.createAndInitializeResult(StyleSupplier) and allows to modify the result such as applying a style or
transformations. |
protected void |
SVGStyle.initializeResult(Set<SVGCssStyle> cssStyles,
StyleSupplier styleSupplier) |
protected void |
SVGStop.initializeResult(javafx.scene.paint.Stop stop,
StyleSupplier styleSupplier) |
protected void |
SVGPath.initializeResult(javafx.scene.shape.SVGPath path,
StyleSupplier styleSupplier)
This method will be called in the
SVGElementBase.createAndInitializeResult(StyleSupplier) and allows to modify the result such as applying a style or
transformations. |
protected void |
SVGNodeBase.initializeResult(TNode node,
StyleSupplier supplier)
This method will be called in the
SVGElementBase.createAndInitializeResult(StyleSupplier) and allows to modify the result such as applying a style or
transformations. |
protected void |
SVGGradientBase.initializeResult(TPaint paint,
StyleSupplier styleSupplier) |
protected abstract void |
SVGElementBase.initializeResult(TResult result,
StyleSupplier styleSupplier)
This method will be called in the
SVGElementBase.createAndInitializeResult(StyleSupplier) and allows to modify the result such as applying a style or
transformations. |
protected void |
SVGShapeBase.initializeResult(TShape shape,
StyleSupplier styleSupplier)
This method will be called in the
SVGElementBase.createAndInitializeResult(StyleSupplier) and allows to modify the result such as applying a style or
transformations. |
protected void |
SVGElementBase.storeElementInDocumentDataProvider()
Checks if the element is inside a
SVGDefinitions and store it inside the ElementBase.documentDataProvider if so. |
| 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.
|
static List<String> |
StringUtil.splitByDelimiters(String data,
List<Character> delimiters)
|
static List<String> |
StringUtil.splitByDelimiters(String data,
List<Character> delimiters,
StringUtil.SplitPredicate consumePredicate)
|
static String |
SVGUtil.stripIRIIdentifiers(String data)
Strips the given
String from the IRI identifiers if any. |
boolean |
StringUtil.SplitPredicate.test(String data,
int index)
Called when a delimiter or the last character is read and will indicate whether the current read data can be used or not.
|
| 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 © 2016 Saxonia Systems AG. All rights reserved.