Graphics(Urgent)

Hi,
Can we use combination of 2 graphs together (bar chart and line chart). the line chart should be plotted on top of bar chart for each bar....
Regards,
Madhusudhan

You need a method that assesses whether or not the cursor clicks on one of the shapes. So you need 3 shape centres and a radius around the center in which the click can take place. If the shape is clicked on then it can be redrawn as the mouse floats off.

Similar Messages

  • Printing graphics - URGENT!

    Hi all,
    I am trying to send a Java2D graphics to a printer. I am reading the file name from JFileChooser. Here is my code:
         if(jfc.getFileFilter().getDescription() == psFileFilterDescription){
              File psfile=new File(jfc.getCurrentDirectory(),jfc.getSelectedFile().getName() + ".ps");
              FileOutputStream out = new FileOutputStream(psfile);
              int w=getSize().width;
              int h=getSize().height;
              System.out.print("Writing PS File "+psfile+"\nw:"+w+" h:"+h);
              BufferedImage mImage=new BufferedImage(w,h,BufferedImage.TYPE_INT_RGB);
              Graphics2D gBuff=mImage.createGraphics();
              paint(gBuff);
         sendToPrinter(mImage);
    private void sendToPrinter(BufferedImage bImage){
    PrinterJob pj = PrinterJob.getPrinterJob();
    // show the print dialog and conditionally proceed
    // with printing if the dialog returns true
    if (pj.printDialog()) {
    // get the default page format
    PageFormat pf = pj.defaultPage();
    // show the page configuration dialog
    // note - this doesn't work in Solaris/JDK1.2beta4
    pj.pageDialog(pf);
    // create a book
    Book b = new Book();
    b.append((Printable)bImage, pf);//How can I convert a BufferedImage to support Printable interface
    // arrange for this book to be the source for our printer job
    pj.setPageable(b);
    // actually invoke the printing
    try {
    pj.print();
    catch (PrinterException ex) {
    ex.printStackTrace(System.err);
    // provide a print method for this component. This implements
    // the Printable interface,
    public int print(Graphics g, PageFormat form, int page) {
    // check for a Graphics2D and apply the page orientation and
    // printable area transforms to it
    if(page == 0) {
    if (g instanceof Graphics2D) {
    AffineTransform tr = new AffineTransform(form.getMatrix());
    tr.translate(form.getImageableX(), form.getImageableY());
    ((Graphics2D)g).transform(tr);
    super.paint(g);
    return PAGE_EXISTS;
    else
    return NO_SUCH_PAGE;
    Does anyone have any ideas on what I should do here?
    Thanks,
    Payam.

    i have a problem with this code.
    public void actionPerformed(ActionEvent e)
              if(e.getSource()==openItem)
                   JFileChooser chooser = new JFileChooser();
                   chooser.setCurrentDirectory(new File("."));
                   chooser.setFilefilter(new javax.swing.filechooser.FileFilter()
                   { public boolean accept(File f)
                        String name = f.getName().toLowerCase();
                        return name.endsWith(".gif")
                        ||name.endsWith(".jpg")
                        ||name.endsWith(".png")
                        ||f.isDirectory();
                   public String getDescription()
                        return "Image files";
              int r = chooser.showOpenDialog(this);
              if(r==JFileChooser.APPROVE_OPTION)
                   String name =chooser.getSelectedFile().getAbsolutePath();
                   panel.loadImage(name);
    all variables used have been allocated memory.

  • Oracle graphics-- Urgent!

    Hi
    1. How can I pass a parameter to a form from graphics. The
    buttonproc of symbol of the line chart should contain the code.
    the parameters are the X and Y axis values.
    I'm not able to get the x and Y value for the point.
    2. Can I embed a report in a oracle graphics.ie THe report
    should be displayed below the chart item.
    Thank you
    null

    Hello,
    1. In the DRILL_DOWN tab page of the chart element property
    window, there is an option of setting the value of a parameter to
    the value of the chart element. Or you can write a procedure for
    the chart element to set values of parameters within the graph.
    You will have to use OG pll to retrieve the values of these
    parameters.
    2. You will have to embed the graph in a report if you want to
    see report data below a chart.
    Sunder
    Porchelvi (guest) wrote:
    : Hi
    : 1. How can I pass a parameter to a form from graphics. The
    : buttonproc of symbol of the line chart should contain the code.
    : the parameters are the X and Y axis values.
    : I'm not able to get the x and Y value for the point.
    : 2. Can I embed a report in a oracle graphics.ie THe report
    : should be displayed below the chart item.
    : Thank you
    null

  • Urgent Help Needed: ATI Graphics Card install

    Hello All.... I am in need of some urgent help..
    I am trying to install a new graphics card - the ATI Radeon 9600 SE. I currently have a Voodoo3 card. I followed all of the instructions step by step, but when I plug the monitor to the Radeon card and boot up, I do not get any display. I have tried everything I can think of, and yet - I am sure the card is secured in place and the monitor is plug into the card.
    Can anyone help me on this one.. ATI's support is, well - lacking..
    Here is some info on my pc:
    MCI motherboard
    AMD Athlon(tm) XP 2000+ 1.7 GHz
    768 MB
    AMIINT - 10 Version 1.00, 07/10/02
    Could the problem be with switching from a regular PCI card to an AGP card???

    Quote
    Originally posted by southmike
    okay i'll bite what are omega drivers,
    how are they different from cat4.2 drivers
    i was suprised that the voodoo 3 would work in a AMD64 mobo...
    whoops....just read the rest of the post :lol:
    BTW is there an external power connector that needs to be plugged in?

  • Printing problem with muliple page 2D graphics.........URGENT

    /*hi
    I want to print the drawings that i create in my painting application.
    Following is the extract from my drawing application, which takes care of the printing part. The problem i am facing is that, i am able to print only one page, the other parts of my drawing are clipped (both from the horizontal as well as vertical direction)
    However i did found some help on printing multiple page TEXT documents, from some literature, but nothing was mentioned about printing drawing that may extend to multiple pages.
    Since printing forms a very important part of any painting application, the whole of my project now relies on the success of the printing code. Its really urgent for me to get out of this problem, any kind of help from anyone would be a great contribution in completing my project */
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import java.awt.print.*;
    public class Print {
    public static void main(String[] args) {
    PrintFrame f = new PrintFrame();
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    f.show();
    class PrintFrame extends JFrame implements ActionListener{
    DrawingPanel drawingPanel = new DrawingPanel();
    public PrintFrame() {
    setTitle("Test Printing");
    setBounds(100,100,500,400);
    getContentPane().add(new JScrollPane(drawingPanel), BorderLayout.CENTER);
    JButton printButton = new JButton("Print");
    getContentPane().add(printButton,BorderLayout.SOUTH);
    printButton.addActionListener(this);
    public void actionPerformed(ActionEvent event) {
    PrintUtilities.printComponent(drawingPanel);
    class DrawingPanel extends JPanel {
    private int fontSize = 90;
    private String message = "Java 2D";
    private int messageWidth;
    Dimension pref = new Dimension(1500, 1500);//will define the max scrollable area
    public Dimension getPreferredSize() {
    return pref;
    public DrawingPanel() {
    setBackground(Color.white);
    Font font = new Font("Serif", Font.PLAIN, fontSize);
    setFont(font);
    FontMetrics metrics = getFontMetrics(font);
    messageWidth = metrics.stringWidth(message);
    int width = messageWidth*5/3;
    int height = fontSize*3;
    setPreferredSize(new Dimension(width, height));
    public void paintComponent(Graphics g) {
    super.paintComponent(g);
    Graphics2D g2d = (Graphics2D)g;
    int x = messageWidth/10;
    int y = fontSize*5/2;
    g2d.translate(x, y);
    g2d.setPaint(Color.lightGray);
    AffineTransform origTransform = g2d.getTransform();
    g2d.shear(-0.95, 0);
    g2d.scale(1, 3);
    g2d.drawString(message, 0, 0);
    g2d.setTransform(origTransform);
    g2d.setPaint(Color.black);
    g2d.drawString(message, 0, 0);
    g2d.drawLine(5,5,1490,500);//this line goes outside my paper width, & does not get printed
    class PrintUtilities implements Printable {
    private Component componentToBePrinted;
    public static void printComponent(Component c) {
    new PrintUtilities(c).print();
    public PrintUtilities(Component componentToBePrinted) {
    this.componentToBePrinted = componentToBePrinted;
    public void print() {
    PrinterJob printJob = PrinterJob.getPrinterJob();
    printJob.setPrintable(this);
    if (printJob.printDialog())
    try {
    printJob.print();
    } catch(PrinterException pe) {
    System.out.println("Error printing: " + pe);
    public int print(Graphics g, PageFormat pageFormat, int pageIndex) {
    if (pageIndex > 0) {
    return(NO_SUCH_PAGE);
    } else {
    Graphics2D g2 = (Graphics2D)g;
    g2.translate(pageFormat.getImageableX(), pageFormat.getImageableY());
    disableDoubleBuffering(componentToBePrinted);
    componentToBePrinted.paint(g2);
    enableDoubleBuffering(componentToBePrinted);
    return(PAGE_EXISTS);
    /* disables double buffering globally. */
    public static void disableDoubleBuffering(Component c) {
    RepaintManager currentManager = RepaintManager.currentManager(c);
    currentManager.setDoubleBufferingEnabled(false);
    /* Re-enables double buffering globally. */
    public static void enableDoubleBuffering(Component c) {
    RepaintManager currentManager = RepaintManager.currentManager(c);
    currentManager.setDoubleBufferingEnabled(true);
    }

    Um I dont know if im doing something daft but I tried this like you said
    PrinterJob printJob = PrinterJob.getPrinterJob();
    printJob.setPrintable(this);
    if(printJob.printDialog()){
    try {
              PageFormat pageFormat = printJob.defaultPage();
              if (pageFormat.getOrientation() == PageFormat.PORTRAIT) {
              landscape = 0;} else {
                   landscape = 1;}
              System.out.println("THE ORIENTATION IS "+ landscape);
              printJob.print(); }
    catch (Exception PrinterExeption) { PrinterExeption.printStackTrace();}
    and it doesnt seem to work as I tried it both as landscape and portrait in the print dialog but landscape is always 0.
    cheers
    pmiggy

  • Problem with graphics- very urgent

    Who knows how is it possible to call the graphic method for example filling a separate hexagon in the conglomerate of hexagons from another class, without
    using method graphics??
    Thank you in advance!!

    How is this very urgent?

  • I urgently need to know how I can connect 8 thunderbolt display, I was thinking with the new mac pro will come out, but I wonder if it is possible to connect an iMac to 4GB of graphics card, but suffers from the imac. thanks

    I urgently need to know how I can connect 8 thunderbolt display, I was thinking with the new mac pro will come out, but I wonder if it is possible to connect an iMac to 4GB of graphics card, but suffers from the imac. thanks

    I tightened all HD screws and it didn't help. With the machine running and side of the case off, I physically stopped both the video card fan and the front case fan with my finger for a couple seconds and the noise continued. I also took all hard drives out one by one and rebooted each time. Again, the noise continued until I took out the Mac HD in Bay 1, rebooted, and I had a very quiet, silent machine. The issue is the hard drive in bay 1 that shipped with the computer, it's without a doubt causing the hum/woosh sound. I still need to know if I can safely swap the Mac HD from bay 1 to bay 4 without any issues to the operating system. I would like to try that to see if it dampens the noise but I also want to make sure this swap won't screw up my machine at all.

  • URGENT!! Smartform : graphical edition impossible!

    Hi,
    I created a Smartform for Delivery Note with its print program in a newly upgraded ECC6.0 system. I customized in NACE in proper column.
    When I try to print it via VL02N, the message is:
    "Graphical edition impossible"
    Does anyone know how to solve this problem??
    Points rewarded immediately since its very urgent!
    Tarick.

    Hi again!
    I found out the reason!
    There was a graphic which was not uploaded properly in SE78...
    Tarick.

  • Unable to view graphics on Dashboards,answers Urgent help required..

    I am new to OBIEE and am not able to view graphics in answers,dashboards reports OBIEE on remote client system but are able to view graphics at remote server system and work on it.Please help us as it is very urgent.
    Thanks in advance.

    Hi
    Ensure that you have adobe flash player plugin installed and you Java Host service which comes when you install OBIEE is up and running. Thhis is the service mainly for rendering charts and graphical things in obiee. Hope ths helps
    Regards

  • Urgent information for my Graphics card

    I have a GeForce4 MX 4000
    Motherboard ID   04/18/2003-KM266-8235-6A6LVM4DC-00
    Motherboard Name   MSI KM2M Combo (MS-6738)
    This has a AGP slot that takes a 4x card.  I am having problems sourcing the right card as the few that look as if they will fit are 8x cards
    http://www.amazon.co.uk/Sweex-NVIDIA-GeForce-5500-256/dp/B001C9VCXW/ref=sr_1_1?ie=UTF8&s=electronics&qid=1236441783&sr=1-1
    The one above is the one I am thinking of buying.   I can't see any other descent one around or one with the same connections.
    The card has gone it needs replacing and I need an answer ASAP as I need to do some work and without the graphics card I am stuck.  So urgent help please if possible
    Many thanks
    Tony

    I have restarted my computer this morning and guess what!! ??  I had changed the to the onboard video and it also has a code 10.  I cancelled the order with Amazon now phew, glad that didn't come!!  So I still have the same problem.  Also I think because the card isn;t working certain software isn't working.  Software is crashing.  So I think it could be the Motherboard??  What do you think?
    Looking forward to your replies
    Tony
    PS Just done a macrium back up of my system.  Just in case.

  • Need urgent help with RAID failure on Graphics server (running OSX10)

    Hey.
    Here's the deal... Our graphics department has a MAC G4 (fully upgraded. newest patches, OS, etc.) that's got a 4 port SATA RAID controller. They use this with four 750GB hard drives as an external RAID (the OS is on a seperate, 65GB hard drive). The way it's set up, through Apple's OS, is we have the four 750GBs in pairs... those pairs are striped, and then the two sets of striped 750s are mirrored. This has worked just fine for a number of months, but we recently had a power surge, and now we're unable to mount "Monkey" (the name of the 1.4TB array).
    See the below screenshots for more clarification.
    http://www.amcdoors.com/lorenzo/raidsetup.JPG
    This shows the RAID card, and the four SATA cables coming out of it.
    http://www.amcdoors.com/lorenzo/leftside1.JPG
    As you can see in this and the below screenshots, this shows the 1.4TB Striped set as 'online', but the two below (the two 750GB hard drives) show up as "offline".
    http://www.amcdoors.com/lorenzo/leftside2.JPG
    this shows the actual drive i click on. same thing
    http://www.amcdoors.com/lorenzo/leftside3a.JPG
    If i click the entire array, you can see how it's set up (the Mirrored RAID set consisting of the two Striped RAID sets). The RAID sets (all 3 of them) are showing up as online, yet the drives are offline. No idea why. The drives are all powered, and are spinning, and plugged in.
    http://www.amcdoors.com/lorenzo/leftside3b.JPG
    when you click "Monkey Drive", nothing shows up in it. i don't remember if anything ever used to. if you click 'mount', nothing happens.
    http://www.amcdoors.com/lorenzo/leftside4.JPG
    http://www.amcdoors.com/lorenzo/leftside5.JPG
    this shows the exact same problem as the first RAID set.
    http://www.amcdoors.com/lorenzo/verifyRAIDset1.JPG
    If you try to Verify the RAID set, it shows that no repairs are necessary
    http://www.amcdoors.com/lorenzo/verifymonkey.JPG
    If you try to verify Monkey, you get a "Volume Needs Repair" error... but when you try to repair it, you get this:
    http://www.amcdoors.com/lorenzo/repairmonkey.JPG
    Really need help; this is a pretty critical problem. Someone that's familar with RAID solutions on MACs please help me out. We can't risk losing any data if at all possible.
    Thanks
    ~Lorenzo

    You might want to post this to the Server Products forums.

  • All graphics in Pages document are now boxes with "?" question marks.  Help!!  Urgent!!

    Created a 150 page document on one computer with Pages 09 and saved to the desktop.  Put onto a flash drive and transferred to another computer.  Opened it with Pages 09, made modifications, and saved back onto the flash drive.  Transferred document to original computer, overwrote original file, and now all the graphics in the document have been replaced with boxes with a question mark inside it.  Went back to the document on the flash drive, it is the same way.  Opened the document on the "other" computer and it is the same way.  Have searched Support and the User Guide to find an answer and cannot.  This is a dissertation that has to mailed out like now.  How do we fix?

    I am just an end user like you so I don't know why. I have not heard about this problem before or I might have when people have tried just save on a server instead of their own computer. The person that just opened the document from the USB stick and saved back on should have first transferred the document to his/hers computer, then worked on it and saved it and THEN copy it over to the stick.
    Use CDs instead for transferring files or emails. That is much safer.
    Another thing some people has to learn it the hard way!

  • URGENT.PLEASE HELP!!!Print graphics problem

    Hi,
    Please help me in this one.I try to print Graphics but I can't.
    1) Spooling lasts too long
    2) After spooling , printing does not continue
    3) An empty page is printed instead
    4) Printing process takes about 60 Mbytes of RAM to perform (??!!!)
    Here is my code :
    class MyDrawings extends JPanel implements Printable
    private Image offImage;
    private Graphics2D offGraphics2D;
    private init_graphics()
    offImage = this.createImage ( 200,200 );
    offGraphics2D = (Graphics2D)offImage.getGraphics();
    public void paint(Graphics g)
    Graphics2D g2 = (Graphics2D)g;
    if (offGraphics2D == null) return;
    // Paint the backgroung
    offGraphics2D.setColor(Color.black)
    offGraphics2D.fillRect(0,0,getWidth(),getHeight());
    g2.drawImage(offImage,0,0,null);
    void jButton3_actionPerformed(ActionEvent e) // 'Print' Button was pressed
    PrinterJob pj = PrinterJob.getPrinterJob();
    RepaintManager.currentManager(this).setDoubleBufferingEnabled(false);
    if (pj.printDialog())
    try
    pj.setPrintable(this);
    pj.print();
    catch (Exception PrintException) {PrintException.printStackTrace();}
    RepaintManager.currentManager(this).setDoubleBufferingEnabled(true);
    public int print(Graphics g, PageFormat pf, int pageIndex)
    if (pageIndex != 0 )
    return NO_SUCH_PAGE;
    Graphics2D g2 = (Graphics2D) g;
    double wscale = pf.getImageableWidth() / this.getWidth();
    double hscale = pf.getImageableHeight()/ this.getHeight();
    g2.scale(wscale, hscale);
    g2.translate(pf.getImageableX(), pf.getImageableY());
    paint(g2);
    return PAGE_EXISTS;
    I use JDK 1.4.0 and Win2000.
    Thank you so much for your help!

    Change the construnctor and the paint as follow
    class MyDrawings extends JPanel implements Printable
         private Image      offImage;
         private Graphics2D offGraphics2D;
    private MyDrawings()
    public void paint(Graphics g)
         Graphics2D g2 = (Graphics2D)g;
         if (offImage == null)
              offImage      = this.createImage(getWidth(),getHeight());
              offGraphics2D = (Graphics2D)offImage.getGraphics();
         offGraphics2D.setColor(Color.black);
         offGraphics2D.fillRect(0,0,getWidth(),getHeight());
         g2.drawImage(offImage,0,0,null);
    void jButton3_actionPerformed(ActionEvent e) // 'Print' Button was pressed
    .

  • Very-Urgent ( Rep- 56048 : Eng Crashed in Oracle9i Graphical Report )

    Hi friends,
    I am getting problem in Oracle9i Reports while generating graphical report.
    The error is : REP-56048 - Engine rwEng-0 Crashed.
    This error is for only Grahical type report.
    Thanks for help.
    saroj gupta.

    When you create a .jsp report, Reports inserts an XML report definition in the <rw:objects> tag. This is why it appears to need an XML parser before it can open up a .jsp file.
    You could try just taking this XML and saving it as a .xml file (ie: remove everything from the .jsp except the content of the <rw:objects> tag). This would at least tell you if the problem is in the XML of the JSP section of the file.
    If you can open up the contents of the xml report then you could try opening the .jsp file up in JDeveloper and see if there are any inconsistencies in the file - ie: unmatched tags.
    If you get an "unable to start the XML parser" error trying to open up the xml file, try creating a simple report and saving and loading to XML.

  • Upgrading Graphics Card (Urgent)

    Ok so recently at Christmas I believe I bought a lenovo H530 desktop, and I was wondering if I could upgrade the graphics card to a Nvdidia GTX 750TI. I want to know if its compatibale with the computer and if not, what is the best graphics card to get for the Lenovo H530 Desktop - Thanks, Charlie.

    Hi ImperialFx,
    Welcome to the Forums  
    As per the query we understood that you are looking for graphic card upgrade for your Lenovo H530 laptop.
    As per the specification of this model it supports Up to AMD Radeon HD 8570 2GB or NVIDIA GeForce GT 635 2GB.
    Click here for the specification.
    Hope this helps. Do post back if the issue persists.
    Best regards,         
    Ashwin. S

Maybe you are looking for

  • Returning an array type from a local method in Web Dynpro Java application

    Hi, In my project, we have a requirement to display 18 rolling months along with the year, starting from current month. How I am going to approach is that I will get the system date and get the current month and send the month and year value to a loc

  • Need an SSD for a mid 2010 MacBook Pro...

    My HDD suddenly died on me! No warning. It's still spinning away, clicking away but totally dead. Not even showing up on any disk repair recovery programs, ***?. Anyhoo, I need a new HDD and have decided to go with an SSD. I have a mid 2010 15" 2.66

  • Project of Jini Implementation in China.

    Hi, everyone! Let me introduce myself, first. I am now a student studying at Beijing University of Post and Telecommunication(BUPT), Beijing, Capital of China. Then give a brief introduction of the project I am now participate in. Recently our projec

  • ABAP runtime errors "SPOOL_I/O_ERROR"

    Hi All, I had problem when run the job program "SAPFGRWE". Suddenly the job terminated and the error message appear is "ABAP runtime errors - SPOOL_I/O_ERROR" . I'm using DB Oracle. SAP Release is 40B. Please help me on this matter. Thank You

  • Converting shapefile to sdo SRID problem

    when i converted shape file had [ PROJCS = "WGS_1984_UTM_Zone_36N" ] to sdo and choose SRID=8307 when i created theme has the result by MapBuilder the result was different from the shapeFile. can anyone tell me why ? and how to fix this ? ....Thanks