Chart FX 7 for Java Server

com.softwarefx.chartfx.server
Class CellAttributes

java.lang.Object
  extended by com.softwarefx.chartfx.server.CellAttributes

public class CellAttributes
extends Object

Allows you to modify the attributes of a Cell in the DataGrid.

Allows you to modify the attributes of a particular Cell or entire Row in the DataGrid.

The following image shows a particular Cell in the DataGrid with a yellow background, Italic font, and a thicker border:


Constructor Summary
CellAttributes()
           
 
Method Summary
 Color getBackColor()
          Gets the BackColor.
 Color getBorderColor()
          Gets the BorderColor.
 int getBorderWidth()
          Gets the BorderWidth.
 EnumSet<FontStyle> getFontStyle()
          Gets the FontStyle.
 Color getTextColor()
          Gets the TextColor.
 void setBackColor(Color value)
          Sets the background color for a particular Cell or entire Row in the DataGrid.
 void setBorderColor(Color value)
          Allows you to set the color of the border for a particular Cell or entire Row in the DataGrid.
 void setBorderWidth(int value)
          Allows you to set the width of the Cell border in pixels for a particular Cell or entire Row in the DataGrid.
 void setFontStyle(EnumSet<FontStyle> value)
          Allows you to set the style of the font for a particular Cell or entire Row in the DataGrid.
 void setTextColor(Color value)
          Allows you to set the text color for a particular Cell or entire Row in the DataGrid.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CellAttributes

public CellAttributes()
Method Detail

getBackColor

public Color getBackColor()

Gets the BackColor. For more detail see setBackColor(java.awt.Color).


getBorderColor

public Color getBorderColor()

Gets the BorderColor. For more detail see setBorderColor(java.awt.Color).


getBorderWidth

public int getBorderWidth()

Gets the BorderWidth. For more detail see setBorderWidth(int).


getFontStyle

public EnumSet<FontStyle> getFontStyle()

Gets the FontStyle. For more detail see setFontStyle(java.util.EnumSet).


getTextColor

public Color getTextColor()

Gets the TextColor. For more detail see setTextColor(java.awt.Color).


setBackColor

public void setBackColor(Color value)

Sets the background color for a particular Cell or entire Row in the DataGrid.

Remarks:
  • You need to have the data editor visible in order to see the changes made with BackColor property. Use the DockableBar.setVisible(boolean) property to enable the data editor.

  • For more information regarding the Color type, please refer to the Java API Documentation.

  • Below, the data grid cell Attribute backcolor for the first series is set to Red:

  • See Also:
    DataGrid

    setBorderColor

    public void setBorderColor(Color value)

    Allows you to set the color of the border for a particular Cell or entire Row in the DataGrid.

    Remarks:
  • For more information regarding the Color type, please refer to the Java API Documentation.

  • Below, the border color for the first series is set to Red:

  • See Also:
    DataGrid

    setBorderWidth

    public void setBorderWidth(int value)

    Allows you to set the width of the Cell border in pixels for a particular Cell or entire Row in the DataGrid.

    Remarks:
  • This property allows you to configure the width of the DataGrid Cell border using units other than pixels.

  • Below, the border width for the first series is set to 4:

  • See Also:
    DataGrid

    setFontStyle

    public void setFontStyle(EnumSet<FontStyle> value)

    Allows you to set the style of the font for a particular Cell or entire Row in the DataGrid.

    Remarks:
  • Below, the font style for the first series is set to Bold and Underline:

  • See Also:
    DataGrid

    setTextColor

    public void setTextColor(Color value)

    Allows you to set the text color for a particular Cell or entire Row in the DataGrid.

    Remarks:
  • For more information regarding the Color type, please refer to the Java API Documentation.

  • Below, the text color for the first series is set to Red:

  • See Also:
    DataGrid

    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.