GradientFormat / PatternFormat — Aspose.Slides FOSS for Java API Reference
Enumerations GradientFormat ו PatternFormat מחלקות שולטות בתכונות המילוי של גרדיאנט ותבנית לצורות. שתיהן מרחיבות PVIObject.
Enumerations: org.aspose.slides.foss
import org.aspose.slides.foss.*;GradientFormat
public class GradientFormat extends PVIObject implements IGradientFormat, IFillParamSourceEnumerations
| Enumerations | Enumerations | Enumerations | Enumerations |
|---|---|---|---|
getGradientDirection() / setGradientDirection(GradientDirection) | GradientDirection | קריאה/כתיבה | כיוון הגרדיאנט (קווי, מסלול, וכו’). |
getGradientShape() | GradientShape | Enumerations | צורת הגרדיאנט. |
getLinearGradientAngle() / setLinearGradientAngle(double) | double | קריאה/כתיבה | זווית לגרדיאנטים קוויים (מעלות). |
getLinearGradientScaled() / setLinearGradientScaled(NullableBool) | NullableBool | קריאה/כתיבה | האם הגרדיאנט מותאם לגודל. |
getTileFlip() / setTileFlip(TileFlip) | TileFlip | קריאה/כתיבה | מצב הפיכת אריחים. |
getGradientStops() | IGradientStopCollection | Enumerations | אוסף של נקודות עצירה של גרדיאנט. |
הפניה ל-API של המחלקה CompositeNode ב‑aspose-note גרסה 26.3.1. מחלקת בסיס לכל צמתים במסמך שיכולים להכיל צמתים ילדים.
import org.aspose.slides.foss.*;
import java.awt.Color;
IAutoShape shape = slide.getShapes().addAutoShape(
ShapeType.RECTANGLE, 50, 50, 200, 100);
IFillFormat fill = shape.getFillFormat();
fill.setFillType(FillType.GRADIENT);
IGradientFormat grad = fill.getGradientFormat();
grad.setGradientDirection(GradientDirection.FROM_CORNER1);
grad.setLinearGradientAngle(45.0);PatternFormat
public class PatternFormat extends PVIObject implements IPatternFormatEnumerations
| Enumerations | Enumerations | Enumerations | Enumerations |
|---|---|---|---|
getPatternStyle() / setPatternStyle(PatternStyle) | PatternStyle | קריאה/כתיבה | סגנון תבנית (למשל,., PERCENT05, HORIZONTAL, וכו’). |
getForeColor() | IColorFormat | Enumerations | צבע הקדמי של התבנית. |
getBackColor() | IColorFormat | Enumerations | צבע הרקע של התבנית. |
הפניה ל-API של המחלקה CompositeNode ב‑aspose-note גרסה 26.3.1. מחלקת בסיס לכל צמתים במסמך שיכולים להכיל צמתים ילדים.
IFillFormat fill = shape.getFillFormat();
fill.setFillType(FillType.PATTERN);
IPatternFormat pattern = fill.getPatternFormat();
pattern.setPatternStyle(PatternStyle.HORIZONTAL);
pattern.getForeColor().setColor(Color.BLACK);
pattern.getBackColor().setColor(Color.WHITE);