|
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.NFVector
netcharts.pro.common.NFBaseSet
netcharts.pro.common.NFSet
netcharts.pro.common.rectangular.NFDataSet
netcharts.pro.common.lineset.NFLineSet
netcharts.pro.charts.bubble.NFBubbleSet
public class NFBubbleSet
The NFBubbleSet object contains information for lines, bubble symbols, or both. An example of using a bubbleset for a simple bubblechart is shown here:
NFBubblechart bc = new NFBubblechart(); bc.setSize(500,500); Object datao[][] = makeData(); NFDataModel3D foo= new NFDataModel3D(datao){ public Object getX(int row){ Object o[][] = (Object[][])dataObject; return o[row][1]; } public Object getY(int row){ Object o[][] = (Object[][])dataObject; return o[row][2]; } public Object getZ(int row){ Object o[][] = (Object[][])dataObject; return o[row][3]; } public int getNumPoints(){ return ((Object[])dataObject).length; } }; NFBubbleSet bs = new NFBubbleSet(); bs.setZScale(0,1.0); bs.loadDataModel(foo); bc.addBubbleSet(bs);
Field Summary | |
---|---|
static java.util.Hashtable |
lineValueLabelStyleMap
Contains the set of allowed line value style types. |
Fields inherited from interface netcharts.pro.common.lineset.NFValueLabelConstants |
---|
BOTTOM, BOTTOMLEFT, BOTTOMRIGHT, CENTER, LEFT, NONE, RIGHT, TOP, TOPLEFT, TOPRIGHT |
Constructor Summary | |
---|---|
NFBubbleSet()
Constructs a default bubble set. |
|
NFBubbleSet(java.awt.Color bubbleColor)
Constructs a set with the given bubble color. |
|
NFBubbleSet(int symbolType,
java.awt.Color symbolColor,
int maxSymbolSize)
Constructs a set with the given symbol type, color, and size |
|
NFBubbleSet(java.lang.String legendName,
java.awt.Color bubbleColor)
Constructs a set with the given bubble color and legend name. |
Method Summary | |
---|---|
void |
addElement(java.lang.Object xval,
java.lang.Object yval)
Adds the given x and y value to the set. |
void |
addElement(java.lang.Object xval,
java.lang.Object yval,
java.lang.Object zval)
Adds the given x, y, and z value to the set. |
java.lang.Object |
clone()
Does a deep copy of this bubbleset object |
int |
getBubbleMaxSize()
Gets the maximum size, in pixels, that the bubble can be. |
java.lang.String |
getCDL()
Generate CDL parameters representing this data |
java.lang.String |
getCDLLineValueLabelStyle()
Get the line value label style for the set from a CDL string. |
int |
getLineValueLabelStyle()
Gets the type of text labeling for lines in this set |
boolean |
getModifiedValueLabel()
Returns if the positioning of value labels has changed in this set. |
java.awt.Color |
getPointColor()
Get the point color |
NFBubbleScale |
getZScale()
Gets the minimum and maximum values that will be used to determine the bubble size. |
void |
setBubbleMaxSize(int maxSize)
Sets the maximum size, in pixels, that the bubble can be. |
void |
setCDLLineValueLabelStyle(java.lang.String cdl)
Set the line value label style for the set from a CDL string. |
void |
setLineValueLabelStyle(int lineValueLabelStyle)
Sets the type of text labeling for lines in this set. |
void |
setPointColor(java.awt.Color pointColor)
Set the point color. |
void |
setZScale(double minScale,
double maxScale)
Sets the minimum and maximum values that will be used to determine the bubble size. |
void |
setZScale(NFBubbleScale zScale)
Sets the minimum and maximum values that will be used to determine the bubble size. |
Methods inherited from class netcharts.pro.common.lineset.NFLineSet |
---|
addElement, addElement, addElement, addElement, getCDLAppearance, getCDLAs2D, getCDLDefault, getCDLTuples, getColor, getColorTable, getFillColor, getFillPattern, getLegendName, getLine, getModifiedAppearance, getSymbol, setCDLAppearance, setColor, setColorTable, setFillColor, setFillPattern, setLegendName, setLine, setSymbol |
Methods inherited from class netcharts.pro.common.rectangular.NFDataSet |
---|
setXAxis, setYAxis |
Methods inherited from class netcharts.pro.common.NFSet |
---|
getAxisMap, setAxisMap |
Methods inherited from class netcharts.pro.common.NFBaseSet |
---|
addActiveLabel, getActiveLabels, getSetName, setActiveLabels, setSetName |
Methods inherited from class netcharts.pro.common.NFVector |
---|
addElement, addElement, elementAt, elementAt, getCDL, getCDL, getCDLHasTuples, getCDLKeyValues, getCDLKeyValuesHasPoints, getMaxDimensions, getQuoteStrings, getSize, isEmptyStringAsNull, loadDataModel, loadDataModel, loadDataModel, removeElementAt, reset, setCDL, setCDLHasTuples, setCDLNullString, setElementAt, setEmptyStringAsNull, setQuoteStrings, setSize, size, skipNulls, toArray, toString |
Methods inherited from class netcharts.pro.common.NFBaseClass |
---|
getModified, getUserObject, setModified, setUserObject |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static java.util.Hashtable lineValueLabelStyleMap
NONE, RIGHT, LEFT, TOP, BOTTOM, TOPLEFT, TOPRIGHT, BOTTOMLEFT, BOTTOMRIGHT, CENTER
.
Constructor Detail |
---|
public NFBubbleSet()
public NFBubbleSet(java.awt.Color bubbleColor)
bubbleColor
- The bubble color.public NFBubbleSet(java.lang.String legendName, java.awt.Color bubbleColor)
legendName
- The name that will appear in the legend for this set.bubbleColor
- The bubble color.public NFBubbleSet(int symbolType, java.awt.Color symbolColor, int maxSymbolSize)
symbolType
- A NFLineSetSymbol type. One of CIRCLE, SQUARE, DIAMOND, TRIANGLEUP, TRIANGLEDOWN,
CROSS, VRECTANGLE, HRECTANGLE, IMAGE.
symbolColor
- Color of the symbol (ignored for IMAGE types).maxSymbolSize
- Size of symbol (ignored for IMAGE types)Method Detail |
---|
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class NFLineSet
java.lang.CloneNotSupportedException
public void setBubbleMaxSize(int maxSize)
maxSize
- Maximum size in pixels that the bubble can be.public int getBubbleMaxSize()
public void setZScale(double minScale, double maxScale)
minScale
- If the 'z' coordinate is less than or equal to
the minScale, the bubble will be drawn at a 1 pixel size.maxScale
- If the 'z' coordinate is greater than or equal to
the maxScale the bubble will be drawn at the full symbol size.public void setZScale(NFBubbleScale zScale)
zScale
- Scale information for the bubble set.public NFBubbleScale getZScale()
public void setPointColor(java.awt.Color pointColor)
pointColor;
- public java.awt.Color getPointColor()
public void addElement(java.lang.Object xval, java.lang.Object yval)
If the value passed is not a valid data item an IllegalArgumentException will be thrown.
addElement
in class NFLineSet
xval
- Number or Date value.yval
- Number or Date value.public void addElement(java.lang.Object xval, java.lang.Object yval, java.lang.Object zval)
If the value passed is not a valid data item an IllegalArgumentException will be thrown.
xval
- Number or Date value.yval
- Number or Date value.zval
- Number or Date value.public void setLineValueLabelStyle(int lineValueLabelStyle)
If the value passed is not a valid line value label style an IllegalArgumentException will be thrown.
setLineValueLabelStyle
in class NFLineSet
lineValueLabelStyle
- One of
NONE, EXTERNAL, RIGHT, LEFT, BOTTOM, TOPLEFT, TOPRIGHT, BOTTOMRIGHT, BOTTOMLEFT, CENTER
.public int getLineValueLabelStyle()
getLineValueLabelStyle
in class NFLineSet
NONE, EXTERNAL, RIGHT, LEFT, BOTTOM, TOPLEFT, TOPRIGHT, BOTTOMRIGHT, BOTTOMLEFT, CENTER
or
NONE if not set.public boolean getModifiedValueLabel()
getModifiedValueLabel
in class NFLineSet
public java.lang.String getCDL()
getCDL
in class NFLineSet
(x1,y1,z1),(x2,y2,z2),...,(xN,yN,zN)
public java.lang.String getCDLLineValueLabelStyle()
getCDLLineValueLabelStyle
in class NFLineSet
public void setCDLLineValueLabelStyle(java.lang.String cdl)
setCDLLineValueLabelStyle
in class NFLineSet
cdl
-
|
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 |