Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do you select a chart object and create a dialog panel that permits editing of that objects properties?

0
Posted

How do you select a chart object and create a dialog panel that permits editing of that objects properties?

0

The QCChart2D for Java library does not include predefined dialogs for editing chart object properties. The look, feel and details of such dialogs are application specific and it is up to the application programmer to provide these. The property editor tables common to many packages are designed to be used by developers, not end users. You can add your own dialogs that edit the characteristics important to your end users. If you want to select the chart object by pressing a mouse button while the cursor is on the object, use the FindObj class. Override the mouseClicked method and invoke the appropriate dialog panel there. The following example is extracted from the editchart.EditChart example program. class CustomFindObj extends FindObj { CustomFindObj (ChartView component) { super( component); } public void mouseClicked (MouseEvent event) { super.mouseClicked(event); GraphObj selectedObj = getSelectedObject(); AxisDialog axisdialog = null; // Call the appropriate chart object dialog p

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123