Package org.apache.poi.xwpf.usermodel
Class XWPFChart
- java.lang.Object
-
- org.apache.poi.ooxml.POIXMLDocumentPart
-
- org.apache.poi.xddf.usermodel.chart.XDDFChart
-
- org.apache.poi.xwpf.usermodel.XWPFChart
-
- All Implemented Interfaces:
org.apache.poi.xddf.usermodel.text.TextContainer
@Beta public class XWPFChart extends org.apache.poi.xddf.usermodel.chart.XDDFChart
Represents a Chart in a .docx file
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.poi.ooxml.POIXMLDocumentPart
POIXMLDocumentPart.RelationPart
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_HEIGHTdefault height of chart in emustatic intDEFAULT_WIDTHdefault width of chart in emu
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)longgetChartBottomMargin(long margin)get margin from BottomlonggetChartHeight()get chart heightlonggetChartLeftMargin(long margin)get margin from leftlonggetChartRightMargin(long margin)get margin from RightlonggetChartTopMargin(long margin)get margin from ToplonggetChartWidth()get chart widthjava.lang.LonggetChecksum()inthashCode()voidsetChartBottomMargin(long margin)set margin from bottomvoidsetChartBoundingBox(long width, long height)set chart height and widthvoidsetChartHeight(long height)set chart heightvoidsetChartLeftMargin(long margin)set margin from leftvoidsetChartMargin(long top, long right, long bottom, long left)set chart marginvoidsetChartRightMargin(long margin)set margin from RightvoidsetChartTopMargin(long margin)set margin from topvoidsetChartWidth(long width)set chart width-
Methods inherited from class org.apache.poi.xddf.usermodel.chart.XDDFChart
clear, clearChartSeries, createCategoryAxis, createData, createDateAxis, createRelationshipInChart, createSeriesAxis, createValueAxis, deleteLegend, deleteShapeProperties, displayBlanksAs, findDefinedParagraphProperty, findDefinedRunProperty, formatRange, getAxes, getChartSeries, getCTChart, getCTChartSpace, getFormattedTitle, getOrAddLegend, getOrAddManualLayout, getOrAddShapeProperties, getOrAddView3D, getTitle, getTitleOverlay, getWorkbook, importContent, isPlotOnlyVisibleCells, plot, saveWorkbook, setAutoTitleDeleted, setBackWall, setChartIndex, setExternalId, setFloor, setPlotOnlyVisibleCells, setSheetTitle, setSideWall, setTitleOverlay, setTitleText, setValueRange, setWorkbook
-
Methods inherited from class org.apache.poi.ooxml.POIXMLDocumentPart
_invokeOnDocumentRead, addRelation, createRelationship, createRelationship, createRelationship, getPackagePart, getParent, getRelationById, getRelationId, getRelationPartById, getRelationParts, getRelations, isCommited, setCommited, toString
-
-
-
-
Field Detail
-
DEFAULT_WIDTH
public static final int DEFAULT_WIDTH
default width of chart in emu- See Also:
- Constant Field Values
-
DEFAULT_HEIGHT
public static final int DEFAULT_HEIGHT
default height of chart in emu- See Also:
- Constant Field Values
-
-
Method Detail
-
getChecksum
public java.lang.Long getChecksum()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
setChartHeight
public void setChartHeight(long height)
set chart height- Parameters:
height- height of chart- Since:
- POI 4.0.0
-
setChartWidth
public void setChartWidth(long width)
set chart width- Parameters:
width- width of chart- Since:
- POI 4.0.0
-
getChartHeight
public long getChartHeight()
get chart height- Since:
- POI 4.0.0
-
getChartWidth
public long getChartWidth()
get chart width- Since:
- POI 4.0.0
-
setChartBoundingBox
public void setChartBoundingBox(long width, long height)set chart height and width- Parameters:
width- width of chartheight- height of chart- Since:
- POI 4.0.0
-
setChartTopMargin
public void setChartTopMargin(long margin)
set margin from top- Parameters:
margin- margin from top- Since:
- POI 4.0.0
-
getChartTopMargin
public long getChartTopMargin(long margin)
get margin from Top- Parameters:
margin-- Since:
- POI 4.0.0
-
setChartBottomMargin
public void setChartBottomMargin(long margin)
set margin from bottom- Parameters:
margin- margin from Bottom- Since:
- POI 4.0.0
-
getChartBottomMargin
public long getChartBottomMargin(long margin)
get margin from Bottom- Parameters:
margin-- Since:
- POI 4.0.0
-
setChartLeftMargin
public void setChartLeftMargin(long margin)
set margin from left- Parameters:
margin- margin from left- Since:
- POI 4.0.0
-
getChartLeftMargin
public long getChartLeftMargin(long margin)
get margin from left- Parameters:
margin-- Since:
- POI 4.0.0
-
setChartRightMargin
public void setChartRightMargin(long margin)
set margin from Right- Parameters:
margin- from right- Since:
- POI 4.0.0
-
getChartRightMargin
public long getChartRightMargin(long margin)
get margin from Right- Parameters:
margin-- Since:
- POI 4.0.0
-
setChartMargin
public void setChartMargin(long top, long right, long bottom, long left)set chart margin- Parameters:
top- margin from topright- margin from rightbottom- margin from bottomleft- margin from left- Since:
- POI 4.0.0
-
-