Home  Products  Purchase  Downloads  Demos  Forums  Blogs  Ticket  Wiki  API  Corporate


com.aspose.cells
Class PlotArea

java.lang.Object
  extended by com.aspose.cells.ChartFrame
      extended by com.aspose.cells.PlotArea

public class PlotArea
extends ChartFrame

Encapsulates the object that represents the chart's plotarea in the worksheet.


Method Summary
 void autoLayout()
          The components in chart, such as, plot area, legend, title etc.
 int getHeight()
          Sets the height of the plot area, in units of 1/4000 of the chart area.
 int getWidth()
          Gets the width of the plot area, in units of 1/4000 of the chart area.
 int getX()
          Gets the x coordinate of the upper left corner in units of 1/4000 of the chart area.
 int getY()
          Gets the y coordinate of the upper left corner in units of 1/4000 of the chart area.
 void setHeight(int height)
          Sets the height of the plot area, in units of 1/4000 of the chart area.
 void setWidth(int width)
          Sets the width of the plot area, in units of 1/4000 of the chart area.
 void setX(int x)
          Sets the x coordinate of the upper left corner in units of 1/4000 of the chart area.
 void setY(int y)
          Sets the y coordinate of the upper left corner in units of 1/4000 of the chart area.
 
Methods inherited from class com.aspose.cells.ChartFrame
equals, getArea, getAreaOrNull, getBorder, getBorderOrNull
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getX

public int getX()
Gets the x coordinate of the upper left corner in units of 1/4000 of the chart area.

Returns:
the x coordinate of the upper left corner.

setX

public void setX(int x)
Sets the x coordinate of the upper left corner in units of 1/4000 of the chart area.

Parameters:
x - the x coordinate of the upper left corner.
Throws:
CellsException - if chart has bean removed.
java.lang.IllegalArgumentException - if x > 4000;

getY

public int getY()
Gets the y coordinate of the upper left corner in units of 1/4000 of the chart area.

Returns:
the y coordinate of the upper left corner.

setY

public void setY(int y)
Sets the y coordinate of the upper left corner in units of 1/4000 of the chart area.

Parameters:
y - the y coordinate of the upper left corner.
Throws:
CellsException - if chart has bean removed.
java.lang.IllegalArgumentException - if y > 4000;

getHeight

public int getHeight()
Sets the height of the plot area, in units of 1/4000 of the chart area.

Returns:
the height of the plot area.

setHeight

public void setHeight(int height)
Sets the height of the plot area, in units of 1/4000 of the chart area.

Parameters:
height - the height of the plot area.
Throws:
CellsException - if chart has bean removed.
java.lang.IllegalArgumentException - if height > 4000;

getWidth

public int getWidth()
Gets the width of the plot area, in units of 1/4000 of the chart area.

Returns:
the width of the plot area.

setWidth

public void setWidth(int width)
Sets the width of the plot area, in units of 1/4000 of the chart area.

Parameters:
width - the width of the plot area.
Throws:
CellsException - if chart has bean removed.
java.lang.IllegalArgumentException - if width > 4000;

autoLayout

public void autoLayout()
The components in chart, such as, plot area, legend, title etc. can influence each other when one of them needs to change its position and/or size. Currently, Aspose.Cells for Java does not support to calculate the new position automatically. Sometimes changing position of legend and title takes no effect when open the generated file by Excel. In such situation user can try this method to ignore the old position data of legend and title.