java.lang.Object
com.aspose.words.ChartShapeType
public class ChartShapeType
- extends java.lang.Object
Utility class containing constants.
Specifies the shape type of chart elements.
Example:
Shows how to set fill, stroke and callout formatting for chart data labels.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
Shape shape = builder.insertChart(ChartType.COLUMN, 432.0, 252.0);
Chart chart = shape.getChart();
// Delete default generated series.
chart.getSeries().clear();
// Add new series.
ChartSeries series = chart.getSeries().add("AW Series 1",
new String[] { "AW Category 1", "AW Category 2", "AW Category 3", "AW Category 4" },
new double[] { 100.0, 200.0, 300.0, 400.0 });
// Show data labels.
series.hasDataLabels(true);
series.getDataLabels().setShowValue(true);
// Format data labels as callouts.
ChartFormat format = series.getDataLabels().getFormat();
format.setShapeType(ChartShapeType.WEDGE_RECT_CALLOUT);
format.getStroke().setColor(Color.lightGray);
format.getFill().solid(Color.GREEN);
series.getDataLabels().getFont().setColor(Color.YELLOW);
// Change fill and stroke of an individual data label.
ChartFormat labelFormat = series.getDataLabels().get(0).getFormat();
labelFormat.getStroke().setColor(Color.BLUE);
labelFormat.getFill().solid(Color.BLUE);
doc.save(getArtifactsDir() + "Charts.FormatDataLables.docx");
- See Also:
- ChartFormat.ShapeType
DEFAULT = 0 | |
public static final int DEFAULT |
-
Indicates that a shape is not defined for the chart element.
RECTANGLE = 1 | |
public static final int RECTANGLE |
-
Rectangle.
ROUND_RECTANGLE = 2 | |
public static final int ROUND_RECTANGLE |
-
Rounded rectangle.
ELLIPSE = 3 | |
public static final int ELLIPSE |
-
Ellipse.
DIAMOND = 4 | |
public static final int DIAMOND |
-
Diamond.
TRIANGLE = 5 | |
public static final int TRIANGLE |
-
Triangle.
RIGHT_TRIANGLE = 6 | |
public static final int RIGHT_TRIANGLE |
-
Right triangle.
PARALLELOGRAM = 7 | |
public static final int PARALLELOGRAM |
-
Parallelogram.
TRAPEZOID = 8 | |
public static final int TRAPEZOID |
-
Trapezoid.
HEXAGON = 9 | |
public static final int HEXAGON |
-
Hexagon.
OCTAGON = 10 | |
public static final int OCTAGON |
-
Octagon.
PLUS = 11 | |
public static final int PLUS |
-
Plus.
STAR = 12 | |
public static final int STAR |
-
Star.
ARROW = 13 | |
public static final int ARROW |
-
Arrow.
HOME_PLATE = 14 | |
public static final int HOME_PLATE |
-
Home plate.
CUBE = 15 | |
public static final int CUBE |
-
Cube.
ARC = 16 | |
public static final int ARC |
-
Arc.
LINE = 17 | |
public static final int LINE |
-
Line.
PLAQUE = 18 | |
public static final int PLAQUE |
-
Plaque.
CAN = 19 | |
public static final int CAN |
-
Can.
DONUT = 20 | |
public static final int DONUT |
-
Donut.
STRAIGHT_CONNECTOR_1 = 21 | |
public static final int STRAIGHT_CONNECTOR_1 |
-
Straight connector 1.
BENT_CONNECTOR_2 = 22 | |
public static final int BENT_CONNECTOR_2 |
-
Bent connector 2.
BENT_CONNECTOR_3 = 23 | |
public static final int BENT_CONNECTOR_3 |
-
Bent connector 3.
BENT_CONNECTOR_4 = 24 | |
public static final int BENT_CONNECTOR_4 |
-
Bent connector 4.
BENT_CONNECTOR_5 = 25 | |
public static final int BENT_CONNECTOR_5 |
-
Bent connector 5.
CURVED_CONNECTOR_2 = 26 | |
public static final int CURVED_CONNECTOR_2 |
-
Curved connector 2.
CURVED_CONNECTOR_3 = 27 | |
public static final int CURVED_CONNECTOR_3 |
-
Curved connector 3.
CURVED_CONNECTOR_4 = 28 | |
public static final int CURVED_CONNECTOR_4 |
-
Curved connector 4.
CURVED_CONNECTOR_5 = 29 | |
public static final int CURVED_CONNECTOR_5 |
-
Curved connector 5.
CALLOUT_1 = 30 | |
public static final int CALLOUT_1 |
-
Callout 1.
CALLOUT_2 = 31 | |
public static final int CALLOUT_2 |
-
Callout 2.
CALLOUT_3 = 32 | |
public static final int CALLOUT_3 |
-
Callout 3.
ACCENT_CALLOUT_1 = 33 | |
public static final int ACCENT_CALLOUT_1 |
-
Accent callout 1.
ACCENT_CALLOUT_2 = 34 | |
public static final int ACCENT_CALLOUT_2 |
-
Accent callout 2.
ACCENT_CALLOUT_3 = 35 | |
public static final int ACCENT_CALLOUT_3 |
-
Accent callout 3.
BORDER_CALLOUT_1 = 36 | |
public static final int BORDER_CALLOUT_1 |
-
Callout with border 1.
BORDER_CALLOUT_2 = 37 | |
public static final int BORDER_CALLOUT_2 |
-
Callout with border 2.
BORDER_CALLOUT_3 = 38 | |
public static final int BORDER_CALLOUT_3 |
-
Callout with border 3.
ACCENT_BORDER_CALLOUT_1 = 39 | |
public static final int ACCENT_BORDER_CALLOUT_1 |
-
Accent callout with border 1.
ACCENT_BORDER_CALLOUT_2 = 40 | |
public static final int ACCENT_BORDER_CALLOUT_2 |
-
Accent callout with border 2.
ACCENT_BORDER_CALLOUT_3 = 41 | |
public static final int ACCENT_BORDER_CALLOUT_3 |
-
Accent callout with border 3.
RIBBON = 42 | |
public static final int RIBBON |
-
Ribbon.
RIBBON_2 = 43 | |
public static final int RIBBON_2 |
-
Ribbon 2.
CHEVRON = 44 | |
public static final int CHEVRON |
-
Chevron.
PENTAGON = 45 | |
public static final int PENTAGON |
-
Pentagon.
NO_SMOKING = 46 | |
public static final int NO_SMOKING |
-
No smoking.
SEAL_4 = 47 | |
public static final int SEAL_4 |
-
Four pointed star.
SEAL_6 = 48 | |
public static final int SEAL_6 |
-
Six pointed star.
SEAL_7 = 49 | |
public static final int SEAL_7 |
-
Seven pointed star.
SEAL_8 = 50 | |
public static final int SEAL_8 |
-
Eight pointed star.
SEAL_10 = 51 | |
public static final int SEAL_10 |
-
Ten pointed star.
SEAL_12 = 52 | |
public static final int SEAL_12 |
-
Twelve pointed star.
SEAL_16 = 53 | |
public static final int SEAL_16 |
-
Sixteen pointed star.
SEAL_24 = 54 | |
public static final int SEAL_24 |
-
Twenty-four pointed star.
SEAL_32 = 55 | |
public static final int SEAL_32 |
-
Thirty-two pointed star.
WEDGE_RECT_CALLOUT = 56 | |
public static final int WEDGE_RECT_CALLOUT |
-
Callout wedge rectangle.
WEDGE_R_RECT_CALLOUT = 57 | |
public static final int WEDGE_R_RECT_CALLOUT |
-
Callout wedge round rectangle.
WEDGE_ELLIPSE_CALLOUT = 58 | |
public static final int WEDGE_ELLIPSE_CALLOUT |
-
Callout wedge ellipse.
WAVE = 59 | |
public static final int WAVE |
-
Wave.
FOLDED_CORNER = 60 | |
public static final int FOLDED_CORNER |
-
Folded corner.
LEFT_ARROW = 61 | |
public static final int LEFT_ARROW |
-
Left arrow.
DOWN_ARROW = 62 | |
public static final int DOWN_ARROW |
-
Down arrow.
UP_ARROW = 63 | |
public static final int UP_ARROW |
-
Up arrow.
LEFT_RIGHT_ARROW = 64 | |
public static final int LEFT_RIGHT_ARROW |
-
Left and right arrow.
UP_DOWN_ARROW = 65 | |
public static final int UP_DOWN_ARROW |
-
Up and down arrow.
IRREGULAR_SEAL_1 = 66 | |
public static final int IRREGULAR_SEAL_1 |
-
Irregular seal 1.
IRREGULAR_SEAL_2 = 67 | |
public static final int IRREGULAR_SEAL_2 |
-
Irregular seal 2.
LIGHTNING_BOLT = 68 | |
public static final int LIGHTNING_BOLT |
-
Lightning bolt.
HEART = 69 | |
public static final int HEART |
-
Heart.
QUAD_ARROW = 70 | |
public static final int QUAD_ARROW |
-
Quad arrow.
LEFT_ARROW_CALLOUT = 71 | |
public static final int LEFT_ARROW_CALLOUT |
-
Callout left arrow.
RIGHT_ARROW_CALLOUT = 72 | |
public static final int RIGHT_ARROW_CALLOUT |
-
Callout right arrow.
UP_ARROW_CALLOUT = 73 | |
public static final int UP_ARROW_CALLOUT |
-
Callout up arrow.
DOWN_ARROW_CALLOUT = 74 | |
public static final int DOWN_ARROW_CALLOUT |
-
Callout down arrow.
LEFT_RIGHT_ARROW_CALLOUT = 75 | |
public static final int LEFT_RIGHT_ARROW_CALLOUT |
-
Callout left and right arrow.
UP_DOWN_ARROW_CALLOUT = 76 | |
public static final int UP_DOWN_ARROW_CALLOUT |
-
Callout up and down arrow.
QUAD_ARROW_CALLOUT = 77 | |
public static final int QUAD_ARROW_CALLOUT |
-
Callout quad arrow.
BEVEL = 78 | |
public static final int BEVEL |
-
Bevel.
LEFT_BRACKET = 79 | |
public static final int LEFT_BRACKET |
-
Left bracket.
RIGHT_BRACKET = 80 | |
public static final int RIGHT_BRACKET |
-
Right bracket.
LEFT_BRACE = 81 | |
public static final int LEFT_BRACE |
-
Left brace.
RIGHT_BRACE = 82 | |
public static final int RIGHT_BRACE |
-
Right brace.
LEFT_UP_ARROW = 83 | |
public static final int LEFT_UP_ARROW |
-
Left up arrow.
BENT_UP_ARROW = 84 | |
public static final int BENT_UP_ARROW |
-
Bent up arrow.
BENT_ARROW = 85 | |
public static final int BENT_ARROW |
-
Bent arrow.
STRIPED_RIGHT_ARROW = 86 | |
public static final int STRIPED_RIGHT_ARROW |
-
Striped right arrow.
NOTCHED_RIGHT_ARROW = 87 | |
public static final int NOTCHED_RIGHT_ARROW |
-
Notched right arrow.
BLOCK_ARC = 88 | |
public static final int BLOCK_ARC |
-
Block arc.
SMILEY_FACE = 89 | |
public static final int SMILEY_FACE |
-
Smiley face.
VERTICAL_SCROLL = 90 | |
public static final int VERTICAL_SCROLL |
-
Vertical scroll.
HORIZONTAL_SCROLL = 91 | |
public static final int HORIZONTAL_SCROLL |
-
Horizontal scroll.
CIRCULAR_ARROW = 92 | |
public static final int CIRCULAR_ARROW |
-
Circular arrow.
UTURN_ARROW = 93 | |
public static final int UTURN_ARROW |
-
U-turn arrow.
CURVED_RIGHT_ARROW = 94 | |
public static final int CURVED_RIGHT_ARROW |
-
Curved right arrow.
CURVED_LEFT_ARROW = 95 | |
public static final int CURVED_LEFT_ARROW |
-
Curved left arrow.
CURVED_UP_ARROW = 96 | |
public static final int CURVED_UP_ARROW |
-
Curved up arrow.
CURVED_DOWN_ARROW = 97 | |
public static final int CURVED_DOWN_ARROW |
-
Curved down arrow.
CLOUD_CALLOUT = 98 | |
public static final int CLOUD_CALLOUT |
-
Callout cloud.
ELLIPSE_RIBBON = 99 | |
public static final int ELLIPSE_RIBBON |
-
Ellipse ribbon.
ELLIPSE_RIBBON_2 = 100 | |
public static final int ELLIPSE_RIBBON_2 |
-
Ellipse ribbon 2.
FLOW_CHART_PROCESS = 101 | |
public static final int FLOW_CHART_PROCESS |
-
Process flow.
FLOW_CHART_DECISION = 102 | |
public static final int FLOW_CHART_DECISION |
-
Decision flow.
FLOW_CHART_INPUT_OUTPUT = 103 | |
public static final int FLOW_CHART_INPUT_OUTPUT |
-
Input output flow.
FLOW_CHART_PREDEFINED_PROCESS = 104 | |
public static final int FLOW_CHART_PREDEFINED_PROCESS |
-
Predefined process flow.
FLOW_CHART_INTERNAL_STORAGE = 105 | |
public static final int FLOW_CHART_INTERNAL_STORAGE |
-
Internal storage flow.
FLOW_CHART_DOCUMENT = 106 | |
public static final int FLOW_CHART_DOCUMENT |
-
Document flow.
FLOW_CHART_MULTIDOCUMENT = 107 | |
public static final int FLOW_CHART_MULTIDOCUMENT |
-
Multi-document flow.
FLOW_CHART_TERMINATOR = 108 | |
public static final int FLOW_CHART_TERMINATOR |
-
Terminator flow.
FLOW_CHART_PREPARATION = 109 | |
public static final int FLOW_CHART_PREPARATION |
-
Preparation flow.
FLOW_CHART_MANUAL_INPUT = 110 | |
public static final int FLOW_CHART_MANUAL_INPUT |
-
Manual input flow.
FLOW_CHART_MANUAL_OPERATION = 111 | |
public static final int FLOW_CHART_MANUAL_OPERATION |
-
Manual operation flow.
FLOW_CHART_CONNECTOR = 112 | |
public static final int FLOW_CHART_CONNECTOR |
-
Connector flow.
FLOW_CHART_PUNCHED_CARD = 113 | |
public static final int FLOW_CHART_PUNCHED_CARD |
-
Punched card flow.
FLOW_CHART_PUNCHED_TAPE = 114 | |
public static final int FLOW_CHART_PUNCHED_TAPE |
-
Punched tape flow.
FLOW_CHART_SUMMING_JUNCTION = 115 | |
public static final int FLOW_CHART_SUMMING_JUNCTION |
-
Summing junction flow.
FLOW_CHART_OR = 116 | |
public static final int FLOW_CHART_OR |
-
Or flow.
FLOW_CHART_COLLATE = 117 | |
public static final int FLOW_CHART_COLLATE |
-
Collate flow.
FLOW_CHART_SORT = 118 | |
public static final int FLOW_CHART_SORT |
-
Sort flow.
FLOW_CHART_EXTRACT = 119 | |
public static final int FLOW_CHART_EXTRACT |
-
Extract flow.
FLOW_CHART_MERGE = 120 | |
public static final int FLOW_CHART_MERGE |
-
Merge flow.
FLOW_CHART_OFFLINE_STORAGE = 121 | |
public static final int FLOW_CHART_OFFLINE_STORAGE |
-
Offline storage flow.
FLOW_CHART_ONLINE_STORAGE = 122 | |
public static final int FLOW_CHART_ONLINE_STORAGE |
-
Online storage flow.
FLOW_CHART_MAGNETIC_TAPE = 123 | |
public static final int FLOW_CHART_MAGNETIC_TAPE |
-
Magnetic tape flow.
FLOW_CHART_MAGNETIC_DISK = 124 | |
public static final int FLOW_CHART_MAGNETIC_DISK |
-
Magnetic disk flow.
FLOW_CHART_MAGNETIC_DRUM = 125 | |
public static final int FLOW_CHART_MAGNETIC_DRUM |
-
Magnetic drum flow.
FLOW_CHART_DISPLAY = 126 | |
public static final int FLOW_CHART_DISPLAY |
-
Display flow.
FLOW_CHART_DELAY = 127 | |
public static final int FLOW_CHART_DELAY |
-
Delay flow.
FLOW_CHART_ALTERNATE_PROCESS = 128 | |
public static final int FLOW_CHART_ALTERNATE_PROCESS |
-
Alternate process flow.
FLOW_CHART_OFFPAGE_CONNECTOR = 129 | |
public static final int FLOW_CHART_OFFPAGE_CONNECTOR |
-
Off-page connector flow.
LEFT_RIGHT_UP_ARROW = 130 | |
public static final int LEFT_RIGHT_UP_ARROW |
-
Left right up arrow.
SUN = 131 | |
public static final int SUN |
-
Sun.
MOON = 132 | |
public static final int MOON |
-
Moon.
BRACKET_PAIR = 133 | |
public static final int BRACKET_PAIR |
-
Bracket pair.
BRACE_PAIR = 134 | |
public static final int BRACE_PAIR |
-
Brace pair.
DOUBLE_WAVE = 135 | |
public static final int DOUBLE_WAVE |
-
Double wave.
ACTION_BUTTON_BLANK = 136 | |
public static final int ACTION_BUTTON_BLANK |
-
Blank button.
ACTION_BUTTON_HOME = 137 | |
public static final int ACTION_BUTTON_HOME |
-
Home button.
ACTION_BUTTON_HELP = 138 | |
public static final int ACTION_BUTTON_HELP |
-
Help button.
ACTION_BUTTON_INFORMATION = 139 | |
public static final int ACTION_BUTTON_INFORMATION |
-
Information button.
ACTION_BUTTON_FORWARD_NEXT = 140 | |
public static final int ACTION_BUTTON_FORWARD_NEXT |
-
Forward or next button.
ACTION_BUTTON_BACK_PREVIOUS = 141 | |
public static final int ACTION_BUTTON_BACK_PREVIOUS |
-
Back or previous button.
ACTION_BUTTON_END = 142 | |
public static final int ACTION_BUTTON_END |
-
End button.
ACTION_BUTTON_BEGINNING = 143 | |
public static final int ACTION_BUTTON_BEGINNING |
-
Beginning button.
ACTION_BUTTON_RETURN = 144 | |
public static final int ACTION_BUTTON_RETURN |
-
Return button.
ACTION_BUTTON_DOCUMENT = 145 | |
public static final int ACTION_BUTTON_DOCUMENT |
-
Document button.
ACTION_BUTTON_SOUND = 146 | |
public static final int ACTION_BUTTON_SOUND |
-
Sound button.
ACTION_BUTTON_MOVIE = 147 | |
public static final int ACTION_BUTTON_MOVIE |
-
Movie button.
SINGLE_CORNER_SNIPPED = 148 | |
public static final int SINGLE_CORNER_SNIPPED |
-
Snip single corner rectangle object.
TOP_CORNERS_SNIPPED = 149 | |
public static final int TOP_CORNERS_SNIPPED |
-
Snip same side corner rectangle.
DIAGONAL_CORNERS_SNIPPED = 150 | |
public static final int DIAGONAL_CORNERS_SNIPPED |
-
Snip diagonal corner rectangle.
TOP_CORNERS_ONE_ROUNDED_ONE_SNIPPED = 151 | |
public static final int TOP_CORNERS_ONE_ROUNDED_ONE_SNIPPED |
-
Snip and round single corner rectangle.
SINGLE_CORNER_ROUNDED = 152 | |
public static final int SINGLE_CORNER_ROUNDED |
-
Rounded single corner rectangle.
TOP_CORNERS_ROUNDED = 153 | |
public static final int TOP_CORNERS_ROUNDED |
-
Rounded same side corner rectangle.
DIAGONAL_CORNERS_ROUNDED = 154 | |
public static final int DIAGONAL_CORNERS_ROUNDED |
-
Rounded diagonal corner rectangle.
HEPTAGON = 155 | |
public static final int HEPTAGON |
-
Heptagon.
CLOUD = 156 | |
public static final int CLOUD |
-
Cloud.
SWOOSH_ARROW = 157 | |
public static final int SWOOSH_ARROW |
-
Swoosh arrow.
TEARDROP = 158 | |
public static final int TEARDROP |
-
Teardrop.
SQUARE_TABS = 159 | |
public static final int SQUARE_TABS |
-
Square tabs.
PLAQUE_TABS = 160 | |
public static final int PLAQUE_TABS |
-
Plaque tabs.
PIE = 161 | |
public static final int PIE |
-
Pie.
WEDGE_PIE = 162 | |
public static final int WEDGE_PIE |
-
Wedge pie.
INVERSE_LINE = 163 | |
public static final int INVERSE_LINE |
-
Inverse line.
MATH_PLUS = 164 | |
public static final int MATH_PLUS |
-
Math plus.
MATH_MINUS = 165 | |
public static final int MATH_MINUS |
-
Math minus.
MATH_MULTIPLY = 166 | |
public static final int MATH_MULTIPLY |
-
Math multiply.
MATH_DIVIDE = 167 | |
public static final int MATH_DIVIDE |
-
Math divide.
MATH_EQUAL = 168 | |
public static final int MATH_EQUAL |
-
Math equal.
MATH_NOT_EQUAL = 169 | |
public static final int MATH_NOT_EQUAL |
-
Math not equal.
NON_ISOSCELES_TRAPEZOID = 170 | |
public static final int NON_ISOSCELES_TRAPEZOID |
-
Non-isosceles trapezoid.
LEFT_RIGHT_CIRCULAR_ARROW = 171 | |
public static final int LEFT_RIGHT_CIRCULAR_ARROW |
-
Left-right circular arrow.
LEFT_RIGHT_RIBBON = 172 | |
public static final int LEFT_RIGHT_RIBBON |
-
Left-right ribbon.
LEFT_CIRCULAR_ARROW = 173 | |
public static final int LEFT_CIRCULAR_ARROW |
-
Left circular arrow.
FRAME = 174 | |
public static final int FRAME |
-
Frame.
HALF_FRAME = 175 | |
public static final int HALF_FRAME |
-
Half frame.
FUNNEL = 176 | |
public static final int FUNNEL |
-
Funnel.
GEAR_6 = 177 | |
public static final int GEAR_6 |
-
Six-tooth gear.
GEAR_9 = 178 | |
public static final int GEAR_9 |
-
Nine-tooth gear.
DECAGON = 179 | |
public static final int DECAGON |
-
Decagon.
DODECAGON = 180 | |
public static final int DODECAGON |
-
Dodecagon.
DIAGONAL_STRIPE = 181 | |
public static final int DIAGONAL_STRIPE |
-
Diagonal stripe.
CORNER = 182 | |
public static final int CORNER |
-
Corner.
CORNER_TABS = 183 | |
public static final int CORNER_TABS |
-
Corner tabs.
CHORD = 184 | |
public static final int CHORD |
-
Chord.
CHART_PLUS = 185 | |
public static final int CHART_PLUS |
-
Chart plus.
CHART_STAR = 186 | |
public static final int CHART_STAR |
-
Chart star.
CHART_X = 187 | |
public static final int CHART_X |
-
Chart X.
See Also:
Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
Aspose.Words Support Forum - our preferred method of support.