Inconsistency in colors
Inconsistency in colors
We have noticed, that TChart.background uses SWT colors while the rest uses your own color class. Is there a reason behind that?
Re: Inconsistency in colors
Hello,
Yes, not sure why it is the way it is. Internally it calls the TeeChart Color class.
ie.
Perhaps when the SWT version was being designed originally there was a need for SWT color to be set and simply it wasn't changed to the TeeChart colour once code had consolidated.
Regards,
Marc
Yes, not sure why it is the way it is. Internally it calls the TeeChart Color class.
ie.
Code: Select all
public void setBackground(Color value) {
chart.getPanel().setColor(new com.steema.teechart.drawing.Color(value.getRed(), value.getGreen(), value.getBlue()));
}
Regards,
Marc
Steema Support
Re: Inconsistency in colors
Just to add a note.
TChart class in TeeChart Java SWT inherits from Composite which inherits getBackground and setBackground from Control.
TChart class in TeeChart Java SWT inherits from Composite which inherits getBackground and setBackground from Control.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |