org.apache.poi.xssf.usermodel.charts
Class XSSFManualLayout

java.lang.Object
  extended by org.apache.poi.xssf.usermodel.charts.XSSFManualLayout
All Implemented Interfaces:
ManualLayout

@Beta
public final class XSSFManualLayout
extends java.lang.Object
implements ManualLayout

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()
           
 double getHeightRatio()
           
 LayoutTarget getTarget()
           
 LayoutMode getWidthMode()
           
 double getWidthRatio()
           
 double getX()
           
 LayoutMode getXMode()
           
 double getY()
           
 LayoutMode getYMode()
           
 void setHeightMode(LayoutMode mode)
           
 void setHeightRatio(double ratio)
           
 void setTarget(LayoutTarget target)
           
 void setWidthMode(LayoutMode mode)
           
 void setWidthRatio(double ratio)
           
 void setX(double x)
           
 void setXMode(LayoutMode mode)
           
 void setY(double y)
           
 void setYMode(LayoutMode mode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XSSFManualLayout

public XSSFManualLayout(org.openxmlformats.schemas.drawingml.x2006.chart.CTLayout ctLayout)
Create a new SpreadsheetML manual layout.

Parameters:
ctLayout - a Spreadsheet ML layout that should be used as base.

XSSFManualLayout

public XSSFManualLayout(XSSFChart chart)
Create a new SpreadsheetML manual layout for chart.

Parameters:
chart - a chart to create layout for.
Method Detail

getCTManualLayout

@Internal
public org.openxmlformats.schemas.drawingml.x2006.chart.CTManualLayout getCTManualLayout()
Return the underlying CTManualLayout bean.

Returns:
the underlying CTManualLayout bean.

setWidthRatio

public void setWidthRatio(double ratio)
Specified by:
setWidthRatio in interface ManualLayout

getWidthRatio

public double getWidthRatio()
Specified by:
getWidthRatio in interface ManualLayout

setHeightRatio

public void setHeightRatio(double ratio)
Specified by:
setHeightRatio in interface ManualLayout

getHeightRatio

public double getHeightRatio()
Specified by:
getHeightRatio in interface ManualLayout

getTarget

public LayoutTarget getTarget()
Specified by:
getTarget in interface ManualLayout

setTarget

public void setTarget(LayoutTarget target)
Specified by:
setTarget in interface ManualLayout

getXMode

public LayoutMode getXMode()
Specified by:
getXMode in interface ManualLayout

setXMode

public void setXMode(LayoutMode mode)
Specified by:
setXMode in interface ManualLayout

getYMode

public LayoutMode getYMode()
Specified by:
getYMode in interface ManualLayout

setYMode

public void setYMode(LayoutMode mode)
Specified by:
setYMode in interface ManualLayout

getX

public double getX()
Specified by:
getX in interface ManualLayout

setX

public void setX(double x)
Specified by:
setX in interface ManualLayout

getY

public double getY()
Specified by:
getY in interface ManualLayout

setY

public void setY(double y)
Specified by:
setY in interface ManualLayout

getWidthMode

public LayoutMode getWidthMode()
Specified by:
getWidthMode in interface ManualLayout

setWidthMode

public void setWidthMode(LayoutMode mode)
Specified by:
setWidthMode in interface ManualLayout

getHeightMode

public LayoutMode getHeightMode()
Specified by:
getHeightMode in interface ManualLayout

setHeightMode

public void setHeightMode(LayoutMode mode)
Specified by:
setHeightMode in interface ManualLayout