taurus-org / taurus

Moved to https://gitlab.com/taurus-org/taurus
http://taurus-scada.org
43 stars 46 forks source link

JDraw files parsing improvement #46

Open sf-migrator-bot opened 10 years ago

sf-migrator-bot commented 10 years ago

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

Reported by: NexeyaSGara ( http://sf.net/u/nexeya )

sf-migrator-bot commented 10 years ago

Original comment by: cpascual (http://sourceforge.net/u/cpascual)

sf-migrator-bot commented 10 years ago

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.

Original comment by: cpascual (http://sourceforge.net/u/cpascual)

sf-migrator-bot commented 10 years ago

For 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 }

Original comment by: NexeyaSGara (http://sourceforge.net/u/nexeya)

sf-migrator-bot commented 10 years ago

Original comment by: cpascual (http://sourceforge.net/u/cpascual)

sf-migrator-bot commented 10 years ago

There is also the foregroundmapper object to be parsed and used.

Original comment by: NexeyaSGara (http://sourceforge.net/u/nexeya)

sf-migrator-bot commented 9 years ago

Original comment by: cpascual (http://sourceforge.net/u/cpascual)

sf-migrator-bot commented 9 years ago

Ticket moved from /p/sardana/tickets/94/

Can't be converted:

Original comment by: tiagocoutinho (http://sourceforge.net/u/tiagocoutinho)