Chart FX 7 for Java Desktop

com.softwarefx.chartfx.desktop.galleries
Class Bar

java.lang.Object
  extended by com.softwarefx.chartfx.desktop.galleries.Bar
All Implemented Interfaces:
IGallery, Serializable

public class Bar
extends Object
implements IGallery, Serializable

Provides access to the Bar gallery object.

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

Bar bar = (Bar) chart1.getGalleryAttributes();

The cast will fail if the gallery is not set to Bar, Cube or Gantt.

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

See Also:
Serialized Form

Constructor Summary
Bar()
           
 
Method Summary
 boolean isOverlap()
          Gets the Overlap.
 void setOverlap(boolean value)
          Instruct the chart to draw bars on the same point overlaping each other.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Bar

public Bar()
Method Detail

isOverlap

public boolean isOverlap()

Gets the Overlap. For more detail see setOverlap(boolean).


setOverlap

public void setOverlap(boolean value)

Instruct the chart to draw bars on the same point overlaping each other.

Remarks:
  • The series with the lowest index will be drawn on the front. This could cover other series with lower values.

  • The following is an example of a bar chart with Overlap sets to false.

    Now this is the same chart, but with Overlap 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.