search for: setcolor

Displaying 13 results from an estimated 13 matches for "setcolor".

2011 Jul 18
0
[PATCH node] fix ipv6 support in dns/ntp callbacks
...) is None and not self.dns_host1.value() == "": if not is_valid_ipv4(self.dns_host1.value()): - warn = 1 + if not is_valid_ipv6(self.dns_host1.value()): + warn = 1 if warn == 1: self.screen.setColor("BUTTON", "black", "red") self.screen.setColor("ACTBUTTON", "blue", "white") @@ -244,7 +245,8 @@ class NodeConfigScreen(): warn = 0 if not self.dns_host2.value() is None and not self.dns_host2.value() =...
2011 Aug 03
0
[PATCH] update valid_hostname regex checks
...if not is_valid_hostname(self.ntp_host1.value()): + if not is_valid_ipv6(self.ntp_host2.value()): + if not is_valid_hostname(self.ntp_host2.value()): warn = 1 if warn == 1: self.screen.setColor("BUTTON", "black", "red") @@ -506,11 +506,12 @@ class NodeConfigScreen(): self.reset_screen_colors() def valid_hostname_callback(self): - if not is_valid_hostname(self.net_hostname.value()): - self.screen.setColor("BUT...
2005 Aug 09
3
file
...00); n = (int) (Math.random() * 260 - 100); o = (int) (Math.random() * 240 - 100); // g.drawImage(img1, x, y, 120, 150, this); g.drawImage(img2, m, n, 60, 40, this); // g.drawImage(img3, k, o, 140, 170, this); g.fillOval(225, 620, 150, 150); g.setColor(Color.red); g.fillOval(c, d, 20, 20); g.setColor(Color.BLACK); g.fillRoundRect(293, 530, 15, 150, 10, 10); } public void run() { while (true) { // a1.play(); m += 10; d -= 10; if (d == 0) { d...
1999 Nov 23
1
postscript colors
Is color specification like this available in R for setting postscript colors? > hue <- c(0, seq(from = 0, by = 1/(nclass), length = nclass)) > sat <- c(0, rep(1.0, nclass)) > bri <- c(0, rep(1.0, nclass)) > zcolors <- cbind(hue, sat, bri) > ps.options (setcolor=ps.setcolor.hsb,colors=zcolors) -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subjec...
1997 Jul 30
0
R-alpha: line types
...1,0,2,0.5) abline(v=2) rect(3,0,4,0.5) Here are some diffs (now all I have to do is wade through and get lwd working properly ...) *** devX11.c.orig Tue Jul 29 16:44:19 1997 --- devX11.c Tue Jul 29 16:57:55 1997 *************** *** 671,676 **** --- 671,677 ---- } if (fg != NA_INTEGER) { SetColor(fg); + SetLinetype(GP->lty); XDrawRectangle(display, window, wgc, (int)x0, (int)y0, (int)x1 - (int)x0, (int)y1 - (int)y0); } *** devPS.c.orig Sun Jul 6 21:29:03 1997 --- devPS.c Tue Jul 29 17:01:05 1997 *************** *** 433,438 **** --- 433,439 ---- } if(fg != NA_INTEGER)...
2005 Jun 28
1
Thomas script.aculo.us (important bug and add ons)
...=(new Effect2.Base()).extend({ initialize:function(){ this.element=$(arguments[0]); options={ from:0.0, to:1.0, fromColor:new Color("FFFFFF"), toColor:new Color("FFFFCC") }.extend(arguments[1]||{}); this.start(options); }, update:function(position){ this.setColor(position); }, setColor:function(position){ var r,g,b,color; var o=this.options; r=parseInt((o.toColor.r-o.fromColor.r)*position)+o.fromColor.r; g=parseInt((o.toColor.g-o.fromColor.g)*position)+o.fromColor.g; b=parseInt((o.toColor.b-o.fromColor.b)*position)+o.fromColor.b; color=new Col...
2011 Aug 03
0
[PATCH] display ipv6 address in networking details page, also fix ipv6 netmask configurations.
...id_ipv6(self.ipv6_netdevmask.value()): - warn = 1 + try: + if not int(self.ipv6_netdevmask.value()) in range(1,128): + warn = 1 + except: + warn = 1 if warn == 1: self.screen.setColor("BUTTON", "black", "red") self.screen.setColor("ACTBUTTON", "blue", "white") - ButtonChoiceWindow(self.screen, "Network", "Invalid IP Address", buttons = ['Ok']) + Button...
2011 Aug 03
1
[PATCH] display ipv6 address in networking details page, also fix ipv6 netmask configurations
...id_ipv6(self.ipv6_netdevmask.value()): - warn = 1 + try: + if not int(self.ipv6_netdevmask.value()) in range(1,128): + warn = 1 + except: + warn = 1 if warn == 1: self.screen.setColor("BUTTON", "black", "red") self.screen.setColor("ACTBUTTON", "blue", "white") - ButtonChoiceWindow(self.screen, "Network", "Invalid IP Address", buttons = ['Ok']) + Button...
2008 Nov 28
1
Unable to plot or analyse phylogeny (PR#13345)
...on; labelBranchLengths off; centerBrLenLabels on; showBrLensUnspecified on; showBrLenLabelsOnTerminals on; setBrLenLabelColor 0 0 255; setNumBrLenDecimals 6; desuppress; getEmployee #mesquite.trees.BasicDrawTaxonNames.BasicDrawTaxonNames; tell It; setColor Black; toggleColorPartition on; toggleShadePartition off; toggleNodeLabels on; toggleCenterNodeNames off; toggleShowNames on; namesAngle ?; endTell; endTell; setTreeNumber 1; setTree '(((((((1:5.0,2:5.0,3:5.0):2.0,(4:5.0):2.0,(5:5.0):2.0,(6...
2009 May 15
1
[PATCH server] First round of (largely) cosmetic changes to flexchart.
...ar maxValue:Number = dataSeries.getMaxValue(); var scale:Number = maxValue; yScale.setMax(maxValue); @@ -264,12 +308,18 @@ package org.ovirt.charts { var value:Number = dataPoint.getValue(); var bar:SingleBar = new SingleBar(dataPoint,scale); + bar.setColor(Constants.summaryBarColor) + bar.setLitColor(Constants.summaryBarLitColor) + chartArea.addChild(bar); bar.width = barWidth; bar.addEventListener(MouseEvent.CLICK, ApplicationBus.instance().mainChartBarClickAction);...
1999 Feb 16
1
Missing tick marks bug on alpha solved
...------- should be int! x11Desc *xd = (x11Desc *) dd->deviceSpecific; /* In-place conversion ok */ GConvert(&x1, &y1, coords, DEVICE, dd); GConvert(&x2, &y2, coords, DEVICE, dd); xx1 = (int) x1; yy1 = (int) y1; xx2 = (int) x2; yy2 = (int) y2; SetColor(dd->gp.col, dd); SetLinetype(dd->gp.lty, dd->gp.lwd, dd); XDrawLine(display, xd->window, xd->wgc, xx1, yy1, xx2, yy2); XSync(display, 0); } -- George White <aa056 at chebucto.ns.ca> tel: 902.426.8509 Bedford Inst. of Oceanography, Nova Scotia, Canada. On Thu, 1...
2007 Mar 23
0
[917] branches/wxruby2/wxwidgets_282/swig/classes/include/wxAuiDockArt.h: Fix spelling mistake from wxWidgets headers
...SetColour(int id, const wxColor& colour) = 0; </del><ins>+ virtual void SetColour(int id, const wxColour& colour) = 0; </ins><span class="cx"> wxColour GetColor(int id) { return GetColour(id); } </span><span class="cx"> void SetColor(int id, const wxColour& color) { SetColour(id, color); } </span><span class="cx"> </span></span></pre> </div> </div> </body> </html>
2007 Mar 22
0
[916] branches/wxruby2/wxwidgets_282: More Wx::AUI classes, event hooks and sample
...t new_val) = 0; + virtual void SetFont(int id, const wxFont& font) = 0; + virtual wxFont GetFont(int id) = 0; + virtual wxColour GetColour(int id) = 0; + virtual void SetColour(int id, const wxColor& colour) = 0; + wxColour GetColor(int id) { return GetColour(id); } + void SetColor(int id, const wxColour& color) { SetColour(id, color); } + + virtual void DrawSash(wxDC& dc, + wxWindow* window, + int orientation, + const wxRect& rect) = 0; + + virtual void DrawBackground(wxDC& dc, +...