|
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.DockableBar
com.softwarefx.chartfx.server.statistical.LegendBox
public class LegendBox
Provides access to the LegendBox object.
The statistical legend is not only used to display statistical analysis values, but also allows your end users to interact with any interactive studies applied to the chart. The supported members of this class allow you to apply visual attributes to the statistical legend.
Constructor Summary | |
---|---|
LegendBox()
|
Method Summary | |
---|---|
void |
dispose()
Releases all resources allocated to the LegendBox object. |
Font |
getFont()
Gets the Font. |
Color |
getTextColor()
Gets the TextColor. |
boolean |
isShowValues()
Gets the ShowValues. |
void |
setFont(Font value)
Sets the font type which will be used in the Legend Box. |
void |
setShowValues(boolean value)
Get or set the boolean to show values in the legend box. |
void |
setTextColor(Color value)
Sets the text color for the legend box. |
void |
sizeToFit()
Calculates and sets the best-fit size for the legend box. |
Methods inherited from class com.softwarefx.chartfx.server.DockableBar |
---|
getBackColor, getBorder, getDock, getHeight, getWidth, getZOrder, isAutoSize, isVisible, resetBackColor, setAutoSize, setBackColor, setBorder, setDock, setHeight, setVisible, setWidth, setZOrder |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LegendBox()
Method Detail |
---|
public void dispose()
Releases all resources allocated to the LegendBox object.
public Font getFont()
Gets the Font. For more detail see setFont(java.awt.Font)
.
public Color getTextColor()
Gets the TextColor. For more detail see setTextColor(java.awt.Color)
.
public boolean isShowValues()
Gets the ShowValues. For more detail see setShowValues(boolean)
.
public void setFont(Font value)
Sets the font type which will be used in the Legend Box.
For more information on the Font class refer to the java.awt.Font Documentation.
public void setShowValues(boolean value)
Get or set the boolean to show values in the legend box.
Values will only be shown for certain Studies.
Study
public void setTextColor(Color value)
Sets the text color for the legend box.
For more information regarding the Color type, please refer to your development environment documentation.
public void sizeToFit()
Calculates and sets the best-fit size for the legend box.
This method is particularly useful when the AutoSize property (of the DockableBar class) is set to False, as it will allow you to recalculate the best-fit size for the selected tool without setting the AutoSize property to True.
|
http://www.softwarefx.com | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |