Skip to main content

ImageListBullet Class

A bullet that is displayed using an image.

Declaration

public class ImageListBullet extends ListBullet

Remarks

The following code snippet configures an image bullet for a paragraph:

package presentation;

import com.devexpress.docs.presentation.*;

public class App {
    public static void main(String[] args) throws Exception {
        Presentation presentation = new Presentation();
        presentation.getSlides().clear();

        Slide slide = new Slide(SlideLayoutType.BLANK);
        presentation.getSlides().add(slide);

        Shape shape = new Shape(ShapeType.getRectangle(), 30, 30, 2000, 1000);
        slide.getShapes().add(shape);

        // Use an image bullet for a text paragraph
        ImageListBullet i_bullet = new ImageListBullet();
        try (InputStream stream = Files.newInputStream(Path.of("..\\..\\..\\data\\image.png"))) {
            i_bullet.setImage(new OfficeImage(DXImage.fromStream(stream)));
        }
        TextParagraph paragraph2 = new TextParagraph();
        paragraph2.getProperties().setListBullet(i_bullet);
        paragraph2.setText("Paragraph 2");
        shape.getTextArea().getParagraphs().add(paragraph2);
    }
}

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
ListBullet
ImageListBullet

ImageListBullet()

Initializes a new instance of the ImageListBullet class.

Declaration

public ImageListBullet()

Methods

deepClone() Method

Returns a deep copy of this ImageListBullet instance.

Declaration

public ImageListBullet deepClone()

Returns

Type Description
ImageListBullet

A deep copy of this ImageListBullet.

getImage() Method

Returns the image used as a bullet.

Declaration

public OfficeImageBase getImage()

Returns

Type Description
OfficeImageBase

The image used as a bullet.

getLinkPath() Method

Returns the reference (file path or URI) to the image file used as a bullet.

Declaration

public String getLinkPath()

Returns

Type Description
String

The reference (file path or URI) to the image file used as a bullet.

setImage(DXImage image) Method

Sets the image used as a bullet.

Declaration

public void setImage(DXImage image)

Parameters

Name Type Description
image DXImage

The image used as a bullet.

setImage(OfficeImageBase image) Method

Sets the image used as a bullet.

Declaration

public void setImage(OfficeImageBase image)

Parameters

Name Type Description
image OfficeImageBase

The image used as a bullet.

setLinkPath(String value) Method

Sets the reference (file path or URI) to the image file used as a bullet.

Declaration

public void setLinkPath(String value)

Parameters

Name Type Description
value String

The reference (file path or URI) to the image file used as a bullet.