public class Path extends Object
The path. Defines a single graphical effect to be rendered to the page. It paints a geometry with a brush and draws a stroke around it.
| Constructor and Description |
|---|
Path()
Initializes a new instance of the
Path class. |
| Modifier and Type | Method and Description |
|---|---|
String |
getAutomationPropertiesHelpText()
Gets or sets the automation properties help text.
|
String |
getAutomationPropertiesName()
Gets or sets the automation properties name.
|
String |
getClip()
Gets or sets the clip.
|
String |
getData()
Gets or sets the data.
|
String |
getFill()
Gets or sets the fill.
|
String |
getFixedPageNavigateUri()
Gets or sets the fixed page navigate uri.
|
String |
getLanguage()
Gets or sets the language.
|
String |
getName()
Gets or sets the name.
|
double |
getOpacity()
Gets or sets the opacity.
|
String |
getOpacityMask()
Gets or sets the opacity mask.
|
Geometry |
getPathClip()
Gets or sets the path clip.
|
Geometry |
getPathData()
Gets or sets the path data.
|
Brush |
getPathFill()
Gets or sets the path fill.
|
Brush |
getPathOpacityMask()
Gets or sets the path opacity mask.
|
Transform |
getPathRenderTransform()
Gets or sets the path render transform.
|
Brush |
getPathStroke()
Gets or sets the path stroke.
|
String |
getRenderTransform()
Gets or sets the render transform.
|
boolean |
getSnapsToDevicePixels()
Gets or sets a value indicating whether snaps to device pixels.
|
boolean |
getSnapsToDevicePixelsSpecified()
Gets or sets a value indicating whether snaps to device pixels specified.
|
String |
getStroke()
Gets or sets the stroke.
|
String |
getStrokeDashArray()
Gets or sets the stroke dash array.
|
String |
getStrokeDashCap()
Gets or sets the stroke dash cap.
|
double |
getStrokeDashOffset()
Gets or sets the stroke dash offset.
|
String |
getStrokeEndLineCap()
Gets or sets the stroke end line cap.
|
String |
getStrokeLineJoin()
Gets or sets the stroke line join.
|
double |
getStrokeMiterLimit()
Gets or sets the stroke miter limit.
|
String |
getStrokeStartLineCap()
Gets or sets the stroke start line cap.
|
double |
getStrokeThickness()
Gets or sets the stroke thickness.
|
void |
setAutomationPropertiesHelpText(String value)
Gets or sets the automation properties help text.
|
void |
setAutomationPropertiesName(String value)
Gets or sets the automation properties name.
|
void |
setClip(String value)
Gets or sets the clip.
|
void |
setData(String value)
Gets or sets the data.
|
void |
setFill(String value)
Gets or sets the fill.
|
void |
setFixedPageNavigateUri(String value)
Gets or sets the fixed page navigate uri.
|
void |
setLanguage(String value)
Gets or sets the language.
|
void |
setName(String value)
Gets or sets the name.
|
void |
setOpacity(double value)
Gets or sets the opacity.
|
void |
setOpacityMask(String value)
Gets or sets the opacity mask.
|
void |
setPathClip(Geometry value)
Gets or sets the path clip.
|
void |
setPathData(Geometry value)
Gets or sets the path data.
|
void |
setPathFill(Brush value)
Gets or sets the path fill.
|
void |
setPathOpacityMask(Brush value)
Gets or sets the path opacity mask.
|
void |
setPathRenderTransform(Transform value)
Gets or sets the path render transform.
|
void |
setPathStroke(Brush value)
Gets or sets the path stroke.
|
void |
setRenderTransform(String value)
Gets or sets the render transform.
|
void |
setSnapsToDevicePixels(boolean value)
Gets or sets a value indicating whether snaps to device pixels.
|
void |
setSnapsToDevicePixelsSpecified(boolean value)
Gets or sets a value indicating whether snaps to device pixels specified.
|
void |
setStroke(String value)
Gets or sets the stroke.
|
void |
setStrokeDashArray(String value)
Gets or sets the stroke dash array.
|
void |
setStrokeDashCap(String value)
Gets or sets the stroke dash cap.
|
void |
setStrokeDashOffset(double value)
Gets or sets the stroke dash offset.
|
void |
setStrokeEndLineCap(String value)
Gets or sets the stroke end line cap.
|
void |
setStrokeLineJoin(String value)
Gets or sets the stroke line join.
|
void |
setStrokeMiterLimit(double value)
Gets or sets the stroke miter limit.
|
void |
setStrokeStartLineCap(String value)
Gets or sets the stroke start line cap.
|
void |
setStrokeThickness(double value)
Gets or sets the stroke thickness.
|
public Path()
Initializes a new instance of the Path class.
public final Transform getPathRenderTransform()
Gets or sets the path render transform. Establishes a new coordinate frame for all attributes of the path and for all child elements of the path, such as the geometry defined by the Path.Data property element.
public final void setPathRenderTransform(Transform value)
Gets or sets the path render transform. Establishes a new coordinate frame for all attributes of the path and for all child elements of the path, such as the geometry defined by the Path.Data property element.
public final Geometry getPathClip()
Gets or sets the path clip. Limits the rendered region of the element.
public final void setPathClip(Geometry value)
Gets or sets the path clip. Limits the rendered region of the element.
public final Brush getPathOpacityMask()
Gets or sets the path opacity mask. Specifies the mask of alpha values that is applied to the path in the same fashion as the Opacity attribute, but allowing different alpha values for different areas of the element.
public final void setPathOpacityMask(Brush value)
Gets or sets the path opacity mask. Specifies the mask of alpha values that is applied to the path in the same fashion as the Opacity attribute, but allowing different alpha values for different areas of the element.
public final Brush getPathFill()
Gets or sets the path fill. Describes the brush used to paint the geometry specified by the Data property of the path.
public final void setPathFill(Brush value)
Gets or sets the path fill. Describes the brush used to paint the geometry specified by the Data property of the path.
public final Brush getPathStroke()
Gets or sets the path stroke. Specifies the brush used to draw the stroke.
public final void setPathStroke(Brush value)
Gets or sets the path stroke. Specifies the brush used to draw the stroke.
public final Geometry getPathData()
Gets or sets the path data. Describes the geometry of the path.
public final void setPathData(Geometry value)
Gets or sets the path data. Describes the geometry of the path.
public final String getData()
Gets or sets the data. Describes the geometry of the path.
public final void setData(String value)
Gets or sets the data. Describes the geometry of the path.
public final String getFill()
Gets or sets the fill. Describes the brush used to paint the geometry specified by the Data property of the path.
public final void setFill(String value)
Gets or sets the fill. Describes the brush used to paint the geometry specified by the Data property of the path.
public final String getRenderTransform()
Gets or sets the render transform. Establishes a new coordinate frame for all attributes of the path and for all child elements of the path, such as the geometry defined by the Path.Data property element.
public final void setRenderTransform(String value)
Gets or sets the render transform. Establishes a new coordinate frame for all attributes of the path and for all child elements of the path, such as the geometry defined by the Path.Data property element.
public final String getClip()
Gets or sets the clip. Limits the rendered region of the element.
public final void setClip(String value)
Gets or sets the clip. Limits the rendered region of the element.
public final double getOpacity()
Gets or sets the opacity. Defines the uniform transparency of the path element. Values range from 0 (fully transparent) to 1 (fully opaque), inclusive.Values outside of this range are invalid.
public final void setOpacity(double value)
Gets or sets the opacity. Defines the uniform transparency of the path element. Values range from 0 (fully transparent) to 1 (fully opaque), inclusive.Values outside of this range are invalid.
public final String getOpacityMask()
Gets or sets the opacity mask. Specifies a mask of alpha values that is applied to the path in the same fashion as the Opacity attribute, but allowing different alpha values for different areas of the element.
public final void setOpacityMask(String value)
Gets or sets the opacity mask. Specifies a mask of alpha values that is applied to the path in the same fashion as the Opacity attribute, but allowing different alpha values for different areas of the element.
public final String getStroke()
Gets or sets the stroke. Specifies the brush used to draw the stroke.
public final void setStroke(String value)
Gets or sets the stroke. Specifies the brush used to draw the stroke.
public final String getStrokeDashArray()
Gets or sets the stroke dash array. Specifies the length of dashes and gaps of the outline stroke. These values are specified as multiples of the stroke thickness as a space-separated list with an even number of non-negative values. When a stroke is drawn, the dashes and gaps specified by these values are repeated to cover the length of the stroke. If this attribute is omitted, the stroke is drawn solid, without any gaps.
public final void setStrokeDashArray(String value)
Gets or sets the stroke dash array. Specifies the length of dashes and gaps of the outline stroke. These values are specified as multiples of the stroke thickness as a space-separated list with an even number of non-negative values. When a stroke is drawn, the dashes and gaps specified by these values are repeated to cover the length of the stroke. If this attribute is omitted, the stroke is drawn solid, without any gaps.
public final String getStrokeDashCap()
Gets or sets the stroke dash cap. Specifies how the ends of each dash are drawn. Valid values are Flat, Round, Square, and Triangle.
public final void setStrokeDashCap(String value)
Gets or sets the stroke dash cap. Specifies how the ends of each dash are drawn. Valid values are Flat, Round, Square, and Triangle.
public final double getStrokeDashOffset()
Gets or sets the stroke dash offset. Adjusts the start point for repeating the dash array pattern. If this value is omitted, the dash array aligns with the origin of the stroke. Values are specified as multiples of the stroke thickness.
public final void setStrokeDashOffset(double value)
Gets or sets the stroke dash offset. Adjusts the start point for repeating the dash array pattern. If this value is omitted, the dash array aligns with the origin of the stroke. Values are specified as multiples of the stroke thickness.
public final String getStrokeEndLineCap()
Gets or sets the stroke end line cap. Defines the shape of the end of the last dash in a stroke. Valid values are Flat, Square, Round, and Triangle.
public final void setStrokeEndLineCap(String value)
Gets or sets the stroke end line cap. Defines the shape of the end of the last dash in a stroke. Valid values are Flat, Square, Round, and Triangle.
public final String getStrokeStartLineCap()
Gets or sets the stroke start line cap. Defines the shape of the beginning of the first dash in a stroke. Valid values are Flat, Square, Round, and Triangle.
public final void setStrokeStartLineCap(String value)
Gets or sets the stroke start line cap. Defines the shape of the beginning of the first dash in a stroke. Valid values are Flat, Square, Round, and Triangle.
public final String getStrokeLineJoin()
Gets or sets the stroke line join. Specifies how a stroke is drawn at a corner of a path. Valid values are Miter, Bevel, and Round. If Miter is selected, the value of StrokeMiterLimit is used in drawing the stroke.
public final void setStrokeLineJoin(String value)
Gets or sets the stroke line join. Specifies how a stroke is drawn at a corner of a path. Valid values are Miter, Bevel, and Round. If Miter is selected, the value of StrokeMiterLimit is used in drawing the stroke.
public final double getStrokeMiterLimit()
Gets or sets the stroke miter limit. The ratio between the maximum miter length and half of the stroke thickness. This value is significant only if the StrokeLineJoin attribute specifies Miter.
public final void setStrokeMiterLimit(double value)
Gets or sets the stroke miter limit. The ratio between the maximum miter length and half of the stroke thickness. This value is significant only if the StrokeLineJoin attribute specifies Miter.
public final double getStrokeThickness()
Gets or sets the stroke thickness. Specifies the thickness of a stroke, in units of the effective coordinate space(includes the path's render transform). The stroke is drawn on top of the boundary of the geometry specified by the Path element’s Data property. Half of the StrokeThickness extends outside of the geometry specified by the Data property
public final void setStrokeThickness(double value)
Gets or sets the stroke thickness. Specifies the thickness of a stroke, in units of the effective coordinate space(includes the path's render transform). The stroke is drawn on top of the boundary of the geometry specified by the Path element’s Data property. Half of the StrokeThickness extends outside of the geometry specified by the Data property
public final String getName()
Gets or sets the name. Contains a string value that identifies the current element as a named, addressable point in the document for the purpose of hyperlinking.
public final void setName(String value)
Gets or sets the name. Contains a string value that identifies the current element as a named, addressable point in the document for the purpose of hyperlinking.
public final String getFixedPageNavigateUri()
Gets or sets the fixed page navigate uri. Associates a hyperlink URI with the element. May be a relative reference or a URI that addresses a resource that is internal to or external to the package.
public final void setFixedPageNavigateUri(String value)
Gets or sets the fixed page navigate uri. Associates a hyperlink URI with the element. May be a relative reference or a URI that addresses a resource that is internal to or external to the package.
public final String getLanguage()
Gets or sets the language. Specifies the default language used for the current element and for any child or descendant elements. The language is specified according to RFC 3066.
public final void setLanguage(String value)
Gets or sets the language. Specifies the default language used for the current element and for any child or descendant elements. The language is specified according to RFC 3066.
public final String getAutomationPropertiesName()
Gets or sets the automation properties name. A brief description of the Path for accessibility purposes, particularly if filled with an ImageBrush.
public final void setAutomationPropertiesName(String value)
Gets or sets the automation properties name. A brief description of the Path for accessibility purposes, particularly if filled with an ImageBrush.
public final String getAutomationPropertiesHelpText()
Gets or sets the automation properties help text. A detailed description of the Path for accessibility purposes, particularly if filled with an ImageBrush.
public final void setAutomationPropertiesHelpText(String value)
Gets or sets the automation properties help text. A detailed description of the Path for accessibility purposes, particularly if filled with an ImageBrush.
public final boolean getSnapsToDevicePixels()
Gets or sets a value indicating whether snaps to device pixels. On Anti-aliasing consumers controls if control points snap to the nearest device pixels. Valid values are ‘false’ and ‘true’. Consumers MAY ignore this attribute.
public final void setSnapsToDevicePixels(boolean value)
Gets or sets a value indicating whether snaps to device pixels. On Anti-aliasing consumers controls if control points snap to the nearest device pixels. Valid values are ‘false’ and ‘true’. Consumers MAY ignore this attribute.
public final boolean getSnapsToDevicePixelsSpecified()
Gets or sets a value indicating whether snaps to device pixels specified.
public final void setSnapsToDevicePixelsSpecified(boolean value)
Gets or sets a value indicating whether snaps to device pixels specified.
Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.