public class ChartShapeType
extends java.lang.Object
Examples:
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");
| Modifier and Type | Field and Description |
|---|---|
static int |
ACCENT_BORDER_CALLOUT_1
Accent callout with border 1.
|
static int |
ACCENT_BORDER_CALLOUT_2
Accent callout with border 2.
|
static int |
ACCENT_BORDER_CALLOUT_3
Accent callout with border 3.
|
static int |
ACCENT_CALLOUT_1
Accent callout 1.
|
static int |
ACCENT_CALLOUT_2
Accent callout 2.
|
static int |
ACCENT_CALLOUT_3
Accent callout 3.
|
static int |
ACTION_BUTTON_BACK_PREVIOUS
Back or previous button.
|
static int |
ACTION_BUTTON_BEGINNING
Beginning button.
|
static int |
ACTION_BUTTON_BLANK
Blank button.
|
static int |
ACTION_BUTTON_DOCUMENT
Document button.
|
static int |
ACTION_BUTTON_END
End button.
|
static int |
ACTION_BUTTON_FORWARD_NEXT
Forward or next button.
|
static int |
ACTION_BUTTON_HELP
Help button.
|
static int |
ACTION_BUTTON_HOME
Home button.
|
static int |
ACTION_BUTTON_INFORMATION
Information button.
|
static int |
ACTION_BUTTON_MOVIE
Movie button.
|
static int |
ACTION_BUTTON_RETURN
Return button.
|
static int |
ACTION_BUTTON_SOUND
Sound button.
|
static int |
ARC
Arc.
|
static int |
ARROW
Arrow.
|
static int |
BENT_ARROW
Bent arrow.
|
static int |
BENT_CONNECTOR_2
Bent connector 2.
|
static int |
BENT_CONNECTOR_3
Bent connector 3.
|
static int |
BENT_CONNECTOR_4
Bent connector 4.
|
static int |
BENT_CONNECTOR_5
Bent connector 5.
|
static int |
BENT_UP_ARROW
Bent up arrow.
|
static int |
BEVEL
Bevel.
|
static int |
BLOCK_ARC
Block arc.
|
static int |
BORDER_CALLOUT_1
Callout with border 1.
|
static int |
BORDER_CALLOUT_2
Callout with border 2.
|
static int |
BORDER_CALLOUT_3
Callout with border 3.
|
static int |
BRACE_PAIR
Brace pair.
|
static int |
BRACKET_PAIR
Bracket pair.
|
static int |
CALLOUT_1
Callout 1.
|
static int |
CALLOUT_2
Callout 2.
|
static int |
CALLOUT_3
Callout 3.
|
static int |
CAN
Can.
|
static int |
CHART_PLUS
Chart plus.
|
static int |
CHART_STAR
Chart star.
|
static int |
CHART_X
Chart X.
|
static int |
CHEVRON
Chevron.
|
static int |
CHORD
Chord.
|
static int |
CIRCULAR_ARROW
Circular arrow.
|
static int |
CLOUD
Cloud.
|
static int |
CLOUD_CALLOUT
Callout cloud.
|
static int |
CORNER
Corner.
|
static int |
CORNER_TABS
Corner tabs.
|
static int |
CUBE
Cube.
|
static int |
CURVED_CONNECTOR_2
Curved connector 2.
|
static int |
CURVED_CONNECTOR_3
Curved connector 3.
|
static int |
CURVED_CONNECTOR_4
Curved connector 4.
|
static int |
CURVED_CONNECTOR_5
Curved connector 5.
|
static int |
CURVED_DOWN_ARROW
Curved down arrow.
|
static int |
CURVED_LEFT_ARROW
Curved left arrow.
|
static int |
CURVED_RIGHT_ARROW
Curved right arrow.
|
static int |
CURVED_UP_ARROW
Curved up arrow.
|
static int |
DECAGON
Decagon.
|
static int |
DEFAULT
Indicates that a shape is not defined for the chart element.
|
static int |
DIAGONAL_CORNERS_ROUNDED
Rounded diagonal corner rectangle.
|
static int |
DIAGONAL_CORNERS_SNIPPED
Snip diagonal corner rectangle.
|
static int |
DIAGONAL_STRIPE
Diagonal stripe.
|
static int |
DIAMOND
Diamond.
|
static int |
DODECAGON
Dodecagon.
|
static int |
DONUT
Donut.
|
static int |
DOUBLE_WAVE
Double wave.
|
static int |
DOWN_ARROW
Down arrow.
|
static int |
DOWN_ARROW_CALLOUT
Callout down arrow.
|
static int |
ELLIPSE
Ellipse.
|
static int |
ELLIPSE_RIBBON
Ellipse ribbon.
|
static int |
ELLIPSE_RIBBON_2
Ellipse ribbon 2.
|
static int |
FLOW_CHART_ALTERNATE_PROCESS
Alternate process flow.
|
static int |
FLOW_CHART_COLLATE
Collate flow.
|
static int |
FLOW_CHART_CONNECTOR
Connector flow.
|
static int |
FLOW_CHART_DECISION
Decision flow.
|
static int |
FLOW_CHART_DELAY
Delay flow.
|
static int |
FLOW_CHART_DISPLAY
Display flow.
|
static int |
FLOW_CHART_DOCUMENT
Document flow.
|
static int |
FLOW_CHART_EXTRACT
Extract flow.
|
static int |
FLOW_CHART_INPUT_OUTPUT
Input output flow.
|
static int |
FLOW_CHART_INTERNAL_STORAGE
Internal storage flow.
|
static int |
FLOW_CHART_MAGNETIC_DISK
Magnetic disk flow.
|
static int |
FLOW_CHART_MAGNETIC_DRUM
Magnetic drum flow.
|
static int |
FLOW_CHART_MAGNETIC_TAPE
Magnetic tape flow.
|
static int |
FLOW_CHART_MANUAL_INPUT
Manual input flow.
|
static int |
FLOW_CHART_MANUAL_OPERATION
Manual operation flow.
|
static int |
FLOW_CHART_MERGE
Merge flow.
|
static int |
FLOW_CHART_MULTIDOCUMENT
Multi-document flow.
|
static int |
FLOW_CHART_OFFLINE_STORAGE
Offline storage flow.
|
static int |
FLOW_CHART_OFFPAGE_CONNECTOR
Off-page connector flow.
|
static int |
FLOW_CHART_ONLINE_STORAGE
Online storage flow.
|
static int |
FLOW_CHART_OR
Or flow.
|
static int |
FLOW_CHART_PREDEFINED_PROCESS
Predefined process flow.
|
static int |
FLOW_CHART_PREPARATION
Preparation flow.
|
static int |
FLOW_CHART_PROCESS
Process flow.
|
static int |
FLOW_CHART_PUNCHED_CARD
Punched card flow.
|
static int |
FLOW_CHART_PUNCHED_TAPE
Punched tape flow.
|
static int |
FLOW_CHART_SORT
Sort flow.
|
static int |
FLOW_CHART_SUMMING_JUNCTION
Summing junction flow.
|
static int |
FLOW_CHART_TERMINATOR
Terminator flow.
|
static int |
FOLDED_CORNER
Folded corner.
|
static int |
FRAME
Frame.
|
static int |
FUNNEL
Funnel.
|
static int |
GEAR_6
Six-tooth gear.
|
static int |
GEAR_9
Nine-tooth gear.
|
static int |
HALF_FRAME
Half frame.
|
static int |
HEART
Heart.
|
static int |
HEPTAGON
Heptagon.
|
static int |
HEXAGON
Hexagon.
|
static int |
HOME_PLATE
Home plate.
|
static int |
HORIZONTAL_SCROLL
Horizontal scroll.
|
static int |
INVERSE_LINE
Inverse line.
|
static int |
IRREGULAR_SEAL_1
Irregular seal 1.
|
static int |
IRREGULAR_SEAL_2
Irregular seal 2.
|
static int |
LEFT_ARROW
Left arrow.
|
static int |
LEFT_ARROW_CALLOUT
Callout left arrow.
|
static int |
LEFT_BRACE
Left brace.
|
static int |
LEFT_BRACKET
Left bracket.
|
static int |
LEFT_CIRCULAR_ARROW
Left circular arrow.
|
static int |
LEFT_RIGHT_ARROW
Left and right arrow.
|
static int |
LEFT_RIGHT_ARROW_CALLOUT
Callout left and right arrow.
|
static int |
LEFT_RIGHT_CIRCULAR_ARROW
Left-right circular arrow.
|
static int |
LEFT_RIGHT_RIBBON
Left-right ribbon.
|
static int |
LEFT_RIGHT_UP_ARROW
Left right up arrow.
|
static int |
LEFT_UP_ARROW
Left up arrow.
|
static int |
length |
static int |
LIGHTNING_BOLT
Lightning bolt.
|
static int |
LINE
Line.
|
static int |
MATH_DIVIDE
Math divide.
|
static int |
MATH_EQUAL
Math equal.
|
static int |
MATH_MINUS
Math minus.
|
static int |
MATH_MULTIPLY
Math multiply.
|
static int |
MATH_NOT_EQUAL
Math not equal.
|
static int |
MATH_PLUS
Math plus.
|
static int |
MOON
Moon.
|
static int |
NO_SMOKING
No smoking.
|
static int |
NON_ISOSCELES_TRAPEZOID
Non-isosceles trapezoid.
|
static int |
NOTCHED_RIGHT_ARROW
Notched right arrow.
|
static int |
OCTAGON
Octagon.
|
static int |
PARALLELOGRAM
Parallelogram.
|
static int |
PENTAGON
Pentagon.
|
static int |
PIE
Pie.
|
static int |
PLAQUE
Plaque.
|
static int |
PLAQUE_TABS
Plaque tabs.
|
static int |
PLUS
Plus.
|
static int |
QUAD_ARROW
Quad arrow.
|
static int |
QUAD_ARROW_CALLOUT
Callout quad arrow.
|
static int |
RECTANGLE
Rectangle.
|
static int |
RIBBON
Ribbon.
|
static int |
RIBBON_2
Ribbon 2.
|
static int |
RIGHT_ARROW_CALLOUT
Callout right arrow.
|
static int |
RIGHT_BRACE
Right brace.
|
static int |
RIGHT_BRACKET
Right bracket.
|
static int |
RIGHT_TRIANGLE
Right triangle.
|
static int |
ROUND_RECTANGLE
Rounded rectangle.
|
static int |
SEAL_10
Ten pointed star.
|
static int |
SEAL_12
Twelve pointed star.
|
static int |
SEAL_16
Sixteen pointed star.
|
static int |
SEAL_24
Twenty-four pointed star.
|
static int |
SEAL_32
Thirty-two pointed star.
|
static int |
SEAL_4
Four pointed star.
|
static int |
SEAL_6
Six pointed star.
|
static int |
SEAL_7
Seven pointed star.
|
static int |
SEAL_8
Eight pointed star.
|
static int |
SINGLE_CORNER_ROUNDED
Rounded single corner rectangle.
|
static int |
SINGLE_CORNER_SNIPPED
Snip single corner rectangle object.
|
static int |
SMILEY_FACE
Smiley face.
|
static int |
SQUARE_TABS
Square tabs.
|
static int |
STAR
Star.
|
static int |
STRAIGHT_CONNECTOR_1
Straight connector 1.
|
static int |
STRIPED_RIGHT_ARROW
Striped right arrow.
|
static int |
SUN
Sun.
|
static int |
SWOOSH_ARROW
Swoosh arrow.
|
static int |
TEARDROP
Teardrop.
|
static int |
TOP_CORNERS_ONE_ROUNDED_ONE_SNIPPED
Snip and round single corner rectangle.
|
static int |
TOP_CORNERS_ROUNDED
Rounded same side corner rectangle.
|
static int |
TOP_CORNERS_SNIPPED
Snip same side corner rectangle.
|
static int |
TRAPEZOID
Trapezoid.
|
static int |
TRIANGLE
Triangle.
|
static int |
UP_ARROW
Up arrow.
|
static int |
UP_ARROW_CALLOUT
Callout up arrow.
|
static int |
UP_DOWN_ARROW
Up and down arrow.
|
static int |
UP_DOWN_ARROW_CALLOUT
Callout up and down arrow.
|
static int |
UTURN_ARROW
U-turn arrow.
|
static int |
VERTICAL_SCROLL
Vertical scroll.
|
static int |
WAVE
Wave.
|
static int |
WEDGE_ELLIPSE_CALLOUT
Callout wedge ellipse.
|
static int |
WEDGE_PIE
Wedge pie.
|
static int |
WEDGE_R_RECT_CALLOUT
Callout wedge round rectangle.
|
static int |
WEDGE_RECT_CALLOUT
Callout wedge rectangle.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
fromName(java.lang.String chartShapeTypeName) |
static java.lang.String |
getName(int chartShapeType) |
static int[] |
getValues() |
static java.lang.String |
toString(int chartShapeType) |
public static int DEFAULT
public static int RECTANGLE
public static int ROUND_RECTANGLE
public static int ELLIPSE
public static int DIAMOND
public static int TRIANGLE
public static int RIGHT_TRIANGLE
public static int PARALLELOGRAM
public static int TRAPEZOID
public static int HEXAGON
public static int OCTAGON
public static int PLUS
public static int STAR
public static int ARROW
public static int HOME_PLATE
public static int CUBE
public static int ARC
public static int LINE
public static int PLAQUE
public static int CAN
public static int DONUT
public static int STRAIGHT_CONNECTOR_1
public static int BENT_CONNECTOR_2
public static int BENT_CONNECTOR_3
public static int BENT_CONNECTOR_4
public static int BENT_CONNECTOR_5
public static int CURVED_CONNECTOR_2
public static int CURVED_CONNECTOR_3
public static int CURVED_CONNECTOR_4
public static int CURVED_CONNECTOR_5
public static int CALLOUT_1
public static int CALLOUT_2
public static int CALLOUT_3
public static int ACCENT_CALLOUT_1
public static int ACCENT_CALLOUT_2
public static int ACCENT_CALLOUT_3
public static int BORDER_CALLOUT_1
public static int BORDER_CALLOUT_2
public static int BORDER_CALLOUT_3
public static int ACCENT_BORDER_CALLOUT_1
public static int ACCENT_BORDER_CALLOUT_2
public static int ACCENT_BORDER_CALLOUT_3
public static int RIBBON
public static int RIBBON_2
public static int CHEVRON
public static int PENTAGON
public static int NO_SMOKING
public static int SEAL_4
public static int SEAL_6
public static int SEAL_7
public static int SEAL_8
public static int SEAL_10
public static int SEAL_12
public static int SEAL_16
public static int SEAL_24
public static int SEAL_32
public static int WEDGE_RECT_CALLOUT
public static int WEDGE_R_RECT_CALLOUT
public static int WEDGE_ELLIPSE_CALLOUT
public static int WAVE
public static int FOLDED_CORNER
public static int LEFT_ARROW
public static int DOWN_ARROW
public static int UP_ARROW
public static int LEFT_RIGHT_ARROW
public static int UP_DOWN_ARROW
public static int IRREGULAR_SEAL_1
public static int IRREGULAR_SEAL_2
public static int LIGHTNING_BOLT
public static int HEART
public static int QUAD_ARROW
public static int LEFT_ARROW_CALLOUT
public static int RIGHT_ARROW_CALLOUT
public static int UP_ARROW_CALLOUT
public static int DOWN_ARROW_CALLOUT
public static int LEFT_RIGHT_ARROW_CALLOUT
public static int UP_DOWN_ARROW_CALLOUT
public static int QUAD_ARROW_CALLOUT
public static int BEVEL
public static int LEFT_BRACKET
public static int RIGHT_BRACKET
public static int LEFT_BRACE
public static int RIGHT_BRACE
public static int LEFT_UP_ARROW
public static int BENT_UP_ARROW
public static int BENT_ARROW
public static int STRIPED_RIGHT_ARROW
public static int NOTCHED_RIGHT_ARROW
public static int BLOCK_ARC
public static int SMILEY_FACE
public static int VERTICAL_SCROLL
public static int HORIZONTAL_SCROLL
public static int CIRCULAR_ARROW
public static int UTURN_ARROW
public static int CURVED_RIGHT_ARROW
public static int CURVED_LEFT_ARROW
public static int CURVED_UP_ARROW
public static int CURVED_DOWN_ARROW
public static int CLOUD_CALLOUT
public static int ELLIPSE_RIBBON
public static int ELLIPSE_RIBBON_2
public static int FLOW_CHART_PROCESS
public static int FLOW_CHART_DECISION
public static int FLOW_CHART_INPUT_OUTPUT
public static int FLOW_CHART_PREDEFINED_PROCESS
public static int FLOW_CHART_INTERNAL_STORAGE
public static int FLOW_CHART_DOCUMENT
public static int FLOW_CHART_MULTIDOCUMENT
public static int FLOW_CHART_TERMINATOR
public static int FLOW_CHART_PREPARATION
public static int FLOW_CHART_MANUAL_INPUT
public static int FLOW_CHART_MANUAL_OPERATION
public static int FLOW_CHART_CONNECTOR
public static int FLOW_CHART_PUNCHED_CARD
public static int FLOW_CHART_PUNCHED_TAPE
public static int FLOW_CHART_SUMMING_JUNCTION
public static int FLOW_CHART_OR
public static int FLOW_CHART_COLLATE
public static int FLOW_CHART_SORT
public static int FLOW_CHART_EXTRACT
public static int FLOW_CHART_MERGE
public static int FLOW_CHART_OFFLINE_STORAGE
public static int FLOW_CHART_ONLINE_STORAGE
public static int FLOW_CHART_MAGNETIC_TAPE
public static int FLOW_CHART_MAGNETIC_DISK
public static int FLOW_CHART_MAGNETIC_DRUM
public static int FLOW_CHART_DISPLAY
public static int FLOW_CHART_DELAY
public static int FLOW_CHART_ALTERNATE_PROCESS
public static int FLOW_CHART_OFFPAGE_CONNECTOR
public static int LEFT_RIGHT_UP_ARROW
public static int SUN
public static int MOON
public static int BRACKET_PAIR
public static int BRACE_PAIR
public static int DOUBLE_WAVE
public static int ACTION_BUTTON_BLANK
public static int ACTION_BUTTON_HOME
public static int ACTION_BUTTON_HELP
public static int ACTION_BUTTON_INFORMATION
public static int ACTION_BUTTON_FORWARD_NEXT
public static int ACTION_BUTTON_BACK_PREVIOUS
public static int ACTION_BUTTON_END
public static int ACTION_BUTTON_BEGINNING
public static int ACTION_BUTTON_RETURN
public static int ACTION_BUTTON_DOCUMENT
public static int ACTION_BUTTON_SOUND
public static int ACTION_BUTTON_MOVIE
public static int SINGLE_CORNER_SNIPPED
public static int TOP_CORNERS_SNIPPED
public static int DIAGONAL_CORNERS_SNIPPED
public static int TOP_CORNERS_ONE_ROUNDED_ONE_SNIPPED
public static int SINGLE_CORNER_ROUNDED
public static int TOP_CORNERS_ROUNDED
public static int DIAGONAL_CORNERS_ROUNDED
public static int HEPTAGON
public static int CLOUD
public static int SWOOSH_ARROW
public static int TEARDROP
public static int SQUARE_TABS
public static int PLAQUE_TABS
public static int PIE
public static int WEDGE_PIE
public static int INVERSE_LINE
public static int MATH_PLUS
public static int MATH_MINUS
public static int MATH_MULTIPLY
public static int MATH_DIVIDE
public static int MATH_EQUAL
public static int MATH_NOT_EQUAL
public static int NON_ISOSCELES_TRAPEZOID
public static int LEFT_RIGHT_CIRCULAR_ARROW
public static int LEFT_RIGHT_RIBBON
public static int LEFT_CIRCULAR_ARROW
public static int FRAME
public static int HALF_FRAME
public static int FUNNEL
public static int GEAR_6
public static int GEAR_9
public static int DECAGON
public static int DODECAGON
public static int DIAGONAL_STRIPE
public static int CORNER
public static int CORNER_TABS
public static int CHORD
public static int CHART_PLUS
public static int CHART_STAR
public static int CHART_X
public static int length