Package quadbase.util
Class HyperLink
java.lang.Object
quadbase.util.HyperLink
HyperLink
A structure to hold the hyperlink defined in the chart.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionName of the category, a blank name (not null) represent all categorystatic final StringDefault target of the hyperlink, default is ""The hint to show when a right mouse click is done on the link.The hyperlink which is any valid URL string.Name of the series, a blank name (not null) represent all seriesName of the sum category for stack chart, a blank name (not null) represent all sum categorySpecified target of the hyperlinkValue of X axis for surface chart, a string "All" represent all X valuesValue of Z axis for surface chart, a string "All" represent all Z values -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for HyperLinkConstructor for HyperLink using the default target windowConstructor for HyperLinkConstructor for HyperLink, internal use by chart package only -
Method Summary
Modifier and TypeMethodDescriptionstatic Vectorvoidstatic HyperLinkcreateHyperLinkForSurfaceChart(String xValue, String zValue, String link) HyperLink constructor for surface chart using the default target windowstatic HyperLinkcreateHyperLinkForSurfaceChart(String xValue, String zValue, String link, String target) create HyperLink for surface chartbooleanCheck whether two hyperlink are equals, link field are igonredfindNewLink(Vector vec) Search for a valid hyperlink define in the Vector of HyperLink using the category, series and sumBy of this object.findNewLink(Vector vec, boolean forLegend) Return the hint string associated with this hyperlink.inthashCode()static HyperLinkRead the link definationvoidRead the hint string from the input file.voidsetHintStyle(HyperLink.HintStyle style) Sets behavior of the hyperlink hints against the data points hints.voidsetHintValue(String hintString) Set the hint string associated with this hyperlink.toString()Overide object.toString()voidwrite(DataOutput out) Output the link definationvoidwriteHint(DataOutput out) Write the hint string to the output file also.
-
Field Details
-
DEFAULT_TARGET
Default target of the hyperlink, default is ""- See Also:
-
series
Name of the series, a blank name (not null) represent all series -
category
Name of the category, a blank name (not null) represent all category -
sumBy
Name of the sum category for stack chart, a blank name (not null) represent all sum category -
xValue
Value of X axis for surface chart, a string "All" represent all X values -
zValue
Value of Z axis for surface chart, a string "All" represent all Z values -
link
The hyperlink which is any valid URL string. If the extension is .cht or .tpl then current chart will replace by new one. For other extension the browser will load that page. -
target
Specified target of the hyperlink -
hint
The hint to show when a right mouse click is done on the link.
-
-
Constructor Details
-
HyperLink
Constructor for HyperLink, internal use by chart package only- Parameters:
pd- a PickData object
-
HyperLink
public HyperLink()Constructor for HyperLink -
HyperLink
Constructor for HyperLink- Parameters:
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 window
-
HyperLink
Constructor for HyperLink using the default target window- Parameters:
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 name
-
-
Method Details
-
setHintStyle
Sets behavior of the hyperlink hints against the data points hints. REPLACE - data point hint is replaced by hyperlink hint. (default) ATTACH_START - hyperlink hint is placed at the start of the data point hint. ATTACH_END - hyperlink hint is appended to the data point hint. -
getHintStyle
-
createHyperLinkForSurfaceChart
public static HyperLink createHyperLinkForSurfaceChart(String xValue, String zValue, String link, String target) create HyperLink for surface chart- Parameters:
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 chart
-
createHyperLinkForSurfaceChart
HyperLink constructor for surface chart using the default target window- Parameters:
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 chart
-
copy
-
copy
-
equals
Check whether two hyperlink are equals, link field are igonred -
write
Output the link defination- Parameters:
out- data stream where the link output to- Throws:
IOException
-
hashCode
public int hashCode() -
writeHint
Write the hint string to the output file also.- Throws:
IOException
-
read
Read the link defination- Parameters:
in- data stream where the link retrieve frombtarget- true for file version >= 34- Returns:
- the hyperlink
- Throws:
IOException
-
readHint
Read the hint string from the input file.- Throws:
IOException
-
toString
Overide object.toString() -
findNewLink
Search for a valid hyperlink define in the Vector of HyperLink using the category, series and sumBy of this object. If multiple links are found that match the criteria in the vector. The most specialize link will return.- Parameters:
vec- a Vector of object HyperLink- Returns:
- a hyperlink, the url is store in the link of it
-
findNewLink
-
setHintValue
Set the hint string associated with this hyperlink.- Parameters:
hintString- The hint string.- See Also:
-
getHintValue
Return the hint string associated with this hyperlink.- Returns:
- The hint value.
- See Also:
-