Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[science-iwg] Fwd: How about add title and unit labels in gauge figure?

Is there a nice way to extend the existed org.eclipse.nebula.visualization.widgets.figures.GaugeFigure class to achieve my goal?
Or I have to Create a new Figure that has a filed of original gauge figure and two fields of title & unit labels, and then reintroduce all methods that original gauge figure has? 

Best regards,

Trig

---------- Forwarded message ----------
From: Trig Chen <trigchen@xxxxxxxxx>
Date: 2016-10-27 13:42 GMT+08:00
Subject: How about add title and unit labels in gauge figure?
To: nebula-dev@xxxxxxxxxxx


In the current version of nebula gauge figure, I can't find any methods to set the title and unit of gauge.
In the current implementation of GaugeFigure class, it seems difficult to add additional labels on gauge figure by extending GaugeFigure class.  I've to copy all source codes of GaugeFigure and add two Label fields for title and unit labels and modify the inner GaugeLayout class.

How about add title and unit labels in GaugeFigure class?

Best regards,

Trig


Attachment: gauge.png
Description: PNG image

Attachment: GaugeFigureExt.java
Description: Binary data


Back to the top