Java library for function graphing

Hello.
I have searched Google up and down, but have not found a library for drawing functions in a coordinate system.
Does anyone have any experiences with libraries, or know of an easier way of doing this?
What I need is basically to draw functions (eg. y = 2x) in a coordinate system.
Thanks in advance
Dennis Johnsen

Ulverbeast wrote:
Hey
Yes, like that one, except that one can only draw 3 simple kinds of functions.
Do you know of any others that might be able to draw more different kinds of functions?
JFreeChart can draw anything if you provide it with a set of coordinates to draw at.
It's up to you to provide the coordinates though.
So what you're really looking for is a function parser I guess.

Similar Messages

  • How to use java api for function activity in embed oracle workflow?

    because i can't install standalone oracle workflow successfully.
    pls tell me how to use java api for function activity in embed oracle workflow?
    are there some patch or pulg-in package?
    ths a lot...........

    The Java Function Activity Agent is not certified for Oracle Workflow embedded in Oracle Applications. Installing standalone workflow should be a lot easier than what you have found, although it looks like you did hit a Pentium 4 issue with the Oracle Universal Installer. I suggest you contact Oracle Support or Oracle Consulting for assistance.
    because i can't install standalone oracle workflow successfully.
    pls tell me how to use java api for function activity in embed oracle workflow?
    are there some patch or pulg-in package?
    ths a lot...........

  • Java library for large list sorts in small amount of memory

    Hi All
    Wondering whether anybody would know of a ready made java library for sorting large lists of objects. We will write ourselves if necessary but I'm hoping this is the sort of problem that has been solved a million times and may hopefully have been wrapped behind some nice interface
    What we need to do is something along the line of:
    Load a large list with objects (duh!)
    If that list fits into an allowed amount of memory great. Sort it and end of story.
    If it won't then have some mechanism for spilling over onto disk and perform the best sort algorithm possible given some spill over onto disk.
    These sorts need to be used in scenarios such as a random selection of 10% of the records in a 100G unsorted file and delivered sorted, with the jobs doing the sorts being limited to as little as 64MB of memory (these are extremes but ones that happen quite regularly).
    Some of you might think "just use a database". Been there. Done that. And for reasons beyond the scope of this post its a no goer.
    Thanking you for all your help in advance.

    Of course this kind of sorting was common back in days of yore when we had mainframes with less than 1MB or ram.
    The classic algorithm uses serveral files.
    1) Load as much as will fit
    2) sort it
    3) Write it to a temporary file
    4) Repeat from 1, altnerating output between two or three temp files.
    Your temporary files then each contain a series of sorted sequences (try saying that three times fast).
    You then merge these sequences into longer sequences, creating more temp files. Then merge the longer sequences into even longer ones, and so on until you're left with just the one sequence.
    Merging doesn't require any significant memory use however long the sequences. You only need to hold one record from each temp file being merged.

  • HELP Java library for interpolation

    Hi, we need for a text recognition project a java library for improving the pixel resolution. Now we get a low pixel resolution from our device and the results of the text recognition software are not so good. Our idea is to interpolate the recognized pixel. How know a suitable Java library.

    rene1000 wrote:
    Hi, we need for a text recognition project a java library for improving the pixel resolution. Now we get a low pixel resolution from our device and the results of the text recognition software are not so good. This is not possible in any language or any platform anywhere in the universe.
    Our idea is to interpolate the recognized pixel. How know a suitable Java library.I'm confused, now it sounds to me like you just want to scale the image so it's larger?
    Please try to clearly describe what you need to do.

  • Java library for JPG Compression

    I have to compress the JPG images with good quality. Please suggest a good java library for image compression.
    Thanks

    Demo:
    import java.awt.*;
    import java.net.*;
    import java.io.*;
    import java.util.*;
    import javax.imageio.*;
    import java.awt.image.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class ImageCompressExample implements Runnable, ChangeListener {
        private BufferedImage original;
        private JLabel compressedLabel;
        private JSlider slider;
        private int byteCount;
        public ImageCompressExample(String url) throws IOException {
            original = ImageIO.read(new URL(url));
        public void run() {
            slider = new JSlider();
            slider.setMajorTickSpacing(10);
            slider.setPaintTicks(true);
            slider.setPaintLabels(true);
            slider.addChangeListener(this);
            compressedLabel= new JLabel();
            updateCompressedLabel();
            JPanel labelPanel = new JPanel(new GridLayout(2,1));
            JLabel originalLabel = new JLabel(new ImageIcon(original));
            originalLabel.setBorder(BorderFactory.createTitledBorder("original image"));
            labelPanel.add(originalLabel);
            labelPanel.add(compressedLabel);
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(labelPanel, BorderLayout.CENTER);
            f.getContentPane().add(slider, BorderLayout.SOUTH);
            f.pack();
            f.setResizable(false);
            f.setLocationRelativeTo(null);
            f.setVisible(true);
        public void stateChanged(ChangeEvent e) {
            if (!slider.getValueIsAdjusting())
                updateCompressedLabel();
        private void updateCompressedLabel() {
            int value = slider.getValue();
            compressedLabel.setIcon(new ImageIcon(compress(original, value/100f)));
            String title = String.format("compression quality = %d%%, bytes = %,d", value,  byteCount);
            compressedLabel.setBorder(BorderFactory.createTitledBorder(title));
        public BufferedImage compress(BufferedImage image, float quality) {
            try {
                Iterator<ImageWriter> writers = ImageIO.getImageWritersBySuffix("jpeg");
                ImageWriter writer = writers.next();
                ImageWriteParam param = writer.getDefaultWriteParam();
                param.setCompressionMode(ImageWriteParam.MODE_EXPLICIT);
                param.setCompressionQuality(quality);
                ByteArrayOutputStream out = new ByteArrayOutputStream();
                writer.setOutput(ImageIO.createImageOutputStream(out));
                writer.write(null, new IIOImage(image, null, null), param);
                byte[] data = out.toByteArray();
                this.byteCount = data.length;
                ByteArrayInputStream in = new ByteArrayInputStream(data);
                return ImageIO.read(in);
            } catch (IOException e) {
                throw new RuntimeException(e);
        public static void main(String[] args) {
            try {
                String url = "http://www.rsportscars.com/foto/03/carreragt06.jpg";
                EventQueue.invokeLater(new ImageCompressExample(url));
            } catch (IOException e) {
                e.printStackTrace();
    }

  • What is the best method to parse a java file for function names

    st="class";
    while (StreamTokenizer.TT_EOF != tokenizer.nextToken ())
       if (StreamTokenizer.TT_WORD == tokenizer.ttype)
        if (tokenizer.sval.toLowerCase().equals(st.toLowerCase())){
        System.out.print (tokenizer.nextToken() + " "); //prints the class name on the console
        fileOut.print (tokenizer.sval + " "); //prints the class name to a file
    }The above program searches a .java file for classes. I want to modify it so that it searches for function names as well. After several hours of figuring out various ways to do it with StreamTokenizer, I still havnt found a way. There seems to be no way to go back, i.e. no previousToken method, in StreamTokenizer.
    Is it possible to do search for using StreamTokenizer, and are there easier ways of doing it?

    Simple string tokenizing isn't an effective way to do this. You probably want something like ANTLR.

  • Global java-library for graphical mapping?

    we hava a global .jar-java library we want to use in all software components (and not import them into all software comonents)
    in xi2.0 there was a procedure to update library.txt and reference.txt:
    reference library:XILookup library:jco
    (The XILookup class needs access to JCO)
    reference IntegrationServices library:XILookup
    (make XILookup visible to mapping runtime)
    reference ExchangeRepository library:XILookup
    (make XILookup visible to design-time)
    now in xi 3.0 we deployed the library as a j2ee library using nwds
    but how can i create the referenze to the exchangerepository and mapping runtime?
    thanks for any help
    joerg

    Hello
    I have the same problem. I want deploy also a jar library on xi system and after use this library for a messages mapping.
    I won't use the external Archives, i must use the library for different names spaces.
    I use for the deploying a library module in the NetWeaver developer studio. The deploying is working. But the mapping never found the jar library.
    Thanks for help.
    Regards Tom

  • [Java]Java Library for CVS and SVN

    Hi!
    I need Java libraries for my application. I want to manage repository CVS and SVN directly form Java code and not with a graphic interface.
    I've found some SVN library(for example SVNKit) but I don't found any CVS library.
    Can you help me?
    Thanks,
    Stefano.

    Keep googlin'! They're out there! It's worth grabbing the source code for Eclipse or NetBeans or something, and digging about in there. If they're not using a third-party library to handle CVS, they've probably at least written their own. Nothing to stop you, for instance, grabbing part of the Eclipse Team bundle and using it yourself.
    Question is: Why do you want to do this? If it's some wacky "self-checking in code", forget it.

  • Java library for Translating text

    I need to translate texts.. english <-> german.. english <-> french and so on.
    I would like to know if you know any Offline, software (commercial too!) that offers some java library to translate text strings.
    Thank you!

    duffymo wrote:
    I just heard from a reliable source that Vegas is a pit. I've never had an urge to go, but this kills any spark there might have been. Even Jessica Simpson wearing nothing but a pink Romo jersey in a Palms luxury suite would be enough to persuade me.
    As for TO, I think he's not even fit to be an Orville Redenbacker spokesclown.
    %I've mentioned it to my wife as a vacation spot. I haven't been to Las Vegas since I was two (many years ago) but I heard it is more "family-friendly." Amusement parks for the kids, the Hoover Dam, and a jumping-off spot for a Grand Canyon visit.
    The other option was the Dunkin Donuts in Willimantic but Mr. Patel who owns it, is a bit of a jerk. ;-)

  • Java library for local search algorithms?

    Hi everybody,
    Could anyone please help me with the following?
    I am looking for a Java library with already implemented local search algorithms. Does such a thing exist? Would anyone recommend one?
    I am testing several AI programs and need to select the best parameters for each one (in a relatively large number of experiments). I could write my own search algorithm, of course, but it would be so much easier to use several already implemented algorithms and choose the best one.
    Thanks in advance for any pointers.
    Anna

    Here is an interesting question. Say you build the central control system of a rocket ship using Java, should you then be able to ask questions about rocket ships in Java forums?
    Well you can try, but I wouldn't hold your breath to find another rocket scientist in such a place. You may want to go to a forum where rocket scientists congregate in stead. Just a friendly tip.

  • Java Library for MS Word (.doc) to PDF Conversion

    Hi,
    My customer would like to use BI Publisher's PDF Binding and Merging features to combine BIP PDF outputs with another documents in Solaris platform. However, currently those documents are all in Word .doc format only and the customer does not want to consider converting those into other formats like RTF.
    Does BI Publisher provide library for converting .doc format directly into PDF? If not, does anyone know a Java library on the market that can best do the job?
    Geoffrey

    From: <[email protected]><br /><br />| @graffiti, Even if a printer does work, it doesn't solve my on-screen appearance. I<br />| want the document to look good both on-screen and printed. At presented, the on-screen<br />| doesn't look good.<br /><br />| @David, can you please elaborate a bit further? The signature should be a WMF file? I<br />| looked at the various file types from the Photoshop Save-As dropdown menu, and WMF was<br />| not among them. One of my critical elements is to be able to save the signature with a<br />| transparent background, not a white background.<br /><br />| Can you elaborate more on the "low compression ratio"? I have got no clue what that is<br />| about or where to change it.<br /><br /><br />I don't what to tell 'ya about WMF so here is a good Wiki on it...<br />http://en.wikipedia.org/wiki/Windows_Metafile<br /><br />As for the compression ratio...<br /><br />{ the following is based upon my installation of Acrobat 9 but most versions are<br />relatively the same }<br /><br />In "Printers and faxes"<br />Right-Click on "Adobe PDF"<br />Choose; "Print preferences"<br />Under "default settings" choose "Edit"<br />Now choose "Images"<br /><br />You will find settings for "compression" and "Image quality"<br /><br />The objective is "high quality" and "low" or no compression.<br /><br /><br />-- <br />Dave<br />http://www.claymania.com/removal-trojan-adware.html<br />Multi-AV - http://www.pctipp.ch/downloads/dl/35905.asp

  • Java Library for dynamic PDF form creation similar to LiveCycle Designer

    Hi
    I have a requirement as below :
    Requirement :  I need to create a dynamic PDF form with a barcode of type PDF417. Where a user can fill the form offline and after click on some button it will save the form offline and generate a barcode in the same PDF. Later on usaer can take a printout or send the saved pdf as it is.
    Currently I am able to create such pdf from using LiveCycle Designer. But I need to create it manually using designer and then need to apply Reader Extension on it using livecycle server.
    I want to do this programatically. I would like to create a similar form using some Java Library.
    Is it possible to create it dynamicaly(using programs)? how ?
    Does any one know how to acheive this ?
    Can anyone help me please ?
    Thank you very much in advance.

    I heard about LiveCycle ES3 server and was wondering if it could be of any use in my scenario. Can some one explain how to use jar files in standalone application .  I explored the  livecycle forms api but could not figure out how it may be used ?

  • JAVA library for authen. RADIUS or Novell NDS?

    Probably certainly to me not here...
    The question consists in the following:
    What libraries (if are available) for JAVA for authentication through RADIUS and/or Novell NDS are available?
    Please at presence of such libraries to write to me on E-mail: [email protected]
    Thank for attention.
    K$V

    Does that mean that you are not going to come back here and check any answers and expect someone to email you the answer. I doubt that happening.
    I think there is a product called Radiator for Radius and Novell provides a Java toolkit for its directory servers. You might be able to use these.
    Anyways, I did not have a right answer.
    Sorry, could not help being arrogant.

  • Java Library for SFTP Access

    Hi,
    Currently I am uploading files via SFTP Software on a specific server.
    I have to automate this step. How can I do this step with Java.
    -Aykut

    Sorry, but the advice searching this on google is not that easy.
    If I would ask for, "how to create a JTable"
    than you all would be right, "search on google!"
    because most of the examples are usable.
    Of course I already searched on google.
    Searching on goole is faster than writing this post, this is out of question.
    But I was looking for an Open Source Library which is also to be recommended,
    means it's easy to use and works accurate.
    Of course you get hundreds of links in google, by searching "Java sftp".
    But how do you know which one is good one?
    Non of you guys could answer to this question, except you already use it
    or you already read or heard about it.
    And what was my intention?
    => To get a recommendation, and not a lesson about searching on google (By the way, why not yahoo :))))
    For those who may also interessted using Java and SFTP, http://www.networkworld.com/columnists/2005/050205internet.html
    or directly http://www.jcraft.com/jsch/index.html
    Thanks
    -Aykut

  • Xfdf supporting java library for xfa form provided by Adobe ?

    I had been working to find that how we can handle the newer xfdf format and explored many pdf libraries including Apache PDFBox and iTtext.
    While exploring I found that the underlying architecture for the pdf  itself could be either Xfa (composed in livecyle designer)  or Acroform(composed in acrobat tool). The forms available with us are third party provided form and  are Xfa forms.
    Acroforms are properly supported in all these libraries but I see very less support for Xfa.
    Is there any java liberaries provided by Adobe to work with xfdf format in Xfa Forms ?
    Thanks
    Shah Imran Alam

    Thanks , but pls elaborate more on this .
    Is it LiveCycle ES3 Server ? If yes which jar do I need for this purpose. Any documentation to go with it ?
    Thanks
    Shah Imran Alam

Maybe you are looking for