Draw graphics
Dear developers
In the new versions of BlackBerry, you can see the memory usage in a line chart. How can we make tables in native code of BlackBerry? When I want to display graphs in a BlackBerry app, I use html5 and the webview. But I think that it would be best to make native. So it is possible, we can do without all ourselfs graph of programming logic?
Thanks in advance
The search of this forum should give a lot of results with different approaches. Try 'graph' for example, which turns to the top of http://supportforums.blackberry.com/t5/Native-Development/Graphs-and-Charts/m-p/2410173#M23758 and http://supportforums.blackberry.com/t5/Native-Development/creating-graphs-in-cascades/m-p/2445271#M2...
Tags: BlackBerry Developers
Similar Questions
-
Set the name of a Visible plot and color lines draw graphic legend of XY
Hi all
Updated 20 plots data on that and I'm initializing the XY graph with 20 plots.
After update of data, I do draw 3 to invisible, now I need to trace the legend to organize such that he should have, plot 0, plot1, plot2, plot4, plot 5... plot19, in the legend of his plot and should not have Plot3.
So while graphic print and consult the chart in pdf format, I can see field only for Visible names draw in the legend of the plot and can avoid the confusion of having plot3 in my graphic impression. (Given that this parcel is invisible and data used pot in chart 3 and so I do not have this as my as well catalogue)
Is there are ways of achieving them, please send your suggestions.
Thank you
Stéphane
You can set the colors of the plot, point style, etc. by program like I did with the name of the parcel. The colors are just an extension of the notion that I have used with the array of names.
-
I have some a matter of aesthetics.
I wrote a program that displays data for binary files. These binaries have blocks of data, an hour or two. Each piece is a playback window, and there are a handful of reading windows per day.
The data view is in effect, what I'm working on now is a more intuitive way to choose what data should be displayed.
My goal is to have a graph of waveform with the X axis represents a day full (0 - hr 24 hr) and is indicated on the chart what time windows are available for review, that is, data have been collected. The background of a "collected" window will be yellow (or another color), while times in the course of which no given is collected will be black. The user will then drag the sliders to select the window of what he or she wants to see the data.
It was quite easy to achieve by drawing the curve a digital signal (1 for data collected during this period, 0 for no) and point-fill with yellow to zero. My only problem with this solution is that filling point appears on the lines of the grid, that does not look quite right.
Y at - it an easy way to get the grid to appear at the top of the charts, or is there a way to programmatically set multiple background colors (it could do the same thing)?
Use the property "draw pictures" and draw your own grid before image.
-
System.Drawing.Graphics
Just out of curiosity, what should you do with this class in terms of design? The LabVIEW <-->.NET interface is not known for his speed, then you can consider using the native drawing tools in LabVIEW.
-->
-
How to draw graphics on video?
Hello, I'm trying to draw a few lines and arcs on a video. I wonder how I can do?
Thank you in advance.
is not possible
-
Math.log draw graphic question
Hello
I am trying to generate a graph to represent exponential function y = loga x that uses the basic y = log10 function x. I generated successfully y = ax , but even using this as the reverse does not work.
It's the old code that I'm editing, and most of the math is done in the class files.
But basically, draw the curve and points, I use:
for (i = 0; i < =(xMax-xMin) /dx; i ++)
{
myX = xMin + i * dx;
If (type == 1)
{
myY = Math.pow (a * myX + b, 2) + c;
}
If (type == 2)
{
myY = a * Math.pow (myX, 2) + b * myX + c;
myY = (myX - b) *(myX-c);
}
If (type is 3)
{
myY = a * (Math.pow (myX + b, 2)) + c;
myY = a * (Math.pow (myX - b, 2)) + c;
}
SH 09SEPT2014
if(type == 4)
{
myY = a * Math.exp (myX);
}
if(type == 5)
{
myY = myX * Math.log (a);
}
//***********************
If ((myY > = yMin) and (myY < = yMax))
{
Data [j] = new Array;
[J] = data [myX, myY];
j = j + 1;
} Else if (j > 0) {}
If (<>[0] [j-1] undefined data)
{
Data [j] = new Array;
Data [j] = [defined, undefined];
j = j + 1;
}
}
myY = myX * Math.log (a);
bad air. If that is supposed to be y = loga x, it should be
myY=Math.log(myX)/Math.log(a);
-
Graphical track of lattice using script ORE... results in no data
Hello
I intend to draw graphical lattice in OBIEE with Ore. The sql script translates no data. Since the graphical lattice requires library (lattice) appear, is there a method to include this or other workaround solution?
R script used is the following
Start
> # Based on the parameters passed scatter plot or trellis
sys.rqScriptDrop ('HCM_TO_TRELLIS');
sys.rqScriptCreate ('HCM_TO_TRELLIS',
"{function (dat, plant, switchcase)}
Ore.Sync)
Ore.Attach)
>
> if(switchcase=="single") {* keep short: code to plot a scatter graph and return PNG as output *}
SQL to extract
} else {}
* Keep it short: code to draw lattice and return PNG as output *.
}
}
');
end;select id, image
* Else part contains the lattice chart which translates as no data.
table (rqTableEval)
cursor (select * from HCM_SCATTER where JOB = "Crane operator").
cursor (select 1 "ore.connect", "Bombay" as "plant", "lattice" as "switchcase" double),
"PNG."
"HCM_TO_TRELLIS"))
Published by: Kedar Gupte on May 20, 2013 07:18
Published by: Kedar Gupte on May 20, 2013 11:47Hi Kedar,
Another detail, it is that you must include the call of graphics in a call 'print '. Try the following:
# R
ore.scriptCreate ("lattice.test2",
function() {Library (Lattice)
Depth<- equal.count(quakes$depth,="" number="8," overlap="">->
print (xyplot (lat ~ long |)) ({(Profondeur, data = tremblements))})
-SQL
Select *.
table (rqEval (NULL,
"PNG."
'lattice.test2'));Kind regards
Mark -
Hi all
I am developing a game. I need to draw graphics on the stage.
I created a file to draw the line. SA fie is as follows
**********************************
package
CustomPuzzle
{
Import flash.display.Shape;
Import flash.display.Sprite;
public class DrawPuzzle extends Sprite
{
public function DrawPuzzle()
{
var mySprite:Sprite = new Sprite();
mySprite.graphics.beginFill (0xFFFFFF);
mySprite.graphics.moveTo (100,100);
mySprite.graphics.lineTo (200,200);
}
}
}
**********************
In my parent file, I created the instance of the class .as as follows
<? XML version = "1.0" encoding = "utf-8"? >
< mx:Application
creationComplete = "CreateCompletePhase ()" xmlns:mx =" " http://www.Adobe.com/2006/MXML "layout =" " absolute "backgroundGradientAlphas =" " [1.0, 1.0] "backgroundGradientColors =" " [#040404, #050303] " >
< mx:Script >
<! [CDATA]
Import CustomPuzzle.DrawPuzzle;
private function CreateCompletePhase():Sub
{
var Cust:DrawPuzzle = new DrawPuzzle();
}
[]] >
< / mx:Script >
< / mx:Application >
But I am not able to draw the line... Please suggest me
You can also simply use it as a file too...
package
CustomPuzzle
{
Import flash.display.CapsStyle;
Import flash.display.Sprite;
Import mx.graphics.Stroke;
public class DrawPuzzle extends Sprite
{
public function DrawPuzzle()
{
graphics.beginFill (0xFFFFFF);
graphics.moveTo (100,100);
graphics.lineTo (200,200);
var STROKE: stroke = new Stroke (0xFFFFFF, 3, 1,false,"normal", CapsStyle.NONE)
Stroke.Apply (Graphics);
graphics.endFill ();
}
}
}
Be sure to call the graphics.endFill () method when you use the beginFill() method because after calling the endFill() method only the graphics are actually drawn or rendered.
Thank you
Jean Claude Chari
-
Hi all
I am writing a script to draw graphics, and I would like to change the type of some of them to the "curve of step. How can I do? Here is my script;
Option Explicit ' force explicit declaration of all variables in a script.
Dim oMySheet, oNewArea, channel, channels
Call View.Sheets.RemoveAll
Set oMySheet = View.Sheets.Add ("graphics Boilers 1-5")
Set oNewArea = oMySheet.ActiveArea
oNewArea.DisplayObjType ("CurveChart2D")
Presets = Data.GetChannels("[1]/*ALL*")
FOR each channel in the channels
Call oNewArea.DisplayObj.Curves.Add ("[1] / Time", Channel.GetReference (eRefTypeIndexName))
"You're looking for boiler 1.
NEXT
Dim Boiler1Term1, Boiler1Term1s
Set Boiler1Term1s = Data.GetChannels ("[1] / * boiler 1 M2G Terminal *")
FOR each Boiler1Term1 in Boiler1Term1s
Call oNewArea.DisplayObj.Curves.Add ("[1] / Time", Boiler1Term1.GetReference (eRefTypeIndexName))
Dim Boiler1GV, Boiler1GVs
Set Boiler1GVs = Data.GetChannels ("[1] / * gas boiler 1 *")
FOR each Boiler1GV in Boiler1GVs
Call oNewArea.DisplayObj.Curves.Add ("[1] / Time", Boiler1GV.GetReference (eRefTypeIndexName))
NEXTView.Sheets ("graphics Boilers 1-5"). Areas ("area: 1"). DisplayObj.YScaling = "n [physical] systems."
Call WndShow ('VIEW', 'Open')
NextThank you very much
Estefania
Hello
There is an object property that specifies the type of curve on a 2D axis chart. You can read about it in the article below;
So should be just... oNewArea.Type = 'Step' curve
Hope this helps, let me know if you have any questions.
Thank you
Josh
-
Hello, I have main Vi containing several sub VI I put some of them to pop up when I press the ok button, I put the Subvi using properties VI to appear when it is called. However he pop up and it is beginning to appear and dusappear very quickly to the evolution of the loop data. What I want to do is make that controllable Subvi so I can close and open easily and avoid the window of twikling happening to me now. I joined picure for part of my main functional schema for vi with Subvi icon getteing data vi main to draw graphics in the Subvi. I hope that this clear.
I talked about the race conditions and then I forgot initialize the variable stop me! You want to write a false value to the variable stop before entering one of the loops for any of them read "true" of the previous run of the application before the producer loop sets false. Modification required:
-
reset the timestamp when event due
Hello
I have an event of this handel button 4 and timeout block draw graphic online with clock and date on axis X
everything is ok, but when I press a button and event reset to 1994 accuerd tme...
Why?
my code here... I have read the information of some global var (as an attachment)
Please help me to solve this problem
Thank you.
Hi meysam_b,
You must connect through all data in all cases if structure.
Repeat this for all the wires passing through a shift register.
The quick way to do this is to connect the tunnels. Right-click in the output terminal, then use menu related entrance Tunnel to a link. As soon as you click on create and wire Unwired case simply click on the tunel associated entry and LabVIEW will automatically create links to you.
This should fix the time stamp of rearmament.
-
Dear all
Can someone guide me how I can apply vector parks Transform and WAVELET TRANSFORM in LabVIEW. I have to draw graphics IQ using the approach of vector of parks. My signal is real-time I collect by DAQ card. I'm using LabVIEW 8.2
Kind regards
Dear Mohammed,
I took a peek at your code, and here is my interpretation of what you want to do. You are to acquire the data of your DAQ hardware inside a while loop you want to run until you press the stop button. Once you have all of your data you want to apply the transform vector of parks (TPV) and a transformation by wavelets.
I could find a sub - vi that performs a Discrete Wavelet transform that I put inside a structure case function tab is selected. However this sub - vi comes with the Toolkit LabVIEW 2010 Advanced Signal Processing, that you may not. In this case, I recommend that you use a mathscript node, if you don't think that an equivalent function in a text according to the programming language. Applies similarly to SWAP from a sub - vi comes with the Module OR SoftMotion which I don't think you have to be.
I hope this has been of use
Concerning
-
Someone please suggest me how can I increase my volume of pmni 10 hp is very low, even at full volume
Hello
I updated the driver
Follow this link
You can try to update the drivers http://h10025.www1.hp.com/ewfrf/wc/softwareCategory?os=4157&lc=en&cc=us&dlc=en&sw_lang=&product=6608...
and after that I can test good volume but notas I hoped.
I made a few changes in vlc media player and after that I am really enjoy movies
for your help, I am writing it
In Vlc
go to audio effect
allow to draw graphic equalizer to the first slide up to 100%
shortly, you can on spatialiaer
As wil also effect nicey
-
a generic error occurred in GDI +.
When tyring to back up my PC got this message: a generic error occurred in GDI +. It seems to be linked to certain drawing applictaions (which I use never!) The details are as follows:-any help apprciated:
The exception text *.
System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI +.
at System.Drawing.Graphics.CheckErrorStatus (Int32, status)
to System.Drawing.Graphics.DrawString (String s, do police, brush, layoutRectangle RectangleF, StringFormat format)
to System.Windows.Forms.Label.OnPaint (a PaintEventArgs e)
to System.Windows.Forms.Control.PaintWithErrorHandling (a PaintEventArgs e, layer Int16, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmPaint (Message & m)
at System.Windows.Forms.Control.WndProc (Message & m)
at System.Windows.Forms.Label.WndProc (Message & m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage (Message & m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc (Message & m)
at System.Windows.Forms.NativeWindow.Callback (IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Loading assemblies *.
mscorlib
Assembly version: 2.0.0.0
Win32 Version: 2.0.50727.3615 (GDR.050727 - 3600)
Code: file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
BBControlCenter
Assembly version: 1.0.2209.20983
Win32 version:
Code: file:///C:/Program%20Files/CMS%20Products/BounceBack%20Express/BBControlCenter.exe
----------------------------------------
System.Windows.Forms
Assembly version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727 - 3000)
Code: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly version: 2.0.0.0
Win32 Version: 2.0.50727.3614 (GDR.050727 - 3600)
Code: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727 - 3000)
Code: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
HiRosie,
There is no harm to try this tool as well. Also, try the built-in tool Windows as I mentioned in my previous post. And yes the fatal errors during the installation are of concern.
You can also try to update .NET framework to the latest version and it is a good idea to run the hard drive or mistakes at this stage.
Reference:
How to perform disk error checking in Windows XP
http://support.Microsoft.com/kb/315265I hope this helps.
Thank you, and in what concerns:
Shekhar S - Microsoft technical support.Visit our Microsoft answers feedback Forum and let us know what you think.
If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly. -
Aero does not work for me, but works with the guest account.
From: Tony Burke
Any suggestions?
From: Paul Smith
There is probably some software running which disables it. Stuff as Java always calls the API legacy to draw graphics that allows Windows to the old mode rescue.
If you click Start, and then type "Defender" Windows Defender should appear, from there, you can use the 'explore software' (under Tools) to try to disable all applications that are running on login.
--
Paul Smith,
Yeovil, United Kingdom.
Microsoft MVP Windows Shell/User.
http://www.dasmirnov.net/blog/
http://www.windowsresource.NET/
* Remove nospam. to reply to the e-mail
Another response of the community of Windows Vista discussion groups
Maybe you are looking for
-
HP PSC 2410-how to find the number of pages
I bought a PSC 2410 opportunity and would like to know the total number of pages. Any ideas?
-
touchpad does not work until running Synaptics touchpad
Hello I bought the Hp pavilion dv6 - 6 c 55 and I have problem with my touchpad. Its functions (scroll, zoom, two finger scrolling,...) fact does not not after cranking up that I run Synaptics touchpad version 7.5. I am using windows 7 Home premium 6
-
My Dell Inspiron 530 sudenlly crashed, I could not start it. I called for the support of a group that I paid for. Technicians helped me start the PC, but they could not fix the screen resolution: in the display settings window, the cursor is on the l
-
How can I chat in pogo games what they say dose not work
I have tried every thing to trouble pogo chat in games it dosent work any help?
-
All sequence presets are missing
So, I recently downloaded and purchased Adobe Premiere and I started it, I created a new project and an open interface. Then, I tried to create a new sequence, but I am not in a position, I tried all the solutions, first of all, go to "File, New, séq