public class HyperLink
extends java.lang.Object
A structure to hold the hyperlink defined in the chart.
Modifier and Type | Class and Description |
---|---|
static class |
HyperLink.HintStyle |
Modifier and Type | Field and Description |
---|---|
java.lang.String |
category
Name of the category, a blank name (not null) represent all category
|
static java.lang.String |
DEFAULT_TARGET
Default target of the hyperlink, default is ""
|
java.lang.String |
hint
The hint to show when a right mouse click is done on the link.
|
java.lang.String |
link
The hyperlink which is any valid URL string.
|
java.lang.String |
series
Name of the series, a blank name (not null) represent all series
|
java.lang.String |
sumBy
Name of the sum category for stack chart, a blank name (not null) represent all sum category
|
java.lang.String |
target
Specified target of the hyperlink
|
java.lang.String |
xValue
Value of X axis for surface chart, a string "All" represent all X values
|
java.lang.String |
zValue
Value of Z axis for surface chart, a string "All" represent all Z values
|
Constructor and Description |
---|
HyperLink()
Constructor for HyperLink
|
HyperLink(PickData pd)
Constructor for HyperLink, internal use by chart package only
|
HyperLink(java.lang.String series,
java.lang.String category,
java.lang.String sumBy,
java.lang.String link)
Constructor for HyperLink using the default target window
|
HyperLink(java.lang.String series,
java.lang.String category,
java.lang.String sumBy,
java.lang.String link,
java.lang.String target)
Constructor for HyperLink
|
Modifier and Type | Method and Description |
---|---|
void |
copy(HyperLink cr) |
static java.util.Vector |
copy(java.util.Vector crl) |
static HyperLink |
createHyperLinkForSurfaceChart(java.lang.String xValue,
java.lang.String zValue,
java.lang.String link)
HyperLink constructor for surface chart using the default target window
|
static HyperLink |
createHyperLinkForSurfaceChart(java.lang.String xValue,
java.lang.String zValue,
java.lang.String link,
java.lang.String target)
create HyperLink for surface chart
|
boolean |
equals(java.lang.Object obj)
Check whether two hyperlink are equals, link field are igonred
|
HyperLink |
findNewLink(java.util.Vector vec)
Search for a valid hyperlink define in the Vector of HyperLink using the category, series and
sumBy of this object.
|
HyperLink |
findNewLink(java.util.Vector vec,
boolean forLegend) |
HyperLink.HintStyle |
getHintStyle() |
java.lang.String |
getHintValue()
Return the hint string associated with this hyperlink.
|
int |
hashCode() |
static HyperLink |
read(java.io.DataInput in,
boolean btarget,
boolean isUTF)
Read the link defination
|
void |
readHint(java.io.DataInput in,
boolean isUTF)
Read the hint string from the input file.
|
void |
setHintStyle(HyperLink.HintStyle style)
Sets behavior of the hyperlink hints against the data points hints.
|
void |
setHintValue(java.lang.String hintString)
Set the hint string associated with this hyperlink.
|
java.lang.String |
toString()
Overide object.toString()
|
void |
write(java.io.DataOutput out)
Output the link defination
|
void |
writeHint(java.io.DataOutput out)
Write the hint string to the output file also.
|
public static final java.lang.String DEFAULT_TARGET
public java.lang.String series
public java.lang.String category
public java.lang.String sumBy
public java.lang.String xValue
public java.lang.String zValue
public java.lang.String link
public java.lang.String target
public java.lang.String hint
public HyperLink(PickData pd)
pd
- a PickData objectpublic HyperLink()
public HyperLink(java.lang.String series, java.lang.String category, java.lang.String sumBy, java.lang.String link, java.lang.String target)
series
- series name, a blank name "" represent all seriescategory
- category name, a blank name "" represent all categorysumBy
- sumBy name, a blank name "" represent all sum categorylink
- the hyperlink, can be any valid URL nametarget
- the target windowpublic HyperLink(java.lang.String series, java.lang.String category, java.lang.String sumBy, java.lang.String link)
series
- series name, a blank name "" represent all seriescategory
- category name, a blank name "" represent all categorysumBy
- sumBy name, a blank name "" represent all sum categorylink
- the hyperlink, can be any valid URL namepublic void setHintStyle(HyperLink.HintStyle style)
public HyperLink.HintStyle getHintStyle()
public static HyperLink createHyperLinkForSurfaceChart(java.lang.String xValue, java.lang.String zValue, java.lang.String link, java.lang.String target)
xValue
- value of X Axis, a string "All" represent all values in X axiszValue
- value of Z Axis, a string "All" represent all values in Z axislink
- the hyperlink, can be any valid URL nametarget
- the target window
Note X, Z Axis form horizontal plane for 3D surface chartpublic static HyperLink createHyperLinkForSurfaceChart(java.lang.String xValue, java.lang.String zValue, java.lang.String link)
xValue
- value of X Axis, a string "All" represent all values in X axiszValue
- value of Z Axis, a string "All" represent all values in Z axislink
- the hyperlink, can be any valid URL name
Note X, Z Axis form horizontal plane for 3D surface chartpublic static java.util.Vector copy(java.util.Vector crl)
public void copy(HyperLink cr)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public void write(java.io.DataOutput out) throws java.io.IOException
out
- data stream where the link output tojava.io.IOException
public int hashCode()
hashCode
in class java.lang.Object
public void writeHint(java.io.DataOutput out) throws java.io.IOException
java.io.IOException
public static HyperLink read(java.io.DataInput in, boolean btarget, boolean isUTF) throws java.io.IOException
in
- data stream where the link retrieve frombtarget
- true for file version >= 34java.io.IOException
public void readHint(java.io.DataInput in, boolean isUTF) throws java.io.IOException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
public HyperLink findNewLink(java.util.Vector vec)
vec
- a Vector of object HyperLinkpublic HyperLink findNewLink(java.util.Vector vec, boolean forLegend)
public void setHintValue(java.lang.String hintString)
hintString
- The hint string.IHyperLinkSet.gethHint()
public java.lang.String getHintValue()
IHyperLinkSet.gethHint()