|
Chart FX 7 for Java Server | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.softwarefx.chartfx.server.maps.LabelLink
public class LabelLink
Provides access to the LabelLink Object
The LabelLink class members are used to configure the LabelLink attributes for the map extension. These LabelLink attributes are used to link map data to regions contained in the SVG file configured for the extension.
The DataText attribute is required when populating the map. If no other LabelLink attributes are configured, it is assumed that all other supported attributes of the LabelLink object are the same:
DataText = DisplayText = SvgText
Constructor Summary | |
---|---|
LabelLink()
|
|
LabelLink(Locale cultInfo)
|
|
LabelLink(String svgText)
|
|
LabelLink(String svgText,
Locale cultInfo)
|
|
LabelLink(String dataText,
String svgText)
|
|
LabelLink(String dataText,
String svgText,
Locale cultInfo)
|
|
LabelLink(String dataText,
String svgText,
String displayText)
|
|
LabelLink(String dataText,
String svgText,
String displayText,
Locale cultInfo)
|
Method Summary | |
---|---|
Locale |
getCulture()
Gets the Culture. |
String |
getDataText()
Gets the DataText. |
String |
getDisplayText()
Gets the DisplayText. |
String |
getSvgText()
Gets the SvgText. |
void |
setCulture(Locale value)
Allows you to localize a LabelLink object for a specific language and region. |
void |
setDataText(String value)
Sets the text string associated with the map data. |
void |
setDisplayText(String value)
Sets the text label to be displayed for a region in a map. |
void |
setSvgText(String value)
Sets the text label associated with the regions configured in the SVG map file. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LabelLink()
public LabelLink(String svgText)
public LabelLink(Locale cultInfo)
public LabelLink(String dataText, String svgText)
public LabelLink(String svgText, Locale cultInfo)
public LabelLink(String dataText, String svgText, String displayText)
public LabelLink(String dataText, String svgText, Locale cultInfo)
public LabelLink(String dataText, String svgText, String displayText, Locale cultInfo)
Method Detail |
---|
public Locale getCulture()
Gets the Culture. For more detail see setCulture(java.util.Locale)
.
public String getDataText()
Gets the DataText. For more detail see setDataText(java.lang.String)
.
public String getDisplayText()
Gets the DisplayText. For more detail see setDisplayText(java.lang.String)
.
public String getSvgText()
Gets the SvgText. For more detail see setSvgText(java.lang.String)
.
public void setCulture(Locale value)
Allows you to localize a LabelLink object for a specific language and region.
If no attributes are set using this property or the Chart
Class
Chart.setCulture(java.util.Locale)
property, then Chart FX inherits the system culture.
When setting this property, you may need the Language Code and/or Country Code constants for the desired culture. For more information, please refer to the java.util.Locale documentation.
Map.setCulture(java.util.Locale)
,
LabelLinkCollection.setCulture(java.util.Locale)
,
Map
,
LabelLinkCollection
public void setDataText(String value)
Sets the text string associated with the map data.
By default, Chart FX Maps assumes that labels passed with chart data match the text labels that exist in the configured SVG Map.setMapSource(java.lang.String)
. For instances when these labels do not correspond, a conversion table is used to connect the data labels to SVG labels. This table is referred to as the LabelLinks collection. Each LabelLinks object includes 3 vital attributes: DataText, setDisplayText(java.lang.String)
and setSvgText(java.lang.String)
.
Using this property, developers may set the DataText attribute for a LabelLink Object.
If there is only a small number of LabelLink objects that need to be added to this conversion table, it may be better to add them using the API. However, developers also have the option of creating an XML file with all the needed label links and using the Map.setLabelLinkFile(java.lang.String)
property to configure them for the map.
The Map.getLabelLinks()
property of the Map class is used to access the LabelLinksCollection class.
setDisplayText(java.lang.String)
,
setSvgText(java.lang.String)
,
Map.setLabelLinkFile(java.lang.String)
,
Map.getLabelLinks()
,
Map
public void setDisplayText(String value)
Sets the text label to be displayed for a region in a map.
By default, Chart FX Maps assumes that labels passed with chart data match the text labels that exist in the configured SVG Map.setMapSource(java.lang.String)
. For instances when these labels do not correspond, a conversion table is used to connect the data labels to SVG labels. This table is referred to as the LabelLinks collection. Each LabelLinks object includes 3 vital attributes: setDataText(java.lang.String)
, DisplayText and setSvgText(java.lang.String)
.
Using this property, developers may set the DisplayText attribute for a LabelLink Object.
If there is only a small number of LabelLink objects that need to be added to this conversion table, it may be better to add them using the API. However, developers also have the option of creating an XML file with all the needed label links and using the Map.setLabelLinkFile(java.lang.String)
property to configure them for the map.
The Map.getLabelLinks()
property of the Map class is used to access the LabelLinksCollection class.
setDataText(java.lang.String)
,
#setDataSvg
,
Map.getLabelLinks()
,
Map
public void setSvgText(String value)
Sets the text label associated with the regions configured in the SVG map file.
By default, Chart FX Maps assumes that labels passed with chart data match the text labels that exist in the configured SVG Map.setMapSource(java.lang.String)
. For instances when these labels do not correspond, a conversion table is used to connect the data labels to SVG labels. This table is referred to as the LabelLinks collection. Each LabelLinks object includes 3 vital attributes: setDataText(java.lang.String)
, setDisplayText(java.lang.String)
and SvgText.
Using this property, developers may set the SvgText attribute for a LabelLink Object.
If there is only a small number of LabelLink objects that need to be added to this conversion table, it may be better to add them using the API. However, developers also have the option of creating an XML file with all the needed label links and using the Map.setLabelLinkFile(java.lang.String)
property to configure them for the map.
The Map.getLabelLinks()
property of the Map class is used to access the LabelLinksCollection class.
setDataText(java.lang.String)
,
setDisplayText(java.lang.String)
,
Map.setLabelLinkFile(java.lang.String)
,
Map.getLabelLinks()
,
Map.setMapSource(java.lang.String)
,
Map
|
http://www.softwarefx.com | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |