@Beta public final class XSSFManualLayout extends java.lang.Object implements ManualLayout
| Constructor and Description |
|---|
XSSFManualLayout(org.openxmlformats.schemas.drawingml.x2006.chart.CTLayout ctLayout)
Create a new SpreadsheetML manual layout.
|
XSSFManualLayout(XSSFChart chart)
Create a new SpreadsheetML manual layout for chart.
|
| Modifier and Type | Method and Description |
|---|---|
org.openxmlformats.schemas.drawingml.x2006.chart.CTManualLayout |
getCTManualLayout()
Return the underlying CTManualLayout bean.
|
LayoutMode |
getHeightMode()
Returns current height mode of this
|
double |
getHeightRatio()
Returns current fraction of the height of the chart.
|
LayoutTarget |
getTarget()
Returns current layout target.
|
LayoutMode |
getWidthMode()
Returns current width mode of this manual layout.
|
double |
getWidthRatio()
Returns current fraction of the width of the chart.
|
double |
getX()
Returns the x location of the chart element.
|
LayoutMode |
getXMode()
Returns current x-coordinnate layout mode.
|
double |
getY()
Returns current y location of the chart element.
|
LayoutMode |
getYMode()
Returns current y-coordinate layout mode.
|
void |
setHeightMode(LayoutMode mode)
Specifies how to interpret the Height element for this manual
layout.
|
void |
setHeightRatio(double ratio)
Specifies the height (if Height Mode is Factor) or bottom (if
Height Mode is edge) of the chart element as a fraction of the
height of the chart.
|
void |
setTarget(LayoutTarget target)
Sets the layout target.
|
void |
setWidthMode(LayoutMode mode)
Specifies how to interpret the Width element for this manual
layout.
|
void |
setWidthRatio(double ratio)
Specifies the width (if Width Mode is Factor) or right (if
Width Mode is Edge) of the chart element as a fraction of the
width of the chart.
|
void |
setX(double x)
Specifies the x location (left) of the chart element as a
fraction of the width of the chart.
|
void |
setXMode(LayoutMode mode)
Sets the x-coordinate layout mode.
|
void |
setY(double y)
Specifies the y location (top) of the chart element as a
fraction of the height of the chart.
|
void |
setYMode(LayoutMode mode)
Sets the y-coordinate layout mode.
|
public XSSFManualLayout(org.openxmlformats.schemas.drawingml.x2006.chart.CTLayout ctLayout)
ctLayout - a Spreadsheet ML layout that should be used as base.public XSSFManualLayout(XSSFChart chart)
chart - a chart to create layout for.@Internal public org.openxmlformats.schemas.drawingml.x2006.chart.CTManualLayout getCTManualLayout()
public void setWidthRatio(double ratio)
ManualLayoutsetWidthRatio in interface ManualLayoutratio - a fraction of the width of the chart.public double getWidthRatio()
ManualLayoutgetWidthRatio in interface ManualLayoutpublic void setHeightRatio(double ratio)
ManualLayoutsetHeightRatio in interface ManualLayoutratio - a fraction of the height of the chart.public double getHeightRatio()
ManualLayoutgetHeightRatio in interface ManualLayoutpublic LayoutTarget getTarget()
ManualLayoutgetTarget in interface ManualLayoutpublic void setTarget(LayoutTarget target)
ManualLayoutsetTarget in interface ManualLayouttarget - new layout target.public LayoutMode getXMode()
ManualLayoutgetXMode in interface ManualLayoutpublic void setXMode(LayoutMode mode)
ManualLayoutsetXMode in interface ManualLayoutmode - new x-coordinate layout mode.public LayoutMode getYMode()
ManualLayoutgetYMode in interface ManualLayoutpublic void setYMode(LayoutMode mode)
ManualLayoutsetYMode in interface ManualLayoutmode - new y-coordinate layout mode.public double getX()
ManualLayoutgetX in interface ManualLayoutpublic void setX(double x)
ManualLayoutsetX in interface ManualLayoutpublic double getY()
ManualLayoutgetY in interface ManualLayoutpublic void setY(double y)
ManualLayoutsetY in interface ManualLayoutpublic LayoutMode getWidthMode()
ManualLayoutgetWidthMode in interface ManualLayoutpublic void setWidthMode(LayoutMode mode)
ManualLayoutsetWidthMode in interface ManualLayoutmode - new width layout mode of this manual layout.public LayoutMode getHeightMode()
ManualLayoutgetHeightMode in interface ManualLayoutpublic void setHeightMode(LayoutMode mode)
ManualLayoutsetHeightMode in interface ManualLayoutmode - new height mode of this manual layout.Copyright 2018 The Apache Software Foundation or its licensors, as applicable.