public class MouseOverConfiguration extends LocalizedObject implements java.io.Serializable, java.lang.Cloneable
| Modifier and Type | Field and Description |
|---|---|
protected java.awt.Color |
backgroundColor |
protected java.lang.String |
mouseOverText |
protected boolean |
mouseOverVisible |
protected boolean |
preventTextDuplication |
| Constructor and Description |
|---|
MouseOverConfiguration() |
MouseOverConfiguration(java.lang.String mouseOverText)
Constructs a new MouseOverConfiguration using the specified text.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
java.awt.Color |
getBackgroundColor()
Returns the current background color of the mouseover bubble.
|
double |
getMaximumVisibleScale() |
double |
getMinimumVisibleScale() |
java.lang.String |
getMouseOverText()
Returns the mouseover text value for the layer.
|
java.lang.String |
getMouseOverText(java.util.Locale locale)
Returns the mouseover text value for for a specific locale.
|
boolean |
isMouseOverVisible()
Returns true if the mouse over is active.
|
boolean |
isPreventTextDuplication()
Returns whether or not text duplication prevention is enabled.
|
void |
removeTranslationsOtherThan(java.util.Locale[] locales)
Removes any
Locale from this object that are not in the specified locales. |
void |
setBackgroundColor(java.awt.Color backgroundColor)
Sets the background color of the mouse over bubble.
|
void |
setMaximumVisibleScale(double maximumVisibleScale) |
void |
setMinimumVisibleScale(double minimumVisibleScale) |
void |
setMouseOverText(java.lang.String mouseOverText)
Sets the mouseover text with the specified string.
|
void |
setMouseOverText(java.lang.String mouseOverText,
java.util.Locale locale)
Sets the mouseover text with the specified string for a specific locale.
|
void |
setMouseOverVisible(boolean mouseOverVisible)
Enable / disable the mouse over without loosing the current configuration.
|
void |
setPreventTextDuplication(boolean preventTextDuplication)
Enables or disable the text duplication.
|
getAvailableLocales, getTranslation, isTranslationExists, setTranslation, updateTranslationsprotected java.lang.String mouseOverText
protected boolean preventTextDuplication
protected java.awt.Color backgroundColor
protected boolean mouseOverVisible
public MouseOverConfiguration()
public MouseOverConfiguration(java.lang.String mouseOverText)
mouseOverText - the new mouseover textpublic void setMouseOverText(java.lang.String mouseOverText)
mouseOverText - the new mouseover textpublic void setMouseOverText(java.lang.String mouseOverText,
java.util.Locale locale)
mouseOverText - the new mouseover textlocale - public java.lang.String getMouseOverText()
public java.lang.String getMouseOverText(java.util.Locale locale)
locale - public boolean isPreventTextDuplication()
public void setPreventTextDuplication(boolean preventTextDuplication)
preventTextDuplication - the new statepublic java.awt.Color getBackgroundColor()
public void setBackgroundColor(java.awt.Color backgroundColor)
backgroundColor - a new background colorpublic boolean isMouseOverVisible()
public void setMouseOverVisible(boolean mouseOverVisible)
mouseOverVisible - public java.lang.Object clone()
clone in class java.lang.Objectpublic double getMinimumVisibleScale()
public void setMinimumVisibleScale(double minimumVisibleScale)
public double getMaximumVisibleScale()
public void setMaximumVisibleScale(double maximumVisibleScale)
public void removeTranslationsOtherThan(java.util.Locale[] locales)
LocalizedObjectLocale from this object that are not in the specified locales.
locales[0] should be the default languageremoveTranslationsOtherThan in class LocalizedObject