|
NetCharts Pro | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnetcharts.pro.common.NFBaseClass
netcharts.pro.common.NFRegion
public class 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 int |
CORNER_ROUND
Round border corner style |
static int |
CORNER_SNIP
Snip border corner style |
static int |
CORNER_SQUARE
Square border corner style |
static java.util.Hashtable |
cornerTypeMap
cornerTypeMap hashtable |
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 |
int |
getBottomLeftCornerType()
Get the regions's bottom left corner type |
int |
getBottomRightCornerType()
Get the regions's bottom right corner type |
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 |
getCornerOverhangColor()
Get the regions's corner overlap color |
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 |
int |
getTopLeftCornerType()
Get the regions's top left corner type |
int |
getTopRightCornerType()
Get the regions's top right corner type |
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 |
setBottomLeftCornerType(int bottomLeftCornerType)
Set the regions's bottom left corner type using a constant. |
void |
setBottomRightCornerType(int bottomRightCornerType)
Set the regions's bottom right corner type using a constant. |
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 |
setCornerOverhangColor(java.awt.Color color)
Set the regions's corner overhang color. |
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. |
void |
setTopLeftCornerType(int topLeftCornerType)
Set the regions's top left corner type using a constant. |
void |
setTopRightCornerType(int topRightCornerType)
Set the regions's top right corner type using a constant. |
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 CORNER_SQUARE
public static final int CORNER_ROUND
public static final int CORNER_SNIP
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
public static java.util.Hashtable cornerTypeMap
Constructor Detail |
---|
public NFRegion()
public NFRegion(java.awt.Color fillColor, int borderType, int borderWidth)
fillColor
- Background colorborderType
- One of NONE, BOX, SHADOW, RAISED,
or RECESS
borderWidth
- Number of pixels on border or drop shadow.Method Detail |
---|
public java.awt.Color getCornerOverhangColor()
public void setCornerOverhangColor(java.awt.Color color)
color
- The corner overhang colorpublic 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, RECESS
public 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, RECESS
public int getBorderWidth()
public void setBorderWidth(int borderWidth)
borderWidth
- public int getImageFormat()
SIZE, TILE, CENTER
public void setImageFormat(int imageFormat)
SIZE, TILE, CENTER
imageFormat
- 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 int getTopLeftCornerType()
SQUARE, ROUND, SNIP
public void setTopLeftCornerType(int topLeftCornerType)
SQUARE, ROUND, SNIP
If the value passed is not a valid corner type an IllegalArgumentException will be thrown.
topLeftCornerType
- One of
SQUARE, ROUND, SNIP
public int getTopRightCornerType()
SQUARE, ROUND, SNIP
public void setTopRightCornerType(int topRightCornerType)
SQUARE, ROUND, SNIP
If the value passed is not a valid corner type an IllegalArgumentException will be thrown.
topRightCornerType
- One of
SQUARE, ROUND, SNIP
public int getBottomRightCornerType()
SQUARE, ROUND, SNIP
public void setBottomRightCornerType(int bottomRightCornerType)
SQUARE, ROUND, SNIP
If the value passed is not a valid corner type an IllegalArgumentException will be thrown.
bottomRightCornerType
- One of
SQUARE, ROUND, SNIP
public int getBottomLeftCornerType()
SQUARE, ROUND, SNIP
public void setBottomLeftCornerType(int bottomLeftCornerType)
SQUARE, ROUND, SNIP
If the value passed is not a valid corner type an IllegalArgumentException will be thrown.
bottomLeftCornerType
- One of
SQUARE, ROUND, SNIP
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 NFCDLGenerator
cdl
- 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, border color, topLeftCornerType, topRightCornerType,
bottomRightCornerType, and bottomLeftCornerType information.offset
- Offset into the elements array.public java.lang.String getCDL()
getCDL
in interface NFCDLGenerator
(color, borderType, borderWidth, "imageURL", imageFormat, borderColor, topLeftCornerType, topRightCornerType, bottomRightCornerType, bottomLeftCornerType)
public java.lang.String toString()
toString
in interface NFCDLGenerator
toString
in class java.lang.Object
public 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: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Visual Mining, Inc. | Copyright © Visual Mining, Inc. 1996 - 2011 |
Last Modified: Jun 28, 2011 |