Chart FX 7 for Java Server

com.softwarefx.chartfx.server
Class Margins

java.lang.Object
  extended by com.softwarefx.chartfx.server.Margins

public class Margins
extends Object

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

Margins

public Margins()
Method Detail

getBottom

public int getBottom()

Gets the Bottom. For more detail see setBottom(int).


getLeft

public int getLeft()

Gets the Left. For more detail see setLeft(int).


getRight

public int getRight()

Gets the Right. For more detail see setRight(int).


getTop

public int getTop()

Gets the Top. For more detail see setTop(int).


reset

public void reset()

Resets the margings between the bounding rectangle and the Chart.getPlotAreaMargin() of the chart.

Remarks:
  • 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.

  • See Also:
    Chart.getPlotAreaMargin(), setBottom(int), setLeft(int), setRight(int), setTop(int), Chart

    setBottom

    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.

    Remarks:
  • 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.

  • See Also:
    setLeft(int), setRight(int), setTop(int), Chart.getPlotAreaMargin(), reset(), Chart

    setLeft

    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.

    Remarks:
  • 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.

  • See Also:
    setBottom(int), setRight(int), setTop(int), Chart.getPlotAreaMargin(), reset(), Chart

    setRight

    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.

    Remarks:
  • 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.

  • See Also:
    setBottom(int), setLeft(int), setTop(int), Chart.getPlotAreaMargin(), reset(), Chart

    setTop

    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.

    Remarks:
  • 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.

  • See Also:
    setBottom(int), setLeft(int), setRight(int), Chart.getPlotAreaMargin(), reset(), Chart

    http://www.softwarefx.com

    2008 Software FX, Inc. All Rights Reserved. Chart FX is a registered trademark of Software FX, Inc
    All other names are trademarks or registered trademarks of their respective owners.