With JDraw, you can map an object to a scalar attribute and assign a custom color map to this object depending on the tango attribute value. Do you think you can add this behaviour?
Inside the JDraw file, it is this section.
backgroundmapper:{ mapping_type:2 mode:0 default:255,255,0 map:1,1,0,255,0 map:2,2,255,0,0 map:3,3,0,0,255 map:4,4,0,0,0 }
And also another one request will be with the Font applied, because sometimes, the value displayed is so small!!! Maybe only the font size and not the complete Font management.
Inside the JDraw file, it is this section.
font:"Dialog",1,21
Thanks
Hi, can you please test it now with the latest code from develop? (i.e. at commit c926151).
Fixing bugs [#117] and [#112] brought several improvements to the display of jdraw files.
Related
OLD Tickets:
#45For the font, there is a big improvement but i think there is a little bug with the resize because it seems to not resize when the value change but just after. So for 1 or 2 second the display is scaled for 2 digits but the number is 3 digits.
It doesn't seem to include the background mapper.
For the backgroung mapper, the correct part in th jdw file is :
extensions:{
val_1:"1"
val_2:"2"
val_3:"3"
val_4:"4"
}
backgroundmapper:{
mapping_type:2
mode:0
default:255,255,0
map:1,1,0,255,0
map:2,2,255,0,0
map:3,3,0,0,255
map:4,4,0,0,0
}
Last edit: Nexeya 2014-03-06
There is also the foregroundmapper object to be parsed and used.
Ticket moved from /p/sardana/tickets/94/
Can't be converted: