Chart FX 7 for Java Server

com.softwarefx.chartfx.server.adornments
Class ImageBorder

java.lang.Object
  extended by com.softwarefx.chartfx.server.adornments.ImageBorder
All Implemented Interfaces:
IBorderAdornment

public class ImageBorder
extends Object
implements IBorderAdornment

Provides access to the ImageBorder object.

When thinking about of all the features built into Chart FX for Java geared to enhance the chart's presentation layer, none stand out more than Image Borders.

Image Borders add the graphic pizzazz required in today's applications.

Use the ImageBorder's properties to configure the Border of the Chart, as well as the DockableBar.setBorder(com.softwarefx.chartfx.server.DockBorder)of the DockableBarsuch as the DataGridthe LegendBox, or the Chart.getToolBar().

Important Note : To set the image border of a chart in your applications, you must reference the Adornments assembly in your project.

Please see the setType(com.softwarefx.chartfx.server.adornments.ImageBorderType) property for a complete list of the supported ImageBorder enumerations.


Constructor Summary
ImageBorder()
           
ImageBorder(ImageBorderType type)
           
ImageBorder(ImageBorderType type, Color color)
           
ImageBorder(String fileName)
           
 
Method Summary
 void draw(Graphics2D g, Rectangle r, Color clrExternal)
          Draws a Chart FX ImageBorder on a selected device context.
 Color getColor()
          Gets the Color.
 ImageBorderType getType()
          Gets the Type.
 void setColor(Color value)
          Sets the color of the border.
 void setType(ImageBorderType value)
          Sets the type for the image border.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageBorder

public ImageBorder()

ImageBorder

public ImageBorder(ImageBorderType type)

ImageBorder

public ImageBorder(String fileName)

ImageBorder

public ImageBorder(ImageBorderType type,
                   Color color)
Method Detail

draw

public void draw(Graphics2D g,
                 Rectangle r,
                 Color clrExternal)

Draws a Chart FX ImageBorder on a selected device context.

Remarks:
  • This method allows you to draw an ImageBorder to a selected device context without ever assigning this border to a chart.

  • Parameters:
    g - A Graphics object is associated with a specific device context.
    r - A Rectangle object specifying the desired position and size of the border.
    clrExternal - The color for the Image border.
    See Also:
    setColor(java.awt.Color), setType(com.softwarefx.chartfx.server.adornments.ImageBorderType), SimpleBorder.draw(java.awt.Graphics2D, java.awt.Rectangle, java.awt.Color), SolidBackground.draw(java.awt.Graphics2D, java.awt.Rectangle, java.awt.Color), GradientBackground.draw(java.awt.Graphics2D, java.awt.Rectangle, java.awt.Color), ImageBackground.draw(java.awt.Graphics2D, java.awt.Rectangle, java.awt.Color), Chart, SolidBackground, GradientBackground, ImageBackground

    getColor

    public Color getColor()

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

    Specified by:
    getColor in interface IBorderAdornment

    getType

    public ImageBorderType getType()

    Gets the Type. For more detail see setType(com.softwarefx.chartfx.server.adornments.ImageBorderType).


    setColor

    public void setColor(Color value)

    Sets the color of the border.

    Remarks:
  • Not all ImageBorders have a outlining border to use this property. If the border does not include a border, the setting will have no effect.

  • The Chart FX ImageBorders use shading to give a multidimensional effect. The Chart.setPageColor(java.awt.Color) property can be used to modify the background color of the shaded area around ImageBorders.

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

  • Here is an example of the 'Colonial' ImageBorder with the border color turned to red:

  • Specified by:
    setColor in interface IBorderAdornment
    See Also:
    Chart.setBorder(com.softwarefx.chartfx.server.adornments.IBorderAdornment), DockableBar.setBorder(com.softwarefx.chartfx.server.DockBorder), setType(com.softwarefx.chartfx.server.adornments.ImageBorderType), Chart.setPageColor(java.awt.Color), Chart, DockableBar

    setType

    public void setType(ImageBorderType value)

    Sets the type for the image border.

    Remarks:
  • Once you create the image border object, you may assign attributes to the object with the supported ImageBorder properties.

  • See Also:
    Chart.setBorder(com.softwarefx.chartfx.server.adornments.IBorderAdornment), DockableBar.setBorder(com.softwarefx.chartfx.server.DockBorder), setColor(java.awt.Color), Chart, DockableBar, SimpleBorder

    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.