Skip to main content

OutlineStyle Class

Contains properties that define the outline style of a shape.

Declaration

public class OutlineStyle extends OfficeObject

Remarks

The following code snippet configures an outline style for text characters in a paragraph:

import com.devexpress.docs.office.*;
import com.devexpress.system.drawing.*;
//...
// Create a dark red outline style.
OutlineStyle outlineStyle = new OutlineStyle();
outlineStyle.setFill(new SolidFill(Color.getDarkRed()));

TextProperties textProperties = new TextProperties();
textProperties.setOutlineStyle(outlineStyle);

// Create a shape.
Shape shape = new Shape(ShapeType.getRoundedRectangle(), 50, 50, 1000, 700);
shape.getTextArea().setText("Presentation API for Java");

// Apply a dark red outline to text characters.
shape.getTextArea()
        .getParagraphs()
        .getFirst()
        .getProperties()
        .setTextProperties(textProperties);

// Get the first slide in the presentation.
Slide slide = presentation.getSlides().getFirst();
slide.getShapes().add(shape);

Inherited Members

com.devexpress.system.JavaObject.clone()
com.devexpress.system.JavaObject.equals(java.lang.Object)
com.devexpress.system.JavaObject.hashCode()
com.devexpress.system.JavaObject.initFields()
com.devexpress.system.JavaObject.memberwiseClone()
com.devexpress.system.JavaObject.toString()
java.lang.Object.finalize()
java.lang.Object.getClass()
java.lang.Object.notify()
java.lang.Object.notifyAll()
java.lang.Object.wait()
java.lang.Object.wait(long)
java.lang.Object.wait(long,int)

Inheritance

Object
JavaObject
OfficeObject
OutlineStyle

OutlineStyle()

Initializes a new instance of the OutlineStyle class.

Declaration

public OutlineStyle()

Methods

deepClone() Method

Returns a deep copy of this OutlineStyle instance.

Declaration

public OutlineStyle deepClone()

Returns

Type Description
OutlineStyle

A deep copy of this OutlineStyle.

getCapType() Method

Returns the type of line end caps.

Declaration

public LineEndCapType getCapType()

Returns

Type Description
LineEndCapType

The cap type.

getCompoundType() Method

Returns whether the outline is rendered as a single line or as multiple parallel lines with varying thicknesses.

Declaration

public LineCompoundType getCompoundType()

Returns

Type Description
LineCompoundType

The compound type.

getDashType() Method

Returns the dash type of the outline.

Declaration

public LineDashType getDashType()

Returns

Type Description
LineDashType

The dash type.

getFill() Method

Returns the outline fill.

Declaration

public OutlineFill getFill()

Returns

Type Description
OutlineFill

The outline fill.

getJoinType() Method

Returns the join type of the outline.

Declaration

public LineJoinType getJoinType()

Returns

Type Description
LineJoinType

The join type.

getMiterLimit() Method

Returns the miter limit of the outline.

Declaration

public float getMiterLimit()

Returns

Type Description
float

The miter limit.

getWidth() Method

Returns the outline width.

Declaration

public float getWidth()

Returns

Type Description
float

The outline width.

setCapType(LineEndCapType value) Method

Sets the type of line end caps.

Declaration

public void setCapType(LineEndCapType value)

Parameters

Name Type Description
value LineEndCapType

The cap type.

setCompoundType(LineCompoundType value) Method

Sets whether the outline is rendered as a single line or as multiple parallel lines with varying thicknesses.

Declaration

public void setCompoundType(LineCompoundType value)

Parameters

Name Type Description
value LineCompoundType

The compound type.

setDashType(LineDashType value) Method

Sets the dash type of the outline.

Declaration

public void setDashType(LineDashType value)

Parameters

Name Type Description
value LineDashType

The dash type.

setFill(OutlineFill value) Method

Sets the outline fill.

Declaration

public void setFill(OutlineFill value)

Parameters

Name Type Description
value OutlineFill

The outline fill.

setJoinType(LineJoinType value) Method

Sets the join type of the outline.

Declaration

public void setJoinType(LineJoinType value)

Parameters

Name Type Description
value LineJoinType

The join type.

setMiterLimit(float value) Method

Sets the miter limit of the outline.

Declaration

public void setMiterLimit(float value)

Parameters

Name Type Description
value float

The miter limit.

setWidth(float value) Method

Sets the outline width.

Declaration

public void setWidth(float value)

Parameters

Name Type Description
value float

The outline width.