Chart FX for Java 6.5

SoftwareFX.ChartFX
Class Surface

java.lang.Object
  extended by SoftwareFX.ChartFX.Surface
All Implemented Interfaces:
IGalleryType

public final class Surface
extends java.lang.Object
implements IGalleryType

Provides access to the Surface gallery object.

The properties of the Surface Class allow you to customize the visual attributes of a Surface chart. In order to make the supported members available, you must first create a 'Surface' gallery object.

Surface mySurface = (Surface) chart1.getGalleryObj();

Once you have done this, using the newly created object you can assign these special attributes for the Surface gallery type in your chart.

In order to use this properly, you will need to set the gallery for the chart to Surface.


Constructor Summary
Surface()
           
 
Method Summary
 java.awt.Color[] getColors()
          Gets the Colors.
 boolean isShowBorders()
          Gets the ShowBorders.
 void setColors(java.awt.Color[] value)
          Gets or sets a collection of colors to be used for the colors of the surface plot.
 void setShowBorders(boolean value)
          Shows or hides the border of surface charts in the chart area.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Surface

public Surface()
Method Detail

getColors

public java.awt.Color[] getColors()

Gets the Colors. For more detail see setColors(java.awt.Color[]).


isShowBorders

public boolean isShowBorders()

Gets the ShowBorders. For more detail see setShowBorders(boolean).


setColors

public void setColors(java.awt.Color[] value)

Gets or sets a collection of colors to be used for the colors of the surface plot.

Remarks:
  • Colors can be assigned to a collection of colors to be used for the colors of the surface levels FROM BOTTOM TO TOP.

  • The color collection is used as a circular collection, meaning that if it is too small, the color will cycle back to the first color. A Color.Empty entry, means to use the palette color for the series corresponding to this position.

  • When not set (or set to null), the default behaviour remains the same, a color gradient is used.

  • See Also:
    setShowBorders(boolean)

    setShowBorders

    public void setShowBorders(boolean value)

    Shows or hides the border of surface charts in the chart area.

    Remarks:
  • This property is only available when a Surface gallery object has been created.

    Surface mySurface = (Surface) chart1.getGalleryObj();

  • The ChartCore.setGallery(int) selected must be the same as the type of gallery object created using the ChartCore.setGalleryObj(SoftwareFX.ChartFX.IGalleryType) property.

  • When the surface plot is set to one color, it can be difficult to see the variation in the chart. Setting the ShowBorders property allows you to see the changes in the surface chart easily.

  • You can change the color of the border lines using the ChartCore.setBorderColor(java.awt.Color), ChartCore.setBorderEffect(int) and ChartCore.setBorder(boolean) properties. The ChartCore.setBorderEffect(int) must be set to none for the Border and BorderColor properties to take effect.

  • See Also:
    ChartCore.setGallery(int), ChartCore.setGalleryObj(SoftwareFX.ChartFX.IGalleryType), ChartCore.setBorderColor(java.awt.Color), ChartCore.setBorderEffect(int), ChartCore.setBorder(boolean), Chart

    http://www.softwarefx.com

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