Skip to main content

ShapeGeometry Class

Defines the geometry of a shape, including its guides, adjust values, and paths.

Declaration

public class ShapeGeometry extends PresentationObject

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

ShapeGeometry()

Initializes a new instance of the ShapeGeometry class.

Declaration

public ShapeGeometry()

Methods

getAdjustHandles() Method

Returns a collection of shape adjustment handles. These handles specify points on the shape that you can use to perform transform operations.

Declaration

public IAdjustHandleCollection getAdjustHandles()

Returns

Type Description
IAdjustHandleCollection

A collection of shape adjust handles.

getAdjustValues() Method

Returns a collection of adjustment values applied to the specified shape. An adjustment value is a guide with a fixed, value-based formula. The adjustment value itself is not calculated. Instead, it defines a parameter used in calculations in the shape’s other guides.

Declaration

public IShapeGuideCollection getAdjustValues()

Returns

Type Description
IShapeGuideCollection

A collection of adjustment values (guides) for a shape’s geometry.

getConnectionSites() Method

Returns a collection of shape connection sites.

Declaration

public IShapeConnectionCollection getConnectionSites()

Returns

Type Description
IShapeConnectionCollection

A collection of shape connection sites.

getGuides() Method

Returns a collection of guides that define a shape’s geometry. A guide is a formula that calculates a value based on the shape’s properties and other guides. Guides determine the position and size of the shape’s elements.

Declaration

public IShapeGuideCollection getGuides()

Returns

Type Description
IShapeGuideCollection

A collection of guides.

getPaths() Method

Returns a collection of paths that define the geometry of a shape. A path is a sequence of segments that can be straight lines, arcs, or Bezier curves.

Declaration

public IShapePathCollection getPaths()

Returns

Type Description
IShapePathCollection

A collection of paths that define the geometry of a shape.

getShapeTextRectangle() Method

Returns a rectangle that defines the area within which text is displayed in a shape. This rectangle specifies the position and size of the text area relative to the shape’s geometry.

Declaration

public @Nullable AdjustRectangle getShapeTextRectangle()

Returns

Type Description
AdjustRectangle

A rectangle that defines the shape text area.

setShapeTextRectangle(@Nullable AdjustRectangle value) Method

Sets the rectangle that defines the shape text area.

Declaration

public void setShapeTextRectangle(@Nullable AdjustRectangle value)

Parameters

Name Type Description
value AdjustRectangle

The shape text area rectangle.