|
NetCharts Pro | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--netcharts.pro.common.NFBaseClass
|
+--netcharts.pro.common.NFRegion
The NFRegion object defines the characteristics of a rectangular area in a chart. Typically, the region is used to present a background to the chart, titles, legends, annotations, and more. It contains information on the background color, border style, and border width. Users may optionally use an image background.
| Field Summary | |
static java.util.Hashtable |
borderTypeMap
borderTypeMap hashtable |
static int |
BOX
Box border style |
static int |
CENTER
Centered image layout. |
static java.util.Hashtable |
imageLayoutMap
imageLayoutMap hashtable |
static int |
NONE
No border style |
static int |
RAISED
Raised border style |
static int |
RECESS
Recessed border style |
static int |
SHADOW
Shadow border style |
static int |
SIZE
Size-to-fit image layout. |
static int |
TILE
Tiled image layout. |
| Constructor Summary | |
NFRegion()
Constructs a default region |
|
NFRegion(java.awt.Color fillColor,
int borderType,
int borderWidth)
Constructs a region with color, border type, and border width. |
|
| Method Summary | |
java.awt.Color |
getBorderColor()
Get the regions's border color |
int |
getBorderType()
Get the regions's border type |
int |
getBorderWidth()
Get the regions's border width |
java.lang.String |
getCDL()
Generate CDL parameters representing this region |
void |
getCDL(java.lang.StringBuffer sb,
boolean includeParens)
Append CDL parameters representing this region to the given StringBuffer. |
java.awt.Color |
getFillColor()
Get the regions's background color |
java.awt.Image |
getImage()
Returns the Image instance specified to use for the region or null if not specified. |
int |
getImageFormat()
Get the regions's image format. |
java.lang.String |
getImageURL()
Get the regions's image url string. |
java.util.Vector |
getObjects()
Returns object vector of region elements |
void |
setBorderColor(java.awt.Color borderColor)
Set the regions's border color. |
void |
setBorderType(int borderType)
Set the regions's border type using a constant. |
void |
setBorderWidth(int borderWidth)
Set the regions's border width. |
void |
setCDL(java.lang.Object cdlObject)
Configures this label from a CDL parameter object. |
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 |
setFillColor(java.awt.Color color)
Set the regions's background color. |
void |
setImage(java.awt.Image image)
Sets the Image instance specified to use for the region or null to remove. |
void |
setImageFormat(int imageFormat)
Set the regions's image format. |
void |
setImageURL(java.lang.String imageURL)
Set the regions's image url. |
java.lang.String |
toString()
Returns a new String object representing this region. |
| Methods inherited from class netcharts.pro.common.NFBaseClass |
clone, getModified, getUserObject, setModified, setUserObject |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int NONE
public static final int BOX
public static final int SHADOW
public static final int RAISED
public static final int RECESS
public static final int TILE
public static final int SIZE
public static final int CENTER
public static java.util.Hashtable borderTypeMap
public static java.util.Hashtable imageLayoutMap
| Constructor Detail |
public NFRegion()
public NFRegion(java.awt.Color fillColor,
int borderType,
int borderWidth)
fillColor - Background colorborderType - One of NONE, BOX, SHADOW, RAISED, or RECESSborderWidth - Number of pixels on border or drop shadow.| Method Detail |
public java.awt.Color getFillColor()
public void setFillColor(java.awt.Color color)
color - The background colorpublic java.awt.Color getBorderColor()
public void setBorderColor(java.awt.Color borderColor)
borderColor - public int getBorderType()
NONE, BOX, SHADOW, RAISED, RECESSpublic void setBorderType(int borderType)
NONE, BOX, SHADOW, RAISED, RECESS
If the value passed is not a valid border type an IllegalArgumentException will be thrown.
borderType - One of
NONE, BOX, SHADOW, RAISED, RECESSpublic int getBorderWidth()
public void setBorderWidth(int borderWidth)
borderWidth - public int getImageFormat()
SIZE, TILE, CENTERpublic void setImageFormat(int imageFormat)
SIZE, TILE, CENTERimageFormat - public java.lang.String getImageURL()
public void setImageURL(java.lang.String imageURL)
imageURL - Represents the location of an appropriate image (.gif, .png, .jpg). Note that
in a client side application, Java security rules typically prevent an applet
from requesting objects from other servers than the one downloaded from.public void setImage(java.awt.Image image)
null to remove.image - The Image instance to use for the region or null to remove.public java.awt.Image getImage()
null if not specified.null if not specified.public void setCDL(java.lang.Object cdlObject)
cdlObject - CDL in a String form or in a user object.public void setCDL(java.lang.String cdl)
setCDL in interface NFCDLGeneratorcdl - CDL in the form: (color, borderType, borderWidth, "imageURL", imageFormat, borderColor)
public void setCDL(java.lang.String[] elements,
int offset)
elements - Array of parameter elements. This array is expected
to contain consecutive elements containing color, borderType, borderWidth,
imageURL, imageFormat, and border color information.offset - Offset into the elements array.public java.lang.String getCDL()
getCDL in interface NFCDLGenerator(color, borderType, borderWidth, "imageURL", imageFormat, borderColor)public java.lang.String toString()
toString in interface NFCDLGeneratortoString in class java.lang.Objectpublic java.util.Vector getObjects()
public void getCDL(java.lang.StringBuffer sb,
boolean includeParens)
sb - Target buffer to append the CDL parametersincludeParens - If true, this will cause the parameters to be delimited
with parenthesis.
|
NetCharts Pro | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Visual Mining, Inc. | Copyright © Visual Mining, Inc. 1996 - 2005 |
Last Modified: Feb 1, 2005 |