[英]Tank Level Indicator Image in Swing GUI
In Swing GUI i need to show an image which will indicates the Liquid level of the tank on the basis of dynamic data .It would be like a tank image which will show the liquid which is having.How can i draw liquid level? 在Swing GUI我需要显示这将指示所述箱的 动态数据的基础上。它是像坦克图像,其将显示这是我having.How可以得出液位的液体上的液体水平的图像?
How steampunky are you feeling? 你感觉怎么样? Here's a gauge level
这是一个量表级别
Also consider JFreeChart
, which includes DialPlot
and ThermometerPlot
, shown here . 也可以考虑
JFreeChart
,其中包括DialPlot
和ThermometerPlot
,显示在这里 。 The latter is designed for temperature, but it illustrates liquid levels well. 后者是为温度而设计的,但是很好地说明了液位。
You may want to use a progress bar. 您可能要使用进度条。 Read: http://docs.oracle.com/javase/tutorial/uiswing/components/progress.html
阅读: http : //docs.oracle.com/javase/tutorial/uiswing/components/progress.html
You can do a setOrientation() method to make it vertical. 您可以执行setOrientation()方法使其垂直。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.