|
Chart FX 7 for Java Server | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.softwarefx.chartfx.server.Margins
public class Margins
Defines the distance between the border of the bounding rectangle and the plot area of the chart.
Defines the distance in pixels between the border of the bounding rectangle and the plot area of the chart. The Chart.getPlotAreaMargin()
property of the Chart
Class
gives access to the margins.
Constructor Summary | |
---|---|
Margins()
|
Method Summary | |
---|---|
int |
getBottom()
Gets the Bottom. |
int |
getLeft()
Gets the Left. |
int |
getRight()
Gets the Right. |
int |
getTop()
Gets the Top. |
void |
reset()
Resets the margings between the bounding rectangle and the Chart.getPlotAreaMargin() of the chart. |
void |
setBottom(int value)
Sets the distance in pixels between the bottom border of the bounding rectangle and the bottom border of the plot area of the chart. |
void |
setLeft(int value)
Sets the distance in pixels between the left border of the bounding rectangle and the left border of the plot area of the chart. |
void |
setRight(int value)
Sets the distance in pixels between the right border of the bounding rectangle and the right border of the plot area of the chart. |
void |
setTop(int value)
Sets the distance in pixels between the top border of the bounding rectangle and the top border of the plot area of the chart. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Margins()
Method Detail |
---|
public int getBottom()
Gets the Bottom. For more detail see setBottom(int)
.
public int getLeft()
Gets the Left. For more detail see setLeft(int)
.
public int getRight()
Gets the Right. For more detail see setRight(int)
.
public int getTop()
Gets the Top. For more detail see setTop(int)
.
public void reset()
Resets the margings between the bounding rectangle and the Chart.getPlotAreaMargin()
of the chart.
The Chart.getPlotAreaMargin()
property of the Chart
Class
is used to obtain the Margins object for a chart.
This Reset method is used to recalculate the best-fit margins by Chart FX. The default margins may be modified using the setTop(int)
, setBottom(int)
, setLeft(int)
and setRight(int)
properties.
Chart.getPlotAreaMargin()
,
setBottom(int)
,
setLeft(int)
,
setRight(int)
,
setTop(int)
,
Chart
public void setBottom(int value)
Sets the distance in pixels between the bottom border of the bounding rectangle and the bottom border of the plot area of the chart.
Below, the bottom margin of the chart is set to 100 pixels:
The Chart.getPlotAreaMargin()
property of the Chart
Class
is used to obtain the Margins object for a chart.
setLeft(int)
,
setRight(int)
,
setTop(int)
,
Chart.getPlotAreaMargin()
,
reset()
,
Chart
public void setLeft(int value)
Sets the distance in pixels between the left border of the bounding rectangle and the left border of the plot area of the chart.
Below, the left margin of the chart is set to 100 pixels:
The Chart.getPlotAreaMargin()
property of the Chart
Class
is used to obtain the Margins object for a chart.
setBottom(int)
,
setRight(int)
,
setTop(int)
,
Chart.getPlotAreaMargin()
,
reset()
,
Chart
public void setRight(int value)
Sets the distance in pixels between the right border of the bounding rectangle and the right border of the plot area of the chart.
Below, the right margin of the chart is set to 100 pixels:
The Chart.getPlotAreaMargin()
property of the Chart
Class
is used to obtain the Margins object for a chart.
setBottom(int)
,
setLeft(int)
,
setTop(int)
,
Chart.getPlotAreaMargin()
,
reset()
,
Chart
public void setTop(int value)
Sets the distance in pixels between the top border of the bounding rectangle and the top border of the plot area of the chart.
Below, the top margin of the chart is set to 100 pixels:
The Chart.getPlotAreaMargin()
property of the Chart
Class
is used to obtain the Margins object for a chart.
setBottom(int)
,
setLeft(int)
,
setRight(int)
,
Chart.getPlotAreaMargin()
,
reset()
,
Chart
|
http://www.softwarefx.com | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |