com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Interface IBulletFormatEffectiveData



  • public interface IBulletFormatEffectiveData

    Immutable object which contains effective paragraph bullet formatting properties.


    This interface is used as a part of IParagraphFormatEffectiveData.
    • Method Detail

      • getType

        byte getType()

        Returns the bullet type of a paragraph. Read-only BulletType.

      • getChar

        char getChar()

        Returns the bullet char of a paragraph. Read-only char.

      • getActualBulletValue

        java.lang.String getActualBulletValue()

        Returns actual bullet value for parent paragraph. Read-only String.

      • getFont

        IFontData getFont()

        Returns the bullet font of a paragraph. Read-only IFontData.

      • getHeight

        float getHeight()

        Returns the bullet height of a paragraph. Read-only float.

      • getNumberedBulletStartWith

        short getNumberedBulletStartWith()

        Returns the first number which is used for group of numbered bullets. Read-only short.

      • getNumberedBulletStyle

        byte getNumberedBulletStyle()

        Returns the style of a numbered bullet. Read-only NumberedBulletStyle.

      • getColor

        @Deprecated
        java.awt.Color getColor()
        Deprecated. Use IBulletFormatEffectiveData.getFillFormat().getSolidFillColor() instead. The property will be removed after release of version 21.9.

        Returns the color of a bullet. Read-only Color(getColor()).

      • isBulletHardColor

        boolean isBulletHardColor()

        Determines whether the bullet has own color or inherits it from the first portion in the paragraph. Returns <b>true</b> if bullet has own color and <b>false</b> if bullet inherits color from the first portion in the paragraph. Read-only boolean.

      • isBulletHardFont

        boolean isBulletHardFont()

        Determines whether the bullet has own font or inherits it from the first portion in the paragraph. Returns <b>true</b> if bullet has own font and <b>true</b> if bullet inherits font from the first portion in the paragraph. Read-only boolean.

      • getPicture

        @Deprecated
        IPictureEffectiveData getPicture()
        Deprecated. Use IBulletFormatEffectiveData.getFillFormat().getPictureFillFormat() instead. The property will be removed after release of version 21.9.

        Returns the picture used as a bullet in the paragraph. Read-only IPictureEffectiveData.

      • getFillFormat

        IFillFormatEffectiveData getFillFormat()

        Returns the bullet fill format of a paragraph. Read-only IFillFormatEffectiveData.


         This example demonstrates retrieving bullet's fill effective data.
         
         Presentation pres = new Presentation("SomePresentation.pptx");
         try {
             // Assume that the first shape on the first slide is AutoShape with some text...
             // Output information about text paragraphs' bullets
             AutoShape autoShape = (AutoShape)pres.getSlides().get_Item(0).getShapes().get_Item(0);
             for (IParagraph para : autoShape.getTextFrame().getParagraphs())
             {
                 IBulletFormatEffectiveData bulletFormatEffective = para.getParagraphFormat().getBullet().getEffective();
                 System.out.println("Bullet type: " + bulletFormatEffective.getType());
                 if (bulletFormatEffective.getType() != BulletType.None)
                 {
                     System.out.println("Bullet fill type: " + bulletFormatEffective.getFillFormat().getFillType());
                     switch (bulletFormatEffective.getFillFormat().getFillType())
                     {
                         case FillType.Solid:
                             System.out.println("Solid fill color: " + bulletFormatEffective.getFillFormat().getSolidFillColor());
                             break;
                         case FillType.Gradient:
                             System.out.println("Gradient stops count: " + bulletFormatEffective.getFillFormat().getGradientFormat().getGradientStops().size());
                             for (IGradientStopEffectiveData gradStop : bulletFormatEffective.getFillFormat().getGradientFormat().getGradientStops())
                                 System.out.println(gradStop.getPosition() + ": " + gradStop.getColor());
                             break;
                         case FillType.Pattern:
                             System.out.println("Pattern style: " + bulletFormatEffective.getFillFormat().getPatternFormat().getPatternStyle());
                             System.out.println("Fore color: " + bulletFormatEffective.getFillFormat().getPatternFormat().getForeColor());
                             System.out.println("Back color: " + bulletFormatEffective.getFillFormat().getPatternFormat().getBackColor());
                             break;
                     }
                 }
                 System.out.println();
             }
         } finally {
             if (pres != null) pres.dispose();
         }