Outline Class
Defines stroke settings for PDF graphics paths.
Declaration
public class Outline extends JavaObject implements ICloneable
Remarks
The Outline class specifies the appearance of a shape outline. Use this class to configure the outline fill, width, line cap, line join, miter limit, and dash pattern.
Implements
Inherited Members
Inheritance
Outline()
Initializes a new instance of the Outline class.
Declaration
public Outline()
Methods
create(Fill fill, double width, LineCap lineCap, LineJoin lineJoin, double miterLimit, DashPattern dashPattern) Method
Creates an outline with specified appearance settings.
Declaration
public static Outline create(Fill fill, double width, LineCap lineCap, LineJoin lineJoin, double miterLimit, DashPattern dashPattern)
Parameters
| Name | Type | Description |
|---|---|---|
| fill | Fill | The outline fill. |
| width | double | The outline width, in points. |
| lineCap | LineCap | The line cap style. |
| lineJoin | LineJoin | The line join style. |
| miterLimit | double | The miter limit. |
| dashPattern | DashPattern | The dash pattern. |
Returns
| Type | Description |
|---|---|
Outline |
A new |
create(Fill fill, double width, LineCap lineCap, LineJoin lineJoin, double miterLimit) Method
Creates an outline with specified appearance settings.
Declaration
public static Outline create(Fill fill, double width, LineCap lineCap, LineJoin lineJoin, double miterLimit)
Parameters
| Name | Type | Description |
|---|---|---|
| fill | Fill | The outline fill. |
| width | double | The outline width, in points. |
| lineCap | LineCap | The line cap style. |
| lineJoin | LineJoin | The line join style. |
| miterLimit | double | The miter limit. |
Returns
| Type | Description |
|---|---|
Outline |
A new |
create(Fill fill, double width, LineCap lineCap, LineJoin lineJoin) Method
Creates an outline with specified appearance settings.
Declaration
public static Outline create(Fill fill, double width, LineCap lineCap, LineJoin lineJoin)
Parameters
| Name | Type | Description |
|---|---|---|
| fill | Fill | The outline fill. |
| width | double | The outline width, in points. |
| lineCap | LineCap | The line cap style. |
| lineJoin | LineJoin | The line join style. |
Returns
| Type | Description |
|---|---|
Outline |
A new |
create(Fill fill, double width, LineCap lineCap) Method
Creates an outline with specified appearance settings.
Declaration
public static Outline create(Fill fill, double width, LineCap lineCap)
Parameters
| Name | Type | Description |
|---|---|---|
| fill | Fill | The outline fill. |
| width | double | The outline width, in points. |
| lineCap | LineCap | The line cap style. |
Returns
| Type | Description |
|---|---|
Outline |
A new |
create(Fill fill, double width) Method
Creates an outline with the specified fill and width.
Declaration
public static Outline create(Fill fill, double width)
Parameters
| Name | Type | Description |
|---|---|---|
| fill | Fill | The outline fill. |
| width | double | The outline width, in points. |
Returns
| Type | Description |
|---|---|
Outline |
A new |
create(Fill fill) Method
Creates an outline with the specified fill.
Declaration
public static Outline create(Fill fill)
Parameters
| Name | Type | Description |
|---|---|---|
| fill | Fill | The outline fill. |
Returns
| Type | Description |
|---|---|
Outline |
A new |
deepClone() Method
Creates a deep copy of the current object.
Declaration
public Outline deepClone()
Returns
| Type | Description |
|---|---|
Outline |
A deep copy of the current object. |
getDashPattern() Method
Returns the outline dash pattern.
Declaration
public DashPattern getDashPattern()
Returns
| Type | Description |
|---|---|
| DashPattern | The dash pattern used to draw the outline. |
getFill() Method
Returns the outline fill.
Declaration
public Fill getFill()
Returns
| Type | Description |
|---|---|
| Fill | The brush used to paint the outline. |
getLineCap() Method
Returns the line cap style.
Declaration
public LineCap getLineCap()
Returns
| Type | Description |
|---|---|
| LineCap | The shape of outline ends. |
getLineJoin() Method
Returns the line join style.
Declaration
public LineJoin getLineJoin()
Returns
| Type | Description |
|---|---|
| LineJoin | The line join style. |
getMiterLimit() Method
Returns the miter limit.
Declaration
public double getMiterLimit()
Returns
| Type | Description |
|---|---|
| double | The maximum ratio of the miter length to the line width. |
getWidth() Method
Returns the outline width.
Declaration
public double getWidth()
Returns
| Type | Description |
|---|---|
| double | The outline width. |
objectClone() Method
Creates a copy of the current object.
Declaration
public Object objectClone()
Returns
| Type | Description |
|---|---|
| Object | A copy of the current object. |
setDashPattern(DashPattern value) Method
Sets the outline dash pattern.
Declaration
public void setDashPattern(DashPattern value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | DashPattern | The dash pattern used to draw the outline. |
setFill(Fill value) Method
Sets the outline fill.
Declaration
public void setFill(Fill value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | Fill | The brush used to paint the outline. |
setLineCap(LineCap value) Method
Sets the line cap style.
Declaration
public void setLineCap(LineCap value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | LineCap | The shape of outline ends. |
setLineJoin(LineJoin value) Method
Sets the line join style.
Declaration
public void setLineJoin(LineJoin value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | LineJoin | The line join style. |
setMiterLimit(double value) Method
Sets the miter limit.
Declaration
public void setMiterLimit(double value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | double | The maximum ratio of the miter length to the line width. |
setWidth(double value) Method
Sets the outline width.
Declaration
public void setWidth(double value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | double | The outline width. |