Skip to main content

ShapeBase Class

A base class for shapes.

Declaration

public abstract class ShapeBase 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

Constructors

ShapeBase() Constructor

Initializes a new instance of the ShapeBase class.

Declaration

public ShapeBase()

ShapeBase(float x, float y, float width, float height) Constructor

Initializes a new instance of the ShapeBase class with specified settings.

Declaration

public ShapeBase(float x, float y, float width, float height)

Parameters

Name Type Description
x float

The X-coordinate.

y float

The Y-coordinate.

width float

The shape width.

height float

The shape height.

ShapeBase(float x, float y, float width) Constructor

Initializes a new instance of the ShapeBase class with specified settings.

Declaration

public ShapeBase(float x, float y, float width)

Parameters

Name Type Description
x float

The X-coordinate.

y float

The Y-coordinate.

width float

The shape width.

ShapeBase(float x, float y) Constructor

Initializes a new instance of the ShapeBase class with specified settings.

Declaration

public ShapeBase(float x, float y)

Parameters

Name Type Description
x float

The X-coordinate.

y float

The Y-coordinate.

ShapeBase(float x) Constructor

Initializes a new instance of the ShapeBase class with specified settings.

Declaration

public ShapeBase(float x)

Parameters

Name Type Description
x float

The X-coordinate.

Methods

deepClone() Method

Clones the current ShapeBase instance.

Declaration

public ShapeBase deepClone()

Returns

Type Description
ShapeBase

The cloned ShapeBase instance.

getAlternativeText() Method

Returns the alternative text for a shape.

Declaration

public String getAlternativeText()

Returns

Type Description
String

The alternative text for a shape.

Remarks

Alternative text supplies a textual description of a shape for accessibility and screen readers.

Use the setDecorative(boolean value) method to specify whether the shape is decorative and does not add meaningful content. If the shape is decorative, its alternative text is ignored by screen readers.

getDecorative() Method

Indicates whether the shape is decorative and does not add meaningful content.

Declaration

public boolean getDecorative()

Returns

Type Description
boolean

true if the shape is decorative; otherwise, false.

Remarks

Use the setDecorative(boolean value) method to specify whether the shape is decorative and does not add meaningful content. If the shape is decorative, its alternative text is ignored by screen readers.

Use the getAlternativeText() method to specify the alternative text for a shape.

getHeight() Method

Returns the shape height.

Declaration

public float getHeight()

Returns

Type Description
float

The shape height.

getName() Method

Returns the shape name.

Declaration

public String getName()

Returns

Type Description
String

The shape name.

getWidth() Method

Returns the shape width.

Declaration

public float getWidth()

Returns

Type Description
float

The shape width.

getX() Method

Returns the X-coordinate of the shape.

Declaration

public float getX()

Returns

Type Description
float

The X-coordinate of the shape.

getY() Method

Returns the Y-coordinate of the shape.

Declaration

public float getY()

Returns

Type Description
float

The Y-coordinate of the shape.

setAlternativeText(String value) Method

Sets the alternative text for a shape.

Declaration

public void setAlternativeText(String value)

Parameters

Name Type Description
value String

The alternative text for a shape.

Remarks

Alternative text supplies a textual description of a shape for accessibility and screen readers.

Use the setDecorative(boolean value) method to specify whether the shape is decorative and does not add meaningful content. If the shape is decorative, its alternative text is ignored by screen readers.

setDecorative(boolean value) Method

Indicates whether the shape is decorative and does not add meaningful content.

Declaration

public void setDecorative(boolean value)

Parameters

Name Type Description
value boolean

true if the shape is decorative; otherwise, false.

Remarks

Use the setDecorative() method to specify whether the shape is decorative and does not add meaningful content. If the shape is decorative, its alternative text is ignored by screen readers.

setHeight(float value) Method

Sets the shape height.

Declaration

public void setHeight(float value)

Parameters

Name Type Description
value float

The shape height.

setName(String value) Method

Sets the shape name.

Declaration

public void setName(String value)

Parameters

Name Type Description
value String

The shape name.

setWidth(float value) Method

Sets the shape width.

Declaration

public void setWidth(float value)

Parameters

Name Type Description
value float

The shape width.

setX(float value) Method

Sets the X-coordinate of the shape.

Declaration

public void setX(float value)

Parameters

Name Type Description
value float

The X-coordinate of the shape.

setY(float value) Method

Sets the Y-coordinate of the shape.

Declaration

public void setY(float value)

Parameters

Name Type Description
value float

The Y-coordinate of the shape.