How to connect Canvas object by line ?

I want to make an application which can draw object
relationship like UML. for example , after i made the replationship
between two object (draw line), when i drag one object , the line
will be updated automatically .And when i select the connect line ,
this line object will be selected also .
It seems that ,the Grpahic's drawline method is not the
correct choice , how can i do for that ? Make a new control ?
I use the Canvas container as the drawing area.
thanks for your reply.

or , How can i use the MouseEvent to get the draw line ?
What is the object type of a draw line ?

Similar Messages

  • How to connect Businnes Object Enterprise XI R2 to Sharepoint 2007 web-part

    Dear all,
    How to connect Businnes Object Enterprise XI R2 to Sharepoint 2007 web-part?
    We've connected the SQL Server Analysis Services (OLAP) with Voyager, but how to create the dashboard/reporting/pivot-table/KPI with the web-part created with Business Object Enterprise?
    Thank you,
    Julius Fenata

    I am also looking at:
    1. Saving Webi reports on a SharePoint server.
    2. Launching BOBJ report viewer from the SharePoint server using SOA to view these reports.
    Has anyone done something similar? Any ideas and/or documentation available on this?
    Thanks,
    Kashif

  • How to connect two JComponents with line

    Hi,
    I have GUI which draws different shapes(ovals, rectangles etc) as JComponants on a JPanel . I need to be able to select by clicking a JComponant and connect it to another JComponant on the JPanel. Once I haved established a connection I would like to be able to move the connected JComponants yet maintain the connection. Can you please look at my code and advise as to how this can be achieved.
    Thanks.
    LineSelector selector = new LineSelector(windowPanel);
    windowPanel.addMouseListener(selector);
    class windowPanel extends JPanel
    ArrayList lines;
    public windowPanel()
    lines = new ArrayList();
    protected void paintComponent(Graphics g)
    super.paintComponent(g);
    Graphics2D g2 = (Graphics2D)g;
    g2.setColor(Color.white);
    g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
    RenderingHints.VALUE_ANTIALIAS_ON);
    for(int j = 0; j < lines.size(); j++)
    g2.draw((Line2D) lines.get(j));
    protected void addConnectingLine(Component c1, Component c2)
    Rectangle r1 = c1.getBounds();
    Rectangle r2 = c2.getBounds();
    lines.add(new Line2D.Double(r1.getCenterX(), r1.getCenterY(),
    r2.getCenterX(), r2.getCenterY()));
    repaint();
    class LineSelector extends MouseAdapter
    windowPanel conPanel;
    Component firstSelection;
    boolean firstComponentSelected;
    public LineSelector(windowPanel cp)
    conPanel = cp;
    public void mousePressed(MouseEvent e)
    Point p = e.getPoint();
    Component[] c = conPanel.getComponents();
    Rectangle rv = new Rectangle();
    for(int j = 0; j < c.length; j++)
    c[j].getBounds(rv);
    if(rv.contains(p))
    if(firstComponentSelected)
    conPanel.addConnectingLine(c[j], firstSelection);
    firstComponentSelected = false;
    else
    firstSelection = c[j];
    firstComponentSelected = true;
    break;
    }

    Hi,
    these threads can help you
    http://forum.java.sun.com/thread.jspa?threadID=488823&messageID=2292924
    http://forum.java.sun.com/thread.jspa?forumID=20&threadID=607264
    L.P.

  • How can i hide object in line chart?

    In Webi XI R2, i am preparing a line chart for which on x-axis i have two objects like "month name" and "month ID". The purpose of "month ID" is to sort the month name. So sorting is applied on "month ID" column. Now how can i hide this "month ID" column, but still sorting is applied so that month name is displayed in correct order.
    secondly, on the x-axis values are displaying like "AUG/00987","SEP/00988". i.e Month name/month ID. How can i make the line chart to display only month name but still sorting needs to be applied.
    Please advise.

    Hi Raveendra,
    You can try to hide the column from the webi report in a TABLE, and might just work with the table, and make them charts.
    regards,
    Shreyash.

  • How to consider an object as Line Item Dimension?

    Can I have the formula for Line Item Dimension? I know basic idea like If the LID is more than 20% of the fact table then we consider as LID but how can we say that the object having more than 20% than Fact table?

    Hi sanjeev kumar--
    I hope thru that program you will get the ratio between different dimesion tables and the facttable.
    In doing so if the size of the dimesion table is too high then we have to trace out the offending charecteristic in that dimension and have to assign that char as a line item dimension.
    Generally it can be created on single char infoobjects. After creating it directly links to the MD . i mean to say there won't be a dimension for this..
    You can check this under the Tcde listschema .
    Hope this Helps,
    Regards,
    Vishwa.

  • How to connect two object selectors.

    Hi,
    I try to use an object selector as selection for an following object selector in CAF CORE.
    What I want:
    I choose an employee from the first object selector and click on a button "Show all flights". Now the second selector opens and all flights of these employee are shown.
    Is there a tutorial for questions like this? Or could anybody answer my question?
    Thanks and best regards
    Martin

    It's really two diffirent things.
    But you can use ObjectEditor pattern with relationship tab which can display flights for certain employee. So, you select some employee from object selector then  configured object editor is opened and you go to Relation tab of this object editor and see all the flights.
    Check the http://help.sap.com/saphelp_nw04s/helpdata/en/51/4c229fdf96f947847403afc657419b/content.htm
    Aliaksei

  • HT1178 I have BT Infinity at home with the BT modem connected to the phone line and then to a BThub which delivers the wif signal. I have purchased an airport extreme to improve wi fi strength if how do I connect up to hub it states connect modem to WAN o

    I have BT Infinity at home with the BT modem connected to the phone line and then to a BThub which delivers the wif signal. I have purchased an airport extreme to improve wi fi strength if how do I connect up to hub it states connect modem to WAN on back of Airport Extreme.
    Instructions do not mention connection to BT Hub and the BT modem has only one output which you dicsonnect from Hub and connect to airport extreme leaving. Once you do this Hub has no signal.
    How do I rectify
    Paul

    you can also set up the Airport extreme to extend the wireless by hitting the wireless tab in the airport menu then click the drop down menu to select extend
    Apple's "extend" function is a proprietary setting that was designed to only work with other Apple routers.
    It would be extremely unlikely that this setting would work with a BT product, or any other manufacturer's product for that matter.
    But, I haven't tested this with a BT product...and I suppose anything is possible.
    Still, I would be extremely surprised if this worked.
    The AirPort Extreme might "join" the BT network if you try this......but the AirPort does not provide any additional wireless signal coverage when it "joins" a wireless network. In fact, it really does nothing when it "joins" a network except enable the USB port.

  • How do I disable firefox off line it will not let me connect to the web

    how do I disable firefox off line, it will not let me connect to the web

    Go into settings and reset all network connections. Then restart your device by holding the power and home button until the Apple logo appears. You will not lose any data. When the device restarts connect to your wireless network.

  • How to call request object of IPortalComponent in KM Scheduler application

    Hi
    We are reading RFC Table data using JCO Connection Pool(JCOClientPoolEntry. Please find the below teo line code.If we put this code in KM Scheduler application then its throwing error for the request objecct of IPortalComponenetRequest.
    IJCOClientPoolEntry jcoPoolEntry = null;
    jcoPoolEntry = clientService.getJCOClientPoolEntry(sysId, request);
    Can you please let me know how to use request object of IPortalComponent in KM Scheduler application?
    Thanks,
    Susmita

    Hello GopalY,
    In my experience its not possible to call OLE object in Webui. Maybe customer 3 party application will be supply some web service to handle credit card payments. I think this is the simple way to access 3party application.
    Regards,
    Zafer,

  • How to connect to AD without using ADWS?

    How to connect to AD without using ADWS? Is it possible to do it? If yes, can teach me how to connect to AD and find their attributed?

    Hi Noobycy,
    There are few tools to find AD attributes without ADWS. See options you have below
    1.ADFIND -
    http://www.joeware.net/freetools/tools/adfind/  This is a command Line tool
    2.
    The ADSIEDIT tool
    from the Windows Support Tools is a great tool to "explore" the AD.
    http://technet.microsoft.com/en-us/library/cc731547.aspx
    3. ADUC -
    http://www.boostsolutions.com/blog/how-to-find-attributes-of-objects-in-active-directory/
    Regards, MassonTech

  • How to display an object that links to another object

    I am trying to find out how display 2 objects (box's) in a frame and connect them with a line so if I move one box the line stays connected.
    Can anyone point point in the direction of any tutorials or example.
    Eventually I plan to change these box's to be a database table containing attributes and the link representing the fk.

    Eric_Davidson wrote:
    I am trying to find out how display 2 objects (box's) in a frame and connect them with a line so if I move one box the line stays connected.
    Can anyone point point in the direction of any tutorials or example.
    Eventually I plan to change these box's to be a database table containing attributes and the link representing the fk.Which part do you need help with? The drawing of the boxes, the handling of the GUI, the dragging, etc?
    Do you have any code started?

  • How can i return object from oracle in my java code using pl/sql procedure?

    How can i return object from oracle in my java code using pl/sql procedure?
    And How can i returned varios rows fron a pl/sql store procedure
    please send me a example....
    Thank you
    null

    yes, i do
    But i can't run this examples...
    my problem is that i want recive a object from a PL/SQL
    //procedure callObject(miObj out MyObject)
    in my java code
    public static EmployeeObj callObject(Connection lv_con,
    String pv_idEmp)
    EmployeeObj ret = new EmployeeObj();
    try
    CallableStatement cstmt =
    lv_con.prepareCall("{call admin.callObject(?)}");
    cstmt.registerOutParameter(1, OracleTypes.STRUCT); // line ocurr wrong
    //registerOutParameter(int parameterIndex, int sqlType,String sql_name)
    cstmt.execute();
    ret = (EmployeeObj) cstmt.getObject(1);
    }//try
    catch (SQLException ex)
    System.out.println("error SQL");
    System.out.println ("\n*** SQLException caught ***\n");
    while (ex != null)
    System.out.println ("SQLState: " + ex.getSQLState ());
    System.out.println ("Message: " + ex.getMessage ());
    System.out.println ("Vendor: " + ex.getErrorCode ());
    ex = ex.getNextException ();
    System.out.println ("");
    catch (java.lang.Exception ex)
    System.out.println("error Lenguaje");
    return ret;
    Do you have any idea?

  • How to connect my Iridium 9555 to a USB connector on the Mac OS 10.7.3?

    How to connect my Iridium 9555 to a USB connector on the Mac OS 10.7.3?
    i can not create a new network configuration via USB interface on 10.7.3.

    Doesn't look like they've updated their driver in a while.  October 15 - 2010.
    Typically old drivers and 10.7 don't get along so well.  Short answer, unless you know how to write a driver, you might be outa luck. 
    Call their support line and see what they say.
    -G

  • How to connect my macbook pro to my car cd player

    hello how to connect my macbook pro to my car cd player

    If the CD player has audio line outputs, you could tap the audio input port of your MBP.  I do question the practicality of doing so.
    Ciao.

  • How to connect my electric keyboard with the GarageBand?

    I have a CASIO electric keyboard, and I use a cable to connect it from its audio output to my macbook's audio input. And I wanna use GarageBand to create a song with that keyboard. But it doesn't work, only my voice is recorded. I don't wanna use a microphone to record cuz makes a lot noise. Can anybody teach me how to connect my keyboard to the GarageBand directly?

    record from the line-in:
    http://www.bulletsandbones.com/GB/GBFAQ.html#recordlinein
    (Let the page FULLY load. The link to your answer is at the top of your screen)

Maybe you are looking for

  • Does WCS come with the 5508 WLC?

    Forum I am providing a quote to a client for a wireless installation.  I have two 5508 boxes and about 40 AP's on the quote, as well as associated SmartNet. I was reading how the Cisco Unified Wireless Network is comprised of: Controllers Access Poin

  • Problem with cartridges

    Hi,My 932XL Black and 933 Yellow ink cartridge is lying vacant and unused as my older printer stopped working and it was replaced by an HP Officejet  8610. Those two ink cartridge has never been used and it seems like i have wasted around $51 on thos

  • When I right click on a site and click on "mail to" nothing happens. If I use "File/mail to" or click on an email link on a page gmail opens.

    In Firefox options I have removed Gmail as the mail to application, and set it to Thunderbird. In Windows I have set Thunderbird to be default. Windows XP and latest update Thuderbird and Firefox.

  • Group Policy enable-psremoting

    I have been working on this for the last 10 hours. I cannot seem to get it working. I followed all of the steps from  http://www.briantist.com/how-to/powershell-remoting-group-policy/ Under the Security Filtering I have a PC name with a user just for

  • New Mini won't recognize Apple USB modem

    I hate being thick but I can't figure out why my new mini won't recognize the Apple USB modem I just purchased. The network preferences see the built-in Airport card, Bluetooth, Ethernet and Firewire, but I cannot get it to recognize any kind of mode