|
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.NFActiveLabel
public class NFActiveLabel
All NetCharts chart objects support the display of informational labels and the ability to create actionable events using the NFActiveLabel object. The default behavior, sometimes referred to as "dwell labels or rollovers", occurs when the pointer (mouse or other pointing device) hovers over a configured data value or other chart element. If a label is defined for that element it will be displayed in a popup label in the style prescribed in the defined NFDwell object; if the user clicks on that element, the URL will be activated.
Active labels consist of three main fields, the label, the URL, and the
target. The label is the text to be displayed when the rollover occurs.
The URL is activated via a showDocument()
using the given
target. If the label is set to "OUTLINE", the chart element will display
an outline on rollover and not a popup. If the target is set to "LOADPARAMS"
the chart will attempt to load CDL parameters from the given URL when the
chart element is clicked on.
Developers have the option to listen for active label behavior via an implementation of a NFChartActionListener object. Note that the NFActiveLabel's label, URL, and target fields are all presented as String objects - Therefore, programmers may use these fields to store any desired information (like a hashtable key) and then override the popup/drilldown behavior for custom needs.
NFDwell
,
NFChartActionListener
Constructor Summary | |
---|---|
NFActiveLabel()
Constructs a default active label |
|
NFActiveLabel(java.lang.String label,
java.lang.String theurl,
java.lang.String thetarget)
Constructs an active label with the given popup label, url, and target. |
Method Summary | |
---|---|
java.lang.String |
getCDL()
Generate CDL parameters representing this active label |
void |
getCDL(java.lang.StringBuffer sb,
boolean includeParams)
Append CDL parameters representing this active label to the given StringBuffer. |
java.lang.String |
getLabel()
Get popup label |
java.lang.String |
getTarget()
Return drilldown target |
java.lang.String |
getURL()
Get string representing the URL. |
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 |
setLabel(java.lang.String label)
Set popup label |
void |
setTarget(java.lang.String target)
Set target for drilldown behavior |
void |
setURL(java.lang.String urlString)
Set string representing the url |
java.lang.String |
toString()
Returns a new String object representing this active label. |
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 |
Constructor Detail |
---|
public NFActiveLabel()
public NFActiveLabel(java.lang.String label, java.lang.String theurl, java.lang.String thetarget)
label
- Popup label text or OUTLINE.theurl
- The URL to activate if the active label is clicked on.thetarget
- The target for the activated URL.Method Detail |
---|
public void setLabel(java.lang.String label)
label
- The popup label text or OUTLINE to outline the item.public java.lang.String getLabel()
public void setURL(java.lang.String urlString)
urlString
- The URL stringpublic java.lang.String getURL()
public void setTarget(java.lang.String target)
target
- Name of window that the drilldown should occur in or LOADPARAMS
for this chart to read parameters from the URL.public java.lang.String getTarget()
public void setCDL(java.lang.String cdl)
setCDL
in interface NFCDLGenerator
cdl
- CDL in the form: ("label","url","target")
public void setCDL(java.lang.String[] elements, int offset)
elements
- Array of parameter elements. This array is expected
to contain consecutive elements containing popup label, drilldown url,
and drilldown url target information.offset
- Offset into the elements array.public void getCDL(java.lang.StringBuffer sb, boolean includeParams)
sb
- Target buffer to append the CDL parametersincludeParens
- If true, this will cause the parameters to be delimited
with parenthesis.public java.lang.String getCDL()
getCDL
in interface NFCDLGenerator
("label","url","target")
public java.lang.String toString()
toString
in interface NFCDLGenerator
toString
in class java.lang.Object
|
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 |