Chart FX 7 for Java Server

com.softwarefx.chartfx.server
Class Pane

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

public class Pane
extends Object

Provides access to the Pane object.

The Panes feature of Chart FX for Java allows the developer to display multiple panes of data in a single chart window. This data analysis feature allows developers to separate or combine several series allowing for improved analysis experience. This could be used for many applications, the most obvious being to improve readability by simplifying the display of a chart.

In the chart above, three series are each assigned to an individual pane. As you can see, each pane has several attributes unique to that pane instance, such as the InsideBackObject, InsideColor, Proportion, Separation and Title. Also observe how each of the panes have an independent axis.

The first indexed pane of the collection is referred to the main pane of the chart. It can be accessed by the Chart.getMainPane()property of the Chart Class .


Constructor Summary
Pane()
           
Pane(int index)
           
 
Method Summary
 AxisYCollection getAxes()
          Provides access to the Y Axis Collection for the selected Pane.
 AxisY getAxisY()
          Provides access to the members of the main Y Axis for the selected Pane.
 Color getBackColor()
          Gets the BackColor.
 IBackgroundAdornment getBackground()
          Gets the Background.
 Rectangle getBoundingRectangle()
          Returns a rectangle object that contains attributes for the selected pane.
 double getProportion()
          Gets the Proportion.
 int getSeparation()
          Gets the Separation.
 Title getTitle()
          Gets the Title.
 boolean isVisible()
          Gets the Visible.
 void setBackColor(Color value)
          Sets the inside color for the selected pane.
 void setBackground(IBackgroundAdornment value)
          Sets an ImageBackground or GradientBackground object for a pane.
 void setProportion(double value)
          Sets a value indicating the proportional size of the selected pane.
 void setSeparation(int value)
          Sets a value indicating the space between panes.
 void setTitle(Title value)
          Gets the Title object for a selected pane.
 void setVisible(boolean value)
          Sets a value indicating if the Pane object should be shown or not.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pane

public Pane()

Pane

public Pane(int index)
Method Detail

getAxes

public AxisYCollection getAxes()

Provides access to the Y Axis Collection for the selected Pane.

Remarks:
  • Use this property to mamipulate the Y Axes of the Pane.

  • The getAxisY() property provides direct access to the Pane's main Y axis.

  • See Also:
    getAxisY(), Axis

    getAxisY

    public AxisY getAxisY()

    Provides access to the members of the main Y Axis for the selected Pane.

    Remarks:
  • This property is a shortcut to the Pane's main AxisY.

  • To access any other Pane's Y axes, i.e. Secondary Y axis, use the getAxes() property.

  • When using Panes, the AxisY for the first Pane can be also accessed directly from the Chart object:

    chart1.getPanes().get(0).getAxisY().getTitle().setText("My Y-Axis");

  • Below, the second pane Y axis title is set to "Y Axis (Second Pane)":

  • See Also:
    getAxes(), AxisY

    getBackColor

    public Color getBackColor()

    Gets the BackColor. For more detail see setBackColor(java.awt.Color).


    getBackground

    public IBackgroundAdornment getBackground()

    Gets the Background. For more detail see setBackground(com.softwarefx.chartfx.server.adornments.IBackgroundAdornment).


    getBoundingRectangle

    public Rectangle getBoundingRectangle()

    Returns a rectangle object that contains attributes for the selected pane.

    Remarks:
  • By reading the attributes of the Rectangle object returned by this property, you can determine the size and location of a selected pane object.

  • See Also:
    setBackground(com.softwarefx.chartfx.server.adornments.IBackgroundAdornment), setBackColor(java.awt.Color), setProportion(double), setSeparation(int), setTitle(com.softwarefx.chartfx.server.Title), Chart, AxisY

    getProportion

    public double getProportion()

    Gets the Proportion. For more detail see setProportion(double).


    getSeparation

    public int getSeparation()

    Gets the Separation. For more detail see setSeparation(int).


    getTitle

    public Title getTitle()

    Gets the Title. For more detail see setTitle(com.softwarefx.chartfx.server.Title).


    isVisible

    public boolean isVisible()

    Gets the Visible. For more detail see setVisible(boolean).


    setBackColor

    public void setBackColor(Color value)

    Sets the inside color for the selected pane.

    Remarks:
  • For more information regarding the Color type, please refer to your Java API documentation.

  • For gradient background, see the setBackground(com.softwarefx.chartfx.server.adornments.IBackgroundAdornment).

  • Named colors are supported (e.g. Red), to use Hex notation you have to use quotes (e.g. "#FF00FF").

  • Below, the second pane back color is set to dark blue:

  • See Also:
    setBackground(com.softwarefx.chartfx.server.adornments.IBackgroundAdornment), Chart, AxisY

    setBackground

    public void setBackground(IBackgroundAdornment value)

    Sets an ImageBackground or GradientBackground object for a pane.

    Remarks:
  • Each pane present in a chart may have a unique ImageBackground or GradientBackground object configured as the background.

  • Please see the ImageBackground and GradientBackground objects for information regarding supported members.

  • See Also:
    ImageBackground, GradientBackground

    setProportion

    public void setProportion(double value)

    Sets a value indicating the proportional size of the selected pane.

    Remarks:
  • This property accepts an integer that specifies the "proportional" size of a selected pane. For Example, If you set this property to a value of 2, that pane's height would be twice the size of any default pane's height. The default pane size will depend on the number of panes visible in the chart as well as the dimensions of the chart object itself.

  • Below, the second pane proportion is set to 3:

  • See Also:
    setBackground(com.softwarefx.chartfx.server.adornments.IBackgroundAdornment), setBackColor(java.awt.Color), setSeparation(int), setTitle(com.softwarefx.chartfx.server.Title), Chart, AxisY

    setSeparation

    public void setSeparation(int value)

    Sets a value indicating the space between panes.

    Remarks:
  • This property is useful when multiple panes are configured and you need to create space for readability.

  • Below, the second pane separation is set to 60:

  • See Also:
    Chart, AxisY

    setTitle

    public void setTitle(Title value)

    Gets the Title object for a selected pane.

    Remarks:
  • This property returns a Title object. By accessing the title Class members you will be able to control attributes such as: Alignment, Color, Font,Text, etc.

  • Each pane may only have one title.

  • The setSeparation(int) property may be used to control the space between panes. This may be useful to developers trying a change the font for a pane's title.

  • Below, the second pane title is set to "Second Pane":

  • See Also:
    setSeparation(int), Title, TitleDockable, Chart, AxisY

    setVisible

    public void setVisible(boolean value)

    Sets a value indicating if the Pane object should be shown or not.

    Remarks:
  • Hiding a Pane object will hide all the series associated with that pane, not only from the chart area but also from the Legend and the DataGrid. The hidden series objects will remain accessible but invisible.

  • Hiding a Pane object does not destroy or lose previous settings assigned by other properties.


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