Chart FX 7 for Java Server

com.softwarefx.chartfx.server
Class ConditionalAttributes

java.lang.Object
  extended by com.softwarefx.chartfx.server.PointAttributes
      extended by com.softwarefx.chartfx.server.ConditionalAttributes
All Implemented Interfaces:
ILegendBoxItem

public class ConditionalAttributes
extends PointAttributes
implements ILegendBoxItem

The members of the ConditionalAttributes class allow developers to control when special attributes should be applied to the chart and what chart elements will be taken into consideration when they are applied.

Once the Class has been configured with the desired attributes, the object may be assigned to a chart's point, based on the configured conditions. The value of each point in the chart is evaluated based on the conditions of each ConditionalAttributes item. Points that meet the conditions of a particular conditional attribute item will retain the settings of that item. For more information regarding the configuration of the conditions, please see the Condition Class .

The conditional attributes must be defined before the Chart is populated.


Constructor Summary
ConditionalAttributes()
           
ConditionalAttributes(double from, double to, Color color)
           
 
Method Summary
 Condition getCondition()
          Returns a Condition object for the specified ConditionalAttributes object.
 int getSeries()
          Gets the Series.
 void setSeries(int value)
          Sets a value indicating which series index the ConditionalAttribute will be applied to.
 
Methods inherited from class com.softwarefx.chartfx.server.PointAttributes
getAlternateColor, getBarShape, getBorder, getColor, getFillMode, getLine, getLink, getMarkerShape, getMarkerSize, getPattern, getPicture, getPointLabels, getSeparateSlice, getTag, getText, getVolume, setAlternateColor, setBarShape, setColor, setFillMode, setMarkerShape, setMarkerSize, setPattern, setPicture, setSeparateSlice, setTag, setText, setVolume
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConditionalAttributes

public ConditionalAttributes()

ConditionalAttributes

public ConditionalAttributes(double from,
                             double to,
                             Color color)
Method Detail

getCondition

public Condition getCondition()

Returns a Condition object for the specified ConditionalAttributes object.

Remarks:
  • You may use this object to manipulate the conditions in which the ConditionalAttribute applies.

  • See Also:
    Condition

    getSeries

    public int getSeries()

    Gets the Series. For more detail see setSeries(int).


    setSeries

    public void setSeries(int value)

    Sets a value indicating which series index the ConditionalAttribute will be applied to.

    Remarks:
  • By default, ConditionalAttributes are applied to all series in the chart. To reset a ConditionalAttribute to be applied to all series, set the setSeries(int) property to -1.

  • The getCondition() property is used to obtain the Condition object for a selected ConditionalAttribute. Using this object you may configure the conditions for the ConditionalAttributes object.

  • See Also:
    getCondition(), Condition

    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.