Maruthi Krishna

Maruthi Krishna

500 Articles Published

Articles by Maruthi Krishna

Page 18 of 50

How to modify the length of the tick marks in JavaFX XY charts?

Maruthi Krishna
Maruthi Krishna
Updated on 20-May-2020 565 Views

The javafx.scene.XYChart class is the base class of all the charts that are plotted in an x-y pane. By instantiating the subclasses of this class you can create various XY charts namely − line chart, area chart, bar chart, pie chart, bubble chart, scatter chart, etc.In the XY chart, the given data points are plotted on an XY plane. Along the x and y axes, you will have the tick marks and tick labels. The tick marks represent various values with uniform intervals.Changing the length of the tick marksThe javafx.scene.chart.Axis class (abstract) is the base class of all the axes ...

Read More

How to change the color and font of the tick marks in a JavaFX XY chart?

Maruthi Krishna
Maruthi Krishna
Updated on 20-May-2020 891 Views

The javafx.scene.XYChart class is the base class of all the charts that are plotted in an x-y pane. By instantiating the subclasses of this class you can create various XY charts namely − line chart, area chart, bar chart, pie chart, bubble chart, scatter chart, etc.In the XY chart, the given data points are plotted on an XY plane. Along the x and y axes, you will have the tick marks and tick labels. The labels specify the names (or numbers) of the values.Changing the color of the tick labelsThe javafx.scene.chart.Axis class (abstract) is the base class of all the ...

Read More

How to create a bubble chart with two parameters in JavaFX?

Maruthi Krishna
Maruthi Krishna
Updated on 20-May-2020 185 Views

The bubble chart accepts a series of data points (x, y) as input values and, creates bubbles for the data points in the given series. In JavaFX, you can create a bubble chart by instantiating the javafx.scene.chart.BubbleChart class.Generally, in all X-Y charts, the data points plot two values (x, y). In the bubble chart, there is a third value which is represented by the radius of the bubble. This chart comes handy while plotting the data points in 3 dimensions.Anyhow, it is not mandatory to have the third value, it is only optional. Like any other XY chart, you can ...

Read More

How to move the x-axis to top in a JavaFX line chart?

Maruthi Krishna
Maruthi Krishna
Updated on 20-May-2020 513 Views

Inline chart, the data values have represented a series of points connected by a line. In JavaFX, you can create a line chart by instantiating the javafx.scene.chart.LineChart class.By default, A JavaFX Line chart contains symbols pointing out the values in the series along the x-axis. Typically, these are small circles.The X-Axis on the bottom in the plot.Y-Axis on the left.Moving the X-Axis to topThe Axis class (superclass of all axes) has a property named side, this specifies the side of the plot at which you need to have the current axis (left, right, top-bottom). You can set the value to ...

Read More

What are symbols in a JavaFX line chart. How to disable them?

Maruthi Krishna
Maruthi Krishna
Updated on 20-May-2020 1K+ Views

Inline chart the data values have represented a series of points connected by a line. In JavaFX, you can create a line chart by instantiating the javafx.scene.chart.LineChart class.By default, A JavaFX Line chart contains symbols pointing out the values in the series along the x-axis. Typically, these are small circles.The X-Axis on the bottom in the plot.Y-Axis on the left.Disabling the symbolsThe LineChart class has a property named createSymbols (boolean), which specifies whether to create symbols for data items in the chart. You can set values to this method using the setCreateSymbols() method.To remove symbols from a line chart you ...

Read More

How to set the slices of a JavaFX PieChart in anti-clockwise direction?

Maruthi Krishna
Maruthi Krishna
Updated on 20-May-2020 195 Views

The pie chart is a data a circular statistical graphic, where the data values are represented as the slices of a circle. Each slice is differentiated from other (typically by color). In JavaFX, you can create a pie chart by instantiating the javafx.scene.chart.PieChart class.Changing the direction of the slicesThe angle at which the first slice of a PieChart is started is known as start angle and you can set this value using the setStartAngle() method (by default, 0).The PieChart class provides a property (boolean) known as clockWise specifying whether the slices of the current PieChart are in a clockwise direction ...

Read More

How to change the position of the legend in a PieChart in JavaFX?

Maruthi Krishna
Maruthi Krishna
Updated on 20-May-2020 905 Views

In the pie chart, we represent the data values as slices of a circle. Each slice is differentiated from other (typically by color). In JavaFX, you can create a pie chart by instantiating the javafx.scene.chart.PieChart class.By default, a JavaFX pie chart contains labels of the slices and a legend − a bar with colors specifying the category represented by each color.Changing the position of the Legend −The PieChart class has a property named legendSide (inherited from the Chart class). This specifies the position of the legend in the chart (left, right, top-bottom). You can set the value to this property ...

Read More

How to create a SplitMenuButton in JavaFX?

Maruthi Krishna
Maruthi Krishna
Updated on 20-May-2020 699 Views

A menu is a list of options or commands presented to the user, typically menus contain items that perform some action. The contents of a menu are known as menu items and a menu bar holds multiple menus.A button controls in user interface applications, in general, on clicking the button it performs the respective action.A SplitMenuButton provides the functionality of both buttons and a Menu. It is divided into two areas − action area and, menu area. On clicking either of these areas it shows the respective functionality.You can create a split menu button by instantiating the javafx.scene.control.SplitMenuButton class.ExampleThe following ...

Read More

How to create a MenuButton in JavaFX?

Maruthi Krishna
Maruthi Krishna
Updated on 20-May-2020 781 Views

A menu is a list of options or commands presented to the user, typically menus contain items that perform some action. The contents of a menu are known as menu items and a menu bar holds multiple menus.A button controls in user interface applications, in general, on clicking the button it performs the respective action.A MenuButton is simply, a button that shows a menu on clicking it. You can create a menu button by instantiating the javafx.scene.control.MenuButton class.To populate its menu, create a required number of objects of the MenuItem class, add them to the observable list of MenuButton as −menuButton.getItems(item1, ...

Read More

How to disable a menu item in JavaFX

Maruthi Krishna
Maruthi Krishna
Updated on 20-May-2020 2K+ Views

A menu is a list of options or commands presented to the user, typically menus contain items that perform some action. The contents of a menu are known as menu items and a menu bar holds multiple menus.In JavaFX a menu is represented by the javafx.scene.control.Menu class, a menu item is represented by the javafx.scene.control.MenuItem class, And, the javafx.scene.control.MenuBar class represents a menu bar.To create a menu −Instantiate the Menu class.Create a required number of menu items by instantiating the MenuItem class.Add all the menu items to the menu as −fileMenu.getItems().addAll(item1, item2, item3);Create a menu bar by instantiating the MenuBar ...

Read More
Showing 171–180 of 500 articles
« Prev 1 16 17 18 19 20 50 Next »
Advertisements