|
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
public abstract class DockableBar
Provides access to the DockableBar object, which is the parent class of objects such as the LegendBox, the ToolBar, and the DataGrid.
The background color may be modified using the setBackColor(java.awt.Color)
property.
Using the setDock(com.softwarefx.chartfx.server.DockArea)
property, you can dock the bar in different areas of the Chart
.
You must make the bar setVisible(boolean)
in order to see any of the visual attributes configured using the properties of the
Class
.
The following properties of the Chart
return objects inheriting from DockableBar: Chart.getLegendBox()
, Chart.getToolBar()
, Chart.getMenuBar()
, and Chart.getDataGrid()
.
Dragging the legend box (end user) is not supported but may be positioned in the chart area using the setDock(com.softwarefx.chartfx.server.DockArea)
property. Functionality has been added to the legends to enhance the appearance in a docked position (left, right, top or bottom). For example, you can include borders around a legend or leave them in the default compacted view. By modifying visual attributes, the legend box appears to be floating but it is attach to a logical position that will change as the chart size changes.
Constructor Summary | |
---|---|
DockableBar()
|
Method Summary | |
---|---|
Color |
getBackColor()
Gets the BackColor. |
DockBorder |
getBorder()
Gets the Border. |
DockArea |
getDock()
Gets the Dock. |
int |
getHeight()
Gets the Height. |
int |
getWidth()
Gets the Width. |
int |
getZOrder()
Gets the ZOrder. |
boolean |
isAutoSize()
Gets the AutoSize. |
boolean |
isVisible()
Gets the Visible. |
void |
resetBackColor()
Resets the BackColor of DockableBar to the default. |
void |
setAutoSize(boolean value)
Allows Chart FX for Java to calculate the best size according to the tool position. |
void |
setBackColor(Color value)
Sets a value for the background color of a dockable bar. |
void |
setBorder(DockBorder value)
Allows the developer to specify the border style. |
void |
setDock(DockArea value)
Sets the position of the data grid. |
void |
setHeight(int value)
Sets the height of the dockable bar in pixels. |
void |
setVisible(boolean value)
Sets a value indicating the Dockablebar object should be shown or not. |
void |
setWidth(int value)
Sets the height in pixels. |
void |
setZOrder(int value)
Sets the z-order for a dockable bar. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DockableBar()
Method Detail |
---|
public Color getBackColor()
Gets the BackColor. For more detail see setBackColor(java.awt.Color)
.
public DockBorder getBorder()
Gets the Border. For more detail see setBorder(com.softwarefx.chartfx.server.DockBorder)
.
public DockArea getDock()
Gets the Dock. For more detail see setDock(com.softwarefx.chartfx.server.DockArea)
.
public int getHeight()
Gets the Height. For more detail see setHeight(int)
.
public int getWidth()
Gets the Width. For more detail see setWidth(int)
.
public int getZOrder()
Gets the ZOrder. For more detail see setZOrder(int)
.
public boolean isAutoSize()
Gets the AutoSize. For more detail see setAutoSize(boolean)
.
public boolean isVisible()
Gets the Visible. For more detail see setVisible(boolean)
.
public void resetBackColor()
Resets the BackColor of DockableBar to the default.
public void setAutoSize(boolean value)
Allows Chart FX for Java to calculate the best size according to the tool position.
When the user moves a dockable bar from one docked position to another (e.g. Docked-Right to Docked-Top), the object must be resized accordingly to fit. When this method is set to True, you will not need to set the Width or Height as Chart FX for Java will calculate those values for you.
The setWidth(int)
and setHeight(int)
properties may be used to manually control the size of a DockableBar, however they should only be used when the AutoSize is configured to False.
The setDock(com.softwarefx.chartfx.server.DockArea)
property may be used to position a DockableBar object in a chart.
setWidth(int)
,
setHeight(int)
,
setDock(com.softwarefx.chartfx.server.DockArea)
,
LegendBox
public void setBackColor(Color value)
Sets a value for the background color of a dockable bar.
The effect of this property is to change the background behind any dockable bar object such as the DataGrid.
Named color are supported (e.g. Red), to use Hex notation you have to use quotes (e.g. "#FF00FF").
For more information regarding the Color type, please refer to the Java API Documentation.
setBorder(com.softwarefx.chartfx.server.DockBorder)
,
setWidth(int)
,
setHeight(int)
,
setDock(com.softwarefx.chartfx.server.DockArea)
public void setBorder(DockBorder value)
Allows the developer to specify the border style.
Allows you to specify the border for any DockableBar to be External, Internal or None.
Chart.setBorder(com.softwarefx.chartfx.server.adornments.IBorderAdornment)
,
setDock(com.softwarefx.chartfx.server.DockArea)
public void setDock(DockArea value)
Sets the position of the data grid.
All tools in
Chart FX for Java
are created (by default) with the setAutoSize(boolean)
property set to True. When this method is set to True and the end user moves a Dockable Bar to another position,
Chart FX for Java
will calculate the appropriate width and height.
setAutoSize(boolean)
,
setWidth(int)
,
setHeight(int)
public void setHeight(int value)
Sets the height of the dockable bar in pixels.
When you modify the height, the setAutoSize(boolean)
property will be set to False.
Use the Height property to configure the height for the dockable bar object.
setDock(com.softwarefx.chartfx.server.DockArea)
,
setAutoSize(boolean)
,
setWidth(int)
,
LegendBox
public void setVisible(boolean value)
Sets a value indicating the Dockablebar object should be shown or not.
Hiding a DockableBar object not destroy or lose previous settings assigned by other properties.
Chart.getDataGrid()
,
Chart.getToolBar()
,
Chart.getMenuBar()
,
Chart.getLegendBox()
,
Chart
,
ToolBar
public void setWidth(int value)
Sets the height in pixels.
When you modify the width, the setAutoSize(boolean)
property will be set to False.
setHeight(int)
,
setDock(com.softwarefx.chartfx.server.DockArea)
,
setAutoSize(boolean)
public void setZOrder(int value)
Sets the z-order for a dockable bar.
Using this property, developers can control the order of Dockable bar objects in a chart.
|
http://www.softwarefx.com | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |