Chart FX 7 for Java Server

com.softwarefx.chartfx.server.galleries
Class Pyramid

java.lang.Object
  extended by com.softwarefx.chartfx.server.galleries.Pyramid
All Implemented Interfaces:
IGallery

public class Pyramid
extends Object
implements IGallery

Provides access to the Pyramid gallery object.

The properties of the Pyramid Class allow you to customize the visual attributes of a Pyramid chart. In order to make the supported members available, you must first set the gallery of the chart to Pyramid, and cast the Chart.setGalleryAttributes(com.softwarefx.chartfx.server.IGallery) property of the Chart to the Pyramid Class :

Pyramid pyramid = (Pyramid) chart1.getGalleryAttributes();

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

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


Constructor Summary
Pyramid()
           
 
Method Summary
 int getFaces()
          Gets the Faces.
 int getSeparation()
          Gets the Separation.
 boolean isConic()
          Gets the Conic.
 boolean isInverted()
          Gets the Inverted.
 boolean isShadow2D()
          Gets the Shadow2D.
 void setConic(boolean value)
          Determines whether or not the pyramid will show with a Conic effect.
 void setFaces(int value)
          Determines how many Faces the pyramid has.
 void setInverted(boolean value)
          Determines if the pyramid is displayed upside-down or right-side up.
 void setSeparation(int value)
          Determines how many pixels each segment of the pyramid is separated by.
 void setShadow2D(boolean value)
          Determines if the pyramid as a shadow that gives a 2D chart a 3D look.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pyramid

public Pyramid()
Method Detail

getFaces

public int getFaces()

Gets the Faces. For more detail see setFaces(int).


getSeparation

public int getSeparation()

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


isConic

public boolean isConic()

Gets the Conic. For more detail see setConic(boolean).


isInverted

public boolean isInverted()

Gets the Inverted. For more detail see setInverted(boolean).


isShadow2D

public boolean isShadow2D()

Gets the Shadow2D. For more detail see setShadow2D(boolean).


setConic

public void setConic(boolean value)

Determines whether or not the pyramid will show with a Conic effect.

Remarks:
  • The following chart is an example of Conic and View3D set to true.


  • setFaces

    public void setFaces(int value)

    Determines how many Faces the pyramid has.

    Remarks:
  • Changes to the Faces property will only be noticed if the chart is set to 3D. This is an example of a pyramid chart with 6 faces.

  • The default value for Faces property is 4.

  • The minimum value for this property is 3. If you set the Faces property to a lower value, will reset it to the minimum.


  • setInverted

    public void setInverted(boolean value)

    Determines if the pyramid is displayed upside-down or right-side up.

    Remarks:
  • Here is an example of an inverted pyramid chart.


  • setSeparation

    public void setSeparation(int value)

    Determines how many pixels each segment of the pyramid is separated by.

    Remarks:
  • By default, each segment of the pyramid is separated by 5 pixels.

  • The following is an example of a pyramid with Separation set to 20 pixels.


  • setShadow2D

    public void setShadow2D(boolean value)

    Determines if the pyramid as a shadow that gives a 2D chart a 3D look.

    Remarks:
  • Here is an example of a pyramid chart with the Shadow2D property set to true.


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