|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.xssf.usermodel.charts.XSSFManualLayout
@Beta public final class XSSFManualLayout
Represents a SpreadsheetML manual layout.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
@Internal public org.openxmlformats.schemas.drawingml.x2006.chart.CTManualLayout getCTManualLayout()
public void setWidthRatio(double ratio)
ManualLayout
setWidthRatio
in interface ManualLayout
ratio
- a fraction of the width of the chart.public double getWidthRatio()
ManualLayout
getWidthRatio
in interface ManualLayout
public void setHeightRatio(double ratio)
ManualLayout
setHeightRatio
in interface ManualLayout
ratio
- a fraction of the height of the chart.public double getHeightRatio()
ManualLayout
getHeightRatio
in interface ManualLayout
public LayoutTarget getTarget()
ManualLayout
getTarget
in interface ManualLayout
public void setTarget(LayoutTarget target)
ManualLayout
setTarget
in interface ManualLayout
target
- new layout target.public LayoutMode getXMode()
ManualLayout
getXMode
in interface ManualLayout
public void setXMode(LayoutMode mode)
ManualLayout
setXMode
in interface ManualLayout
mode
- new x-coordinate layout mode.public LayoutMode getYMode()
ManualLayout
getYMode
in interface ManualLayout
public void setYMode(LayoutMode mode)
ManualLayout
setYMode
in interface ManualLayout
mode
- new y-coordinate layout mode.public double getX()
ManualLayout
getX
in interface ManualLayout
public void setX(double x)
ManualLayout
setX
in interface ManualLayout
public double getY()
ManualLayout
getY
in interface ManualLayout
public void setY(double y)
ManualLayout
setY
in interface ManualLayout
public LayoutMode getWidthMode()
ManualLayout
getWidthMode
in interface ManualLayout
public void setWidthMode(LayoutMode mode)
ManualLayout
setWidthMode
in interface ManualLayout
mode
- new width layout mode of this manual layout.public LayoutMode getHeightMode()
ManualLayout
getHeightMode
in interface ManualLayout
public void setHeightMode(LayoutMode mode)
ManualLayout
setHeightMode
in interface ManualLayout
mode
- new height mode of this manual layout.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |