Chart FX for Java 6.5

SoftwareFX.ChartFX
Class Curve

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

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

Provides access to the Curve gallery object.

The properties of the Curve Class allow you to customize the visual attributes of a Curve chart. In order to make the supported members available, you must first set the gallery of the chart to Curve, and cast the GalleryObj property of the Chart to the Curve Class :

chart1.setGallery(Gallery.CURVE);
Curve curve = (Curve) chart1.getGalleryObj()

The cast will fail if the gallery is not previously set to Curve.

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


Constructor Summary
Curve()
           
 
Method Summary
 boolean isNative()
          Gets the Native.
 void setNative(boolean value)
          When sets to false, ChartFX internal algorithm will be used to draw curves.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Curve

public Curve()
Method Detail

isNative

public boolean isNative()

Gets the Native. For more detail see setNative(boolean).


setNative

public void setNative(boolean value)

When sets to false, ChartFX internal algorithm will be used to draw curves. Otherwise, the Java API native algorithm will be used.

Remarks:
  • To access this property a Curve GalleryObj object need to be created.

    chart1.setGallery(Gallery.CURVE);
    Curve myCurve = (Curve) chart1.getGalleryObj();

  • Set to True to use the Java API native algorithm. Set to False to use Chart FX internal algorithm.

  • In some cases, the Chart FX internal algorithm will offer a better performace.

  • Below, the chart uses the internal algorithm to draw the curve:

    Alternativelly, this is the chart using the native algorithm provided by the Java API :

  • See Also:
    ChartCore.setGallery(int), SeriesAttributes.setGallery(int), Chart, SeriesAttributes

    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.