Class XSSFManualLayout
java.lang.Object
org.apache.poi.xssf.usermodel.charts.XSSFManualLayout
- All Implemented Interfaces:
ManualLayout
@Deprecated
@Removal(version="4.2")
public final class XSSFManualLayout
extends Object
implements ManualLayout
Deprecated.
Represents a SpreadsheetML manual layout.
-
Constructor Summary
ConstructorsConstructorDescriptionXSSFManualLayout(XSSFChart chart) Deprecated.Create a new SpreadsheetML manual layout for chart.XSSFManualLayout(org.openxmlformats.schemas.drawingml.x2006.chart.CTLayout ctLayout) Deprecated.Create a new SpreadsheetML manual layout. -
Method Summary
Modifier and TypeMethodDescriptionorg.openxmlformats.schemas.drawingml.x2006.chart.CTManualLayoutDeprecated.Return the underlying CTManualLayout bean.Deprecated.Returns current height mode of thisdoubleDeprecated.Returns current fraction of the height of the chart.Deprecated.Returns current layout target.Deprecated.Returns current width mode of this manual layout.doubleDeprecated.Returns current fraction of the width of the chart.doublegetX()Deprecated.Returns the x location of the chart element.getXMode()Deprecated.Returns current x-coordinnate layout mode.doublegetY()Deprecated.Returns current y location of the chart element.getYMode()Deprecated.Returns current y-coordinate layout mode.voidsetHeightMode(LayoutMode mode) Deprecated.Specifies how to interpret the Height element for this manual layout.voidsetHeightRatio(double ratio) Deprecated.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.voidsetTarget(LayoutTarget target) Deprecated.Sets the layout target.voidsetWidthMode(LayoutMode mode) Deprecated.Specifies how to interpret the Width element for this manual layout.voidsetWidthRatio(double ratio) Deprecated.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.voidsetX(double x) Deprecated.Specifies the x location (left) of the chart element as a fraction of the width of the chart.voidsetXMode(LayoutMode mode) Deprecated.Sets the x-coordinate layout mode.voidsetY(double y) Deprecated.Specifies the y location (top) of the chart element as a fraction of the height of the chart.voidsetYMode(LayoutMode mode) Deprecated.Sets the y-coordinate layout mode.
-
Constructor Details
-
XSSFManualLayout
public XSSFManualLayout(org.openxmlformats.schemas.drawingml.x2006.chart.CTLayout ctLayout) Deprecated.Create a new SpreadsheetML manual layout.- Parameters:
ctLayout- a Spreadsheet ML layout that should be used as base.
-
XSSFManualLayout
Deprecated.Create a new SpreadsheetML manual layout for chart.- Parameters:
chart- a chart to create layout for.
-
-
Method Details
-
getCTManualLayout
@Internal public org.openxmlformats.schemas.drawingml.x2006.chart.CTManualLayout getCTManualLayout()Deprecated.Return the underlying CTManualLayout bean.- Returns:
- the underlying CTManualLayout bean.
-
setWidthRatio
public void setWidthRatio(double ratio) Deprecated.Description copied from interface:ManualLayoutSpecifies 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.- Specified by:
setWidthRatioin interfaceManualLayout- Parameters:
ratio- a fraction of the width of the chart.
-
getWidthRatio
public double getWidthRatio()Deprecated.Description copied from interface:ManualLayoutReturns current fraction of the width of the chart.- Specified by:
getWidthRatioin interfaceManualLayout- Returns:
- fraction of the width of the chart or 0.0 if not set.
-
setHeightRatio
public void setHeightRatio(double ratio) Deprecated.Description copied from interface:ManualLayoutSpecifies 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.- Specified by:
setHeightRatioin interfaceManualLayout- Parameters:
ratio- a fraction of the height of the chart.
-
getHeightRatio
public double getHeightRatio()Deprecated.Description copied from interface:ManualLayoutReturns current fraction of the height of the chart.- Specified by:
getHeightRatioin interfaceManualLayout- Returns:
- fraction of the height of the chart or 0.0 if not set.
-
getTarget
Deprecated.Description copied from interface:ManualLayoutReturns current layout target.- Specified by:
getTargetin interfaceManualLayout- Returns:
- current layout target
-
setTarget
Deprecated.Description copied from interface:ManualLayoutSets the layout target.- Specified by:
setTargetin interfaceManualLayout- Parameters:
target- new layout target.
-
getXMode
Deprecated.Description copied from interface:ManualLayoutReturns current x-coordinnate layout mode.- Specified by:
getXModein interfaceManualLayout- Returns:
- current x-coordinate layout mode.
-
setXMode
Deprecated.Description copied from interface:ManualLayoutSets the x-coordinate layout mode.- Specified by:
setXModein interfaceManualLayout- Parameters:
mode- new x-coordinate layout mode.
-
getYMode
Deprecated.Description copied from interface:ManualLayoutReturns current y-coordinate layout mode.- Specified by:
getYModein interfaceManualLayout- Returns:
- current y-coordinate layout mode.
-
setYMode
Deprecated.Description copied from interface:ManualLayoutSets the y-coordinate layout mode.- Specified by:
setYModein interfaceManualLayout- Parameters:
mode- new y-coordinate layout mode.
-
getX
public double getX()Deprecated.Description copied from interface:ManualLayoutReturns the x location of the chart element.- Specified by:
getXin interfaceManualLayout- Returns:
- the x location (left) of the chart element or 0.0 if not set.
-
setX
public void setX(double x) Deprecated.Description copied from interface:ManualLayoutSpecifies the x location (left) of the chart element as a fraction of the width of the chart. If Left Mode is Factor, then the position is relative to the default position for the chart element.- Specified by:
setXin interfaceManualLayout
-
getY
public double getY()Deprecated.Description copied from interface:ManualLayoutReturns current y location of the chart element.- Specified by:
getYin interfaceManualLayout- Returns:
- the y location (top) of the chart element or 0.0 if not set.
-
setY
public void setY(double y) Deprecated.Description copied from interface:ManualLayoutSpecifies the y location (top) of the chart element as a fraction of the height of the chart. If Top Mode is Factor, then the position is relative to the default position for the chart element.- Specified by:
setYin interfaceManualLayout
-
getWidthMode
Deprecated.Description copied from interface:ManualLayoutReturns current width mode of this manual layout.- Specified by:
getWidthModein interfaceManualLayout- Returns:
- width mode of this manual layout.
-
setWidthMode
Deprecated.Description copied from interface:ManualLayoutSpecifies how to interpret the Width element for this manual layout.- Specified by:
setWidthModein interfaceManualLayout- Parameters:
mode- new width layout mode of this manual layout.
-
getHeightMode
Deprecated.Description copied from interface:ManualLayoutReturns current height mode of this- Specified by:
getHeightModein interfaceManualLayout- Returns:
- height mode of this manual layout.
-
setHeightMode
Deprecated.Description copied from interface:ManualLayoutSpecifies how to interpret the Height element for this manual layout.- Specified by:
setHeightModein interfaceManualLayout- Parameters:
mode- new height mode of this manual layout.
-
instead