java.lang.Object
com.aspose.words.PresetTexture
public class PresetTexture
- extends java.lang.Object
Utility class containing constants.
Specifies texture to be used to fill a shape.
Example:
Show how to set marker formatting.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
Shape shape = builder.insertChart(ChartType.SCATTER, 432.0, 252.0);
Chart chart = shape.getChart();
// Delete default generated series.
chart.getSeries().clear();
ChartSeries series = chart.getSeries().add("AW Series 1", new double[] { 0.7, 1.8, 2.6, 3.9 },
new double[] { 2.7, 3.2, 0.8, 1.7 });
// Set marker formatting.
series.getMarker().setSize(40);
series.getMarker().setSymbol(MarkerSymbol.SQUARE);
ChartDataPointCollection dataPoints = series.getDataPoints();
dataPoints.get(0).getMarker().getFormat().getFill().presetTextured(PresetTexture.DENIM);
dataPoints.get(0).getMarker().getFormat().getStroke().setForeColor(Color.YELLOW);
dataPoints.get(0).getMarker().getFormat().getStroke().setBackColor(Color.RED);
dataPoints.get(1).getMarker().getFormat().getFill().presetTextured(PresetTexture.WATER_DROPLETS);
dataPoints.get(1).getMarker().getFormat().getStroke().setForeColor(Color.YELLOW);
dataPoints.get(1).getMarker().getFormat().getStroke().setVisible(false);
dataPoints.get(2).getMarker().getFormat().getFill().presetTextured(PresetTexture.GREEN_MARBLE);
dataPoints.get(2).getMarker().getFormat().getStroke().setForeColor(Color.YELLOW);
dataPoints.get(3).getMarker().getFormat().getFill().presetTextured(PresetTexture.OAK);
dataPoints.get(3).getMarker().getFormat().getStroke().setForeColor(Color.YELLOW);
dataPoints.get(3).getMarker().getFormat().getStroke().setTransparency(0.5);
doc.save(getArtifactsDir() + "Charts.MarkerFormatting.docx");
|
Field Summary |
static final int | NONE = -1 | |
|
No Texture.
|
static final int | BLUE_TISSUE_PAPER = 1 | |
|
Blue tissue paper texture.
|
static final int | BOUQUET = 2 | |
|
Bouquet texture.
|
static final int | BROWN_MARBLE = 3 | |
|
Brown marble texture.
|
static final int | CANVAS = 4 | |
|
Canvas texture.
|
static final int | CORK = 5 | |
|
Cork texture.
|
static final int | DENIM = 6 | |
|
Denim texture.
|
static final int | FISH_FOSSIL = 7 | |
|
Fish fossil texture.
|
static final int | GRANITE = 8 | |
|
Granite texture.
|
static final int | GREEN_MARBLE = 9 | |
|
Green marble texture.
|
static final int | MEDIUM_WOOD = 10 | |
|
Medium wood texture.
|
static final int | NEWSPRINT = 11 | |
|
Newsprint texture.
|
static final int | OAK = 12 | |
|
Oak texture.
|
static final int | PAPER_BAG = 13 | |
|
Paper bag texture.
|
static final int | PAPYRUS = 14 | |
|
Papyrus texture.
|
static final int | PARCHMENT = 15 | |
|
Parchment texture.
|
static final int | PINK_TISSUE_PAPER = 16 | |
|
Pink tissue paper texture.
|
static final int | PURPLE_MESH = 17 | |
|
Purple mesh texture.
|
static final int | RECYCLED_PAPER = 18 | |
|
Recycled paper texture.
|
static final int | SAND = 19 | |
|
Sand texture.
|
static final int | STATIONERY = 20 | |
|
Stationery texture.
|
static final int | WALNUT = 21 | |
|
Walnut texture.
|
static final int | WATER_DROPLETS = 22 | |
|
Water droplets texture.
|
static final int | WHITE_MARBLE = 23 | |
|
White marble texture.
|
static final int | WOVEN_MAT = 24 | |
|
Woven mat texture.
|
NONE = -1 | |
public static final int NONE |
-
No Texture.
BLUE_TISSUE_PAPER = 1 | |
public static final int BLUE_TISSUE_PAPER |
-
Blue tissue paper texture.
BOUQUET = 2 | |
public static final int BOUQUET |
-
Bouquet texture.
BROWN_MARBLE = 3 | |
public static final int BROWN_MARBLE |
-
Brown marble texture.
CANVAS = 4 | |
public static final int CANVAS |
-
Canvas texture.
CORK = 5 | |
public static final int CORK |
-
Cork texture.
DENIM = 6 | |
public static final int DENIM |
-
Denim texture.
FISH_FOSSIL = 7 | |
public static final int FISH_FOSSIL |
-
Fish fossil texture.
GRANITE = 8 | |
public static final int GRANITE |
-
Granite texture.
GREEN_MARBLE = 9 | |
public static final int GREEN_MARBLE |
-
Green marble texture.
MEDIUM_WOOD = 10 | |
public static final int MEDIUM_WOOD |
-
Medium wood texture.
NEWSPRINT = 11 | |
public static final int NEWSPRINT |
-
Newsprint texture.
OAK = 12 | |
public static final int OAK |
-
Oak texture.
PAPER_BAG = 13 | |
public static final int PAPER_BAG |
-
Paper bag texture.
PAPYRUS = 14 | |
public static final int PAPYRUS |
-
Papyrus texture.
PARCHMENT = 15 | |
public static final int PARCHMENT |
-
Parchment texture.
PINK_TISSUE_PAPER = 16 | |
public static final int PINK_TISSUE_PAPER |
-
Pink tissue paper texture.
PURPLE_MESH = 17 | |
public static final int PURPLE_MESH |
-
Purple mesh texture.
RECYCLED_PAPER = 18 | |
public static final int RECYCLED_PAPER |
-
Recycled paper texture.
SAND = 19 | |
public static final int SAND |
-
Sand texture.
STATIONERY = 20 | |
public static final int STATIONERY |
-
Stationery texture.
WALNUT = 21 | |
public static final int WALNUT |
-
Walnut texture.
WATER_DROPLETS = 22 | |
public static final int WATER_DROPLETS |
-
Water droplets texture.
WHITE_MARBLE = 23 | |
public static final int WHITE_MARBLE |
-
White marble texture.
WOVEN_MAT = 24 | |
public static final int WOVEN_MAT |
-
Woven mat texture.
See Also:
Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
Aspose.Words Support Forum - our preferred method of support.