@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)
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.Copyright © 2005-2010 Potix Corporation. All Rights Reserved.