Problem Axis Image on Graph

Hi,
I'm having a problem with displaying an axis on a graph. The graph is composed of layered panes and I need to display a mathematical formula on one of the axis. This was previously done using an image...
A product evolution requires the modification of the fonts used when printing the graphs, obviously this will not be compatible with a static image. Does anyone have any ideas on how do display the text highlighted in the image shown, in a manner that allows for the changing of fonts in a dynamic manner?
[ScreenShot001.jpg|http://www.maths.tcd.ie/~moroneyk/ScreenShot001.jpg|ScreenShot001.jpg]
Thanks in advance,
Kevin

That is actually rather simple: you use animation techniques, but rather than using an animation loop to change on a set interval, you change as you are ready to show your new screen. You do this with a repaint() request.
I usually like to implement this by doing my rendering to a BufferedImage, and then a paint override in my display object.
public void paintComponent(Graphics g){
  g.super();
  g.drawImage(bi, 0, 0, this); //bi is a instance scoped BufferedImage that I use for rendering.
}

Similar Messages

  • How to put images on graph?

    Hello,
    I want to put images on graph whereever I want.
    I have TDMS file like this.
    My "x Axis" is (km) and "y axis" is MKTY.  If MKTY is 3 I want to put image3 on graph places in the y-axis. If MKTY is 2 then I put "image2" on graph.
    I uploaded my TDR file.
    Yasemin Barutçu
    Electrical And Electronics Engineer
    Attachments:
    graph.zip ‏5 KB

    For me, not. But yes I have to do this. Maybe I manual have a table which includes the y axis coordinates. X axis is dicrete then when I get the value 2 I will look at its y axis and take the coordinates of the y-axis corresponds to the table
    Is it difficult? 
    Yasemin Barutçu
    Electrical And Electronics Engineer

  • Problem with Image file

    Hi,
    Iam facing with one problem.I have one swing interface through which I can upload files(back end servlet programme).Now I can upload all types of file but problem with image file it uploading perfectly that means size of the uploaded file is ok but its format damaged.It can not be open.My backend servlet programme is ok coz i tested it with html form it is working perfectly.Problem with swing interface.Plz guide me where I done a mistake.Below r my codes:-
    ImageIcon Upload=new ImageIcon("images/Upload.gif");
         Button=new JButton(Upload);
         Button.setToolTipText("Upload");
    Button.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent e)
              int returnVal = fc.showOpenDialog(ActionDemo4.this);
              if (returnVal == JFileChooser.APPROVE_OPTION) {
              File file = fc.getSelectedFile();
    String aa=file.getAbsolutePath();
              textArea3.append(aa);
                   textArea2.append("Local URL:");
    long l=file.length();
              try
              byte buff[]=new byte[(int)file.length()];
              InputStream fileIn=new FileInputStream(aa);
              int i=fileIn.read(buff);
              String conffile=new String(buff);
              String str1=textArea10.getText();
    url = new URL ("http://127.0.0.1:7001/servletUpload?x="+str1);
         urlConn = url.openConnection();
         urlConn.setDoInput (true);
         urlConn.setDoOutput (true);
         urlConn.setUseCaches (false);
         urlConn.setRequestProperty("Content-Type","multipart/form-data;boundry=-----------------------------7d11e410e500f2");
         printout = new DataOutputStream (urlConn.getOutputStream ());
    String content ="-----------------------------7d11e410e500f2\r\n"+"Content-Disposition: form-data;"+"name=\"upload\"; filename=\""+aa+"\"\r\n"+"Content-Type: application/octet-strem\r\n\r\n\r\n"+conffile+"-----------------------------7d11e410e500f2--\r\n";
    printout.writeBytes(content);
    printout.flush ();
    printout.close ();
    Best Regards
    Bikash

    The errors are here:
              byte buff[]=new byte[(int)file.length()];
              InputStream fileIn=new FileInputStream(aa);
              int i=fileIn.read(buff);
              String conffile=new String(buff); (conffile is a String object containing the image)
    and here:
    String content ="-----------------------------7d11e410e500f2\r\n"+"Con
    ent-Disposition: form-data;"+"name=\"upload\";
    filename=\""+aa+"\"\r\n"+"Content-Type:
    application/octet-strem\r\n\r\n\r\n"+conffile+"--------
    --------------------7d11e410e500f2--\r\n";
    printout.writeBytes(content);conffie is sent to the server but
    it's non possible to treat binary data as String!
    Image files must be sent as byte[] NOT as String ......

  • I just installed my CS5.1 on my new Lenovo Laptop Win 8.1. Problem -- On Image Adjustments none of the adjustment options respond.

    I just installed my CS5.1 on my new Lenovo Laptop Win 8.1. and everything worked for a day. On day 2 I ran into Problems -- On > Image >Adjustments none of the adjustment options respond. None of the toolbar functions such as >Crop etc respond.
    I then installed the same download on my PC and everything works as it should.
    Can anybody help please
    Roland

    Notebook Info
    1 x Lenovo G710 Notebook, Intel® Core™ i5, 43,9 cm (17,3 "), 1000 GB HD,
    Intel Core i5-4210M 2,60 GHz, (Turbo-Boost 2.0 bis 3,20 GHz)
    43.9 cm (17.3") 900p (HD+) LED-Display (1600 x 900)
    8192 MB DDR3-RAM
    Harddisk: 1000GB SATA
    NVIDIA N15V-GM mit 1GB DDR3
    Prefs
    As per download settings, I changed nothing
    Image Info
    Jpg conv.from RAW Canon, dim. 4746x3567, 6,64 Mb
    The software worked on the first day, problems appeared next day. I uninstalled and deleted the exe.file, then redownloaded and reinstalled but same problem persists.
    I then downloaded and installed on my PC and everything works.
    Regards Roland

  • Problem with images opened in Photoshop CS 5

    Hi, I have a problem with images that I open in Photoshop CS 5. F. ex. I opened
    the following image:
    The image appears with a purple color in Photoshop. If I hover over the image
    with a tool like lasso, it temporarily regains it´s original color. The image mode is RGB Color, 8 Bits/Channel.
    I resetted the start settings of Photoshop with the CTRL-Shift-Alt-combination, which had no effect.

    The confusion arises from the imprecise error message in the Preferences > Performance dialog box, to wit:
    OK, that seems to be open to misunderstanding indeed.
    The video card: Citrix Systems Inc. Display Driver.
    Could not find a list for CS6 specifically, but the card may fall short.
    http://helpx.adobe.com/photoshop/kb/tested-video-cards-photoshop-cs5.html
    If I invoke View > Proof Colors, the only thing that changes is that the text in the brackets
    Also if you set View > Proof Setup to something different?
    Boilerplate-text:
    Are Photoshop and OS fully updated and have you performed the usual trouble-shooting routines (trashing prefs by keeping command-alt-shift/ctrl-alt-shift pressed while starting Photoshop, 3rd party plug-ins deactivation, system maintenance, cleaning caches, font validation, etc.)?

  • Mosaic problem with image after Yosemite

    I'm using CS6 (13.0.6) on my iMac and recently upgraded to Yosemite.  I'm now getting a problem where images will suddenly either go black or get a weird mosaic/jigsaw type of look.  In the example below, the "source" images used in the mosaic were files that I had recently closed - so it isn't just a scrambled version of the correct image (if that makes sense).
    Once this happens, the only fix is to close out Photoshop and start over.  Anyone else having this problem?  Any fixes?
    Thanks for any help or suggestions!

    Interesting…Turning off "Use Graphics Processor" returns the magnifying glass to previous Photoshop method of dragging a marquee to zoom, instead of zooming from the point of click.
    So, this is February 2. You say it is Apple's problem and they are working on it, huh? It's been at least two months, apparently. It doesn't seem to be a top priority.

  • Problem with image url

    Hello,
    today I have a problem with image url. I wanted Image to change when mouse dragged over it. But nothing happened. Any ideas?
    def maxIco: ImageView = ImageView{
    image: Image{
    url: "{__DIR__}ikony/max.png"
    onMouseDragged: function(event: MouseEvent){
    maxIco.image = Image{
    url: "{__DIR__}ikony/max2.png"
    }

    This is working for me:
    src/main/Main.fx
    src/main/icon/image1.bmp
    src/main/icon/image2.bmp
    //Main.fx
    package main;
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.image.Image;
    import javafx.scene.image.ImageView;
    import javafx.scene.input.MouseEvent;
    var changed = false;
    def imgView: ImageView = ImageView {
        image: Image {
            url: "{__DIR__}icon/image1.bmp"
        onMouseDragged: function (e: MouseEvent): Void {
            if (not changed) {
                imgView.image = Image {
                    url: "{__DIR__}icon/image2.bmp"
                changed = true;
                println(imgView.image.url);
        onMouseReleased: function (e: MouseEvent): Void {
            imgView.image = Image {
                url: "{__DIR__}icon/image1.bmp"
            changed = false;
            println(imgView.image.url);
    Stage {
        title: "ImageTest"
        scene: Scene {
            width: 700
            height: 600
            content: [
                imgView
    }I've changed few things to switch image only one time on mouseDragged event.
    It print the image URL.

  • Problem with Image.createImage()

    Hi all!
    I'm writing a simple midlet just to display an image on the screen and I'm having some problems with Image.createImage()
    Here is my code
    Image bg_img;
    ImageItem imageItem1;
    imageItem1 = new ImageItem("", null,ImageItem.LAYOUT_DEFAULT, "");
    try{
    bg_img = Image.createImage("/image.png");
    imageItem1.setImage(bg_img);
    catch(java.io.IOException e){
    e.printStackTrace();
    I'm getting an exception on bg_img = Image.createImage("/image.png");
    I can't understand what is it...:(
    I know for sure that the problem is not "file not found"
    Any one can help me???

    If you are catching IOException, then u may have problem with ur image path. "image not found on the specified path." if ur image is not in the current directiry then put it into current directory. otherwise, If u are using resouce folder and it is already included into the resouce path, then put ur image in that folder..try this..
    Still not get, then please give some detail about ur development toolkit. and ur apllication packaging scheem. are you using ANT?
    Pranav

  • Problem with image gallery

    Hi to all.
    With ios 5.01 I have a little problem with image gallery. As you can see I have only 1 image, but there is always this **** message "download 0 of 46) (sorry, but I'm Italian )
    I've removed my icloud account from settings, but there is nothing to do, this message don't goes away. What I can do? Thanks in advance

    Hello,
    Just adding a gallery I want to do the same slideshow WoodWing's, but in InDesign, if anyone knows of?
    Thank you
    Link video slideshow WoodWing's: http://www.youtube.com/watch?v=Xt6gNaEZ0-M&feature=relmfu
    The first slideshow shown

  • Problem w/ image item using 9i BLOB field and InterMedia ORDImage Object

    Hi,dear all,
    I have a problem with image item in Form 6i. Oracle 9i is used as backend DB, and a table contains image data is created for testing:
    create table image_test(
    id number,
    image blob
    In Form 6i, there is no problem to create a block for inserting/updating the image record into the database. However, it can not be used to retrieve image (blob field), the image item remains empty after 'execute query', while the id field can be retrieved. When the same table is created in Oracle 8.1.7, and the exact same form can be used without any problem both in inserting and retrieval. It seems that the Oracle 9i does not use the same way to store BLOB column. Has anybody ever encountered this problem? How to retrieve image (BLOB) in Form 6i from Oracle 9i?
    I tried to use interMedia ORDImage as the data type in Oracle 9i, that is,
    create table image_test(
    id number,
    image ORDSYS.ORDImage
    Same problem, the form can insert record with image, but when retrieving, nothing displayed. Anybody could help! Thanks in advance!

    hi!
    well working with oracle8i and form6i.
    same problem..but i used (instead of blob or clob as datatype..) Long raw..
    it can be saved as usual..i mean Commit..
    and can be retrieved..using Execute_Query..its working fine..
    well if anybody get any other solution..do inform..
    mail_id:
    [email protected]

  • Unequal size of X, Y, Z axis for 3D graph

    Hi,
    I have different size of array in X, Y and Z axis. What graph should I use best? I tried using 3D surface graph but it consume all my memory.
    My data is X = 1 X 41 array
    Y = 1 X 32768 array
    Z = 41 X 32768 array/matrix
    Thanks a lot...

    Samuel S wrote:
    That is also correct
    Ben Im not going to lie that is a great song! I have that from the 1996 Rhythm of the Games Olympic Soundtrack 
    My Mother used to play the Sound Track from the Movie (Peter O'Toole and Sophia Loren) and it left a mark on me but that was nothing until I sat up all night with a case of beer and the movie on VHS so I could rewind and memorize the words.
    Don Quiote is what keeps me from pulling a John Galt and the signature is there to remind me.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • I am having problems opening images renerated in lightroom5 into cs6. Cs6 bridge does not see the lightroom libarary. If I open lightroom and right clik the image, edit in cs6, 6 opens but the picture doesnot follow. What is going on? Give me a hand.

    I am having problems opening images renerated in lightroom5 into cs6. Cs6 bridge does not see the lightroom libarary. If I open lightroom and right clik the image, edit in cs6, 6 opens but the picture doesnot follow. What is going on? Give me a hand, thanks.

    What edition of LR 5? What edition of ACR does PSCS 6 contain. If they are not parallel (same edition number x in [5 or 8].x ), is LR making a tiff or psd rendition of the image?

  • Problems with image scaling

    I'm facing a real problem with image scaling
    I've used several algorithms but it all has defects but the most common thing is the out of memory error after several enlargments...
    does any one know a solution...
    note:
    I've used several packages to do so,but I'm looking for a solution from the jdk itself
    JAlexscorpio

    Did you take into account that the getScaledInstance() -method creates a completly new Image?
    So if you use it like in
    ImageIcon icon1=new ImageIcon("Blah.gif");
    ImageIcon icon2=new ImageIcon(icon1.getImage().getScaledInstance(400,400,SCALE_FAST);
    you will end up with 2 different Images which have their own data and memory requirements.
    even if you use something like
    ImageIcon icon1=new ImageIcon("Blah.gif");
    Image i=icon1.getImage();
    icon1.setImage(i.getScaledInstance(200,200,SCALE_FAST));
    You will need enough memory to store the data for the original image, as well as the data for the scaled
    version of the image, at least for the time that it take the JRE to create the scaled version. You never know when the garbage collector kicks in to delete you old data so it could be that this takes some time and until
    that moment your memory is not available. If your now doing several of the scaling operations, and there is no chance for the garbage collector to do its work, you will run out of memory.
    I hope that might help, if not feel free to post again

  • Problems with Image Variants

    I got two problems with Image Variants:
    1. catalogCache.GetImagePath("Images", id) doesn’t work for some id. The error message is “GetImageVariant error”.
    2. catalogCache.Preload("Images", “Original”)
        catalogCache.Preload("Images", “Thumbnails”)
        catalogCache.Preload("Images", null)
       catalogCache.Preload("Images", "")
    get failed, the status code is -2147483647
    Anyone know how to setup  image variants?
    Thanks.
    Forrest

    status code: -2147483647 is RC_BADPARAM.

  • Problems w/ Images in Reports 2.5

    I seem to have run into an apparent limitation with the Oracle Developer
    2000 Report Designer 2.5. I have an image that is displayed, the path being
    stored within the database, the image is then Read from file. This works
    fine except there are two problems that I have run into and hope somebody
    can either confirm this is the way the software functions or point me in the
    right direction.
    It seems impossible to me to get the image to center within the field as
    defined in the Report Layout. I have the image field on the report set to
    about 10 Inches wide. Initially the image appeared on the left hand side of
    the field, I changed the alignment to Center as you would for a text field
    but to no avail, the image always comes back on the left hand side.
    If the images where all of a uniform size this would not bother me as I
    would simply create the image box based upon the size of the image and
    center it on the report, alas this is not an ideal world. How can I center
    an image within a field ? Is it even possible.
    Thing brings me onto my second problem, the images stretch to fill the image
    field, stopping when it either hits the horizontal or vertical boundary.
    This is great in a way because oversized images are zoomed into and appear
    fine, the whole process does not mess with the aspect ratio's of the images
    at all. However with images much smaller than the image field, they are
    stretch way to much and become pixilated and an eyesore. I have tried
    playing with the Variable, Can Shrink, Can Grow features but I lose all
    control of where the image will wind up with varying results. The Expand,
    Contract properties have little effect, the variable option shrinks all
    images down to the tiniest of thumbnails and then again they appear to the
    left of center. Somebody has to have done this before.
    Any idea how I can control this behavior ? And maybe just have an image
    appear at its actual size ?
    Combined these two factors make the report shabby, and this is intended as
    presentation quality material.
    Any guidance, advice is appreciated.
    Thanks,
    James
    James Starritt
    null

    Hello,
    Is there any particular reason you cannot upgrade to Reports 6i? Reports 2.5 is quite old, and there have been a number of issues resolved with images since then.
    Regards,
    The Oracle Reports Team --skw                                                                                                                                                                                                                                                                                                                                                                                                                                   

Maybe you are looking for

  • SAP PUR: Purchase requisition getting valution from Info Record

    Hi all, I'm trying to see why SAP doesn't get the valuation from the Info Record when creating a PR. I put the fixed vendor, it automatically determines the info record number, but it is not putting the value in the PR. Is there any answer to this?

  • Oracle BPM 11g Examples

    Where I can download Oracle BPM 11g Examples. Demo applications to study BPM in more details.

  • WebUtil for Linux

    Im working in Linux RedHat ES/AS 3 I have downloaded the WebUtil.zip, but when Im trying to install and I run the makecert.bat (with sh makecert,bat) it write the next error message makecert.bat: line 12: `for /F "eol=# tokens=1,2* delims==" %%i in (

  • [MENU] Image as menu.  Possible?

    Hello everyone! I am building a site for a friend of mine who is finishing his end-course project and this is what I have in mind: Upon moving the mouse over the background puzzle image, the individual pieces "raise" and the related text appears (suc

  • Photoshop CC start up Fail :(

    Hej I have just Bought The new Adobe Cloud service with Photoshop CC and Lightroom . But have a big Problem I Cant open Photoshopp CC, it said that the Adobe Application Manager is misssing or and error has taken place    ( in Danish: It said: adobe