netcharts.pro.common.rectangular
Class NFGridBackground
java.lang.Object
|
+--netcharts.pro.common.NFBaseClass
|
+--netcharts.pro.common.NFRegion
|
+--netcharts.pro.common.rectangular.NFGridBackground
- All Implemented Interfaces:
- java.lang.Cloneable, NFCDLGenerator
- public class NFGridBackground
- extends NFRegion
- implements NFCDLGenerator
This object is used to define a grid's background color or image properties. It
extends NFRegion although Grid's ignore border type and width attributes.
|
Method Summary |
java.lang.String |
getCDL()
Generate CDL parameters representing this region |
void |
getCDL(java.lang.StringBuffer sb,
boolean includeParens)
Append CDL parameters representing this grid background to the given StringBuffer. |
java.awt.Color |
getLineColor()
Return the line color |
java.util.Vector |
getObjects()
Returns object vector of region elements |
void |
setCDL(java.lang.String cdl)
Configures this object from a CDL parameter representation. |
void |
setCDL(java.lang.String[] elements,
int offset)
Configures this object from a CDL parameter representation. |
void |
setLineColor(java.awt.Color color)
Set the line color |
java.lang.String |
toString()
Returns a new String object representing this grid background. |
| Methods inherited from class netcharts.pro.common.NFRegion |
getBorderColor, getBorderType, getBorderWidth, getFillColor, getImage, getImageFormat, getImageURL, setBorderColor, setBorderType, setBorderWidth, setCDL, setFillColor, setImage, setImageFormat, setImageURL |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NFGridBackground
public NFGridBackground()
setLineColor
public void setLineColor(java.awt.Color color)
- Set the line color
- Parameters:
color - Color object
getLineColor
public java.awt.Color getLineColor()
- Return the line color
- Returns:
- the line color or null if not defined.
setCDL
public void setCDL(java.lang.String cdl)
- Configures this object from a CDL parameter representation.
- Specified by:
setCDL in interface NFCDLGenerator- Overrides:
setCDL in class NFRegion
- Parameters:
cdl - CDL in the form: (lineColor, fillColor, borderColor, "imageURL", imageFormat)
setCDL
public void setCDL(java.lang.String[] elements,
int offset)
- Configures this object from a CDL parameter representation.
- Overrides:
setCDL in class NFRegion
- Parameters:
elements - Array of parameter elements. This array is expected
to contain consecutive elements containing lineColor, fillColor, borderColor,
imageURL, and imageFormat information.offset - Offset into the elements array.
toString
public java.lang.String toString()
- Returns a new String object representing this grid background.
- Specified by:
toString in interface NFCDLGenerator- Overrides:
toString in class NFRegion
- Returns:
- A new String object in the same form as that given by getCDL().
getCDL
public java.lang.String getCDL()
- Generate CDL parameters representing this region
- Specified by:
getCDL in interface NFCDLGenerator- Overrides:
getCDL in class NFRegion
- Returns:
- CDL in the form:
(lineColor, fillColor, borderColor, "imageURL", imageFormat)
getCDL
public void getCDL(java.lang.StringBuffer sb,
boolean includeParens)
- Append CDL parameters representing this grid background to the given StringBuffer.
- Overrides:
getCDL in class NFRegion
- Parameters:
sb - Target buffer to append the CDL parametersincludeParens - If true, this will cause the parameters to be delimited
with parenthesis.
getObjects
public java.util.Vector getObjects()
- Description copied from class:
NFRegion
- Returns object vector of region elements
- Overrides:
getObjects in class NFRegion
- Following copied from class:
netcharts.pro.common.NFRegion
- Returns:
- objects
Visual Mining, Inc. 15825 Shady Grove Rd. Suite 20 Rockville, MD 20850 800.308.0731 301.947.8293 FAX | | Copyright © Visual Mining, Inc. 1996 - 2006 All Rights Reserved. NetCharts Pro TM is a registered trademark of Visual Mining, Inc. Other brands and their products are trademarks of their respective holders. |
Last Modified: Apr 14, 2006 |