DRAWING NODES and LINKS

I am trying to draw a 3-d swing that shows nodes as circles and links between them. I have used AWT API for it, but I realised that i cannot use things like tooltips to see labels on the nodes. Also i have tried unsuccessfully to ensure that the links only touch the circumference of the nodes without showing inside the centre. How can I use swing to achieve this?

Hey, check out this thread... You may find the final post of some use. I used something similar to it to transfer a file from the server to a my hard drive via an applet.
http://forum.java.sun.com/thread.jsp?forum=22&thread=236396

Similar Messages

  • Nodes and links are not displaying in IE10 browser - mapviewer ps6

    Hi,
    Node and link are not visible on the IE10 browser where as in IE9 they are displaying properly.
    In IE10 browser ,
    when we set compatibility settings - Display All websites in compatibility view --> node are displaying properly.
    when we deselect this node are not displaying properly
    Is there any existing bug on mapviewer?
    Thanks in Advance
    Aruna

    DRK Montreal,
    try opening Terminal, and running the following command in the Terminal window:
    nslookup www.pinatize.me
    If you still have access to some of those other Mac computers, try running the same command on them also for comparison.
    Please include in your reply the full output from that command.

  • Oracle NDM node$ and link$ extra attributes

    Hello,
    is there any way to create the network with extra attribute columns in node and link tables? I like to store other attributes in node table - without keeping them on a different table, and on link table I would like mustiple costs, etc.
    Also I noticed there is a userData method in node. is it possible to save this userData to somewhere per node?
    Best Regards,

    Hi,
    There are a few ways to have multiple cost columns. You could actually create a network on a view, and redefine the view to use the cost column you want before doing the analysis. The other way is just to create a new network, using the exising node and link tables but different cost columns. I assume this is the example you are looking for, so here is an example that adds a network called MY_NEW_NETWORK, selecting all the information from MY_OLD_NETWORK, and changing the node and link cost columns to NEW_NODE_COST_COLUMN and NEW_LINK_COST_COLUMN.
    Hope this helps.
    insert into user_sdo_network_metadata (
    select 'MY_NEW_NETWORK',NETWORK_ID, NETWORK_CATEGORY,
    GEOMETRY_TYPE, NETWORK_TYPE, NO_OF_HIERARCHY_LEVELS, NO_OF_PARTITIONS, LRS_TABLE_NAME,
    LRS_GEOM_COLUMN, NODE_TABLE_NAME, NODE_GEOM_COLUMN, 'NEW_NODE_COST_COLUMN', LINK_TABLE_NAME,
    LINK_GEOM_COLUMN, LINK_DIRECTION, 'NEW_LINK_COST_COLUMN', PATH_TABLE_NAME, PATH_GEOM_COLUMN,
    PATH_LINK_TABLE_NAME, PARTITION_TABLE_NAME
    from user_sdo_network_metadata
    where network = 'MY_OLD_NETWORK');

  • Graphic - drawing nodes and edges, place elements and mouse event

    Hello, I am new to Java. I would like to do the following:
    show graphically a node and edge structure in star format, where each of the nodes, including the centre node, is a string.
    The number of edges is varialbe, so I guess I have to divide the 360' arc into equally spaced angles, define the distance at which to place the nodes at the extremity and then draw n-lines from the centre node (also a string of characters) to each of the peripherical nodes (also a string of characters).
    Additioanally, I would need a mouse click event, where by when I click on any of the nodes (including the periphery ones), an certain event is triggered, depending on which node I am clicking. Basically, something that recognise that the mouse is on top of a specific String when clicked (to make things more complex, I would need a left click or a righ click with pop-up menu of actions..but I guess, that's the easy part)
    thanks to all for the help

    My advice is to start learning Java:
    http://java.sun.com/docs/books/tutorial/
    ... and using existing tools instead of re-inventing the wheel:
    http://www.jgraph.com/jgraph.html

  • View for a network node or link table

    Can a view be used for a nework node or link table? The process sdo_net.validate_network hangs when I try to validate a network based on views for the node and link tables.

    I am using a logical model. The sql statement (checking link/node relationship) that hangs is:
    select count(a.link_id) from vlinks a
    where not exists
    select * from vnodes b
    where b.node_id = a.start_node_id or b.node_id = a.end_node_id
    I gather there is a concurrency issue with my links view because it joins a table with itself. I have a link table that has the start and end nodes defined on two records. Here is my view script:
    create or replace view vlinks
    (link_id, link_name, start_node_id, end_node_id, link_type, active, link_level, cost, parent_link_id)
    as
    select a.id, 'Link '||a.id, a.nodeid, b.nodeid, 'simple', 'Y',1,0,''
    from vnodes a, vnodes b
    where a.seq=1 and b.seq>1 and a.id = b.id
    I can create tables from my views and validate them successfully through sdo_net.validate_nodes_schema, sdo_net.validate_links_schema, and sdo_net.validate_network.
    I can analyze the network model through the Java API using the reachable nodes, shortest path, and spanning tree methods without any problems.
    I guess I'll validate my view links by counting the total number of links and subtracting the number of links joined successfully at the start and end nodes - if 0 then all links are valid. E.g.:
    select count(link_id) from
    select link_id from vlinks
    minus
    select a.link_id from vlinks a, vnodes b, vnodes c
    where a.start_node_id = b.node_id
    and a.end_node_id = c.node_id

  • Displaying a mixture of text and links in a single node of af:tree

    Hi,
    I want to display few links embedded in text as a node in <af:tree>.
    For example, I want a single node in a tree to show three links with text - "Different type of email services are gmail, yahoomail,hotmail".
    (gmail,yahoomail and hotmail are links)
    Is there a good way of displaying this? I tried following options
    1) I have a property named "linkText" in a bean instance mybean of MyBean.java. "linkText" contains required text and "a href" tags to display links. I used the following code in jsp page
    <af:tree>
    <f:facet name="nodeStamp">
    <f:verbatim>
    #{mybean.linkText>
    </f:verbatim>
    </f:facet>
    </af:tree>
    <f:verbatim> displays the EL expression as it is. I am not able to access the value.
    2) I also tried to use <af:outputFormatted>. Though it supports "a href" tag, it does not support "target" attribute of the same tag.
    Is there any other way of doing this?

A: Displaying a mixture of text and links in a single node of <af:tree>

On a related note ...is it possible to call a commandLink to call an existing java bean/function within an outputText?
For example:
Say I had an outputText that dumped a /etc/hosts file and I wanted to put in a command link to ping each host and pass the particular IP address to it. What would be the best method for doing that?
135.122.29.122 host1.me.com {color:#ff0000}_PingMeLink_
{color}135.122.29.117 host2.sd.me.com _{color:#ff0000}PingMeLink{color}_
So can I embed this in an outputText somehow or is there a better way to do this?
&lt;af:commandLink text="PingMeLink"
action="#{NetworkController.PingAHost}"/&gt;
Thanks for your help!

On a related note ...is it possible to call a commandLink to call an existing java bean/function within an outputText?
For example:
Say I had an outputText that dumped a /etc/hosts file and I wanted to put in a command link to ping each host and pass the particular IP address to it. What would be the best method for doing that?
135.122.29.122 host1.me.com {color:#ff0000}_PingMeLink_
{color}135.122.29.117 host2.sd.me.com _{color:#ff0000}PingMeLink{color}_
So can I embed this in an outputText somehow or is there a better way to do this?
&lt;af:commandLink text="PingMeLink"
action="#{NetworkController.PingAHost}"/&gt;
Thanks for your help!

  • Dynamic Table control with context nodes and attributes?

    Hi all
    I have node and attributes in context. i want to create table dynamically using this node and attributes, can anyone give code how to do this???
    Thanks
    Madhan.

    Hi
    Go through this [link|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80a3de18-ee00-2d10-bfb3-946d7e00fd91?quicklink=index&overridelayout=true].
    Regards
    Arun.P

  • OIM11gR2 - API - how to create accounts and link them to an oim user

    hi,
    my problem is the following:  I would like to import a lot(1000+) of different service accounts to my oim system and link them to oim users.
    at the moment, the information which service-account belongs to which person is stored in a textfile.
    I use this API code to create accounts:
    ProvisioningService service=getClient().getService(ProvisioningService.class);
    ApplicationInstanceService service=getClient().getService(ApplicationInstanceService.class);
    ApplicationInstance appInstance=service.findApplicationInstanceByName("LinuxServer001");
    FormInfo formInfo=appInstance.getAccountForm();
    String formKey=String.valueOf(formInfo.getFormKey());
    AccountData accountData=new AccountData(formKey,null,null);
    Account account=new Account(appInstance,accountData);
    account.setAccountType(Account.ACCOUNT_TYPE.Primary);       
    service.provision(userKey, account);
    this works fine! the account is displayed in the section  "user accounts", but the status of the created account is "Provisioning".
    when I reconcile this linux server, oim doesn't establish a link between the service account on the target system and the created account! why?
    how can i solve my problem? which information is missing, to establish a link between an existing account on a target system and an api created account?
    thank you!
    br,
    max

    Thanks, Brian, for your support! - It's working.
    It's hard to understand why NI did not pass this parameter to the top of the call chain...
    I also needed some time to understand the syntax of the string passed to the subaddress node:
    The name of the worksheet needs to be framed by single quotation marks and the following cell address must preceeded by an exclamation point (!).
    A working link pointing to cell "A1" of "Worksheet 1" looks like:
    'Worksheet 1'!A1
    Maybe also of interest: If you want to point the link to a worksheet inside the document itself, the parameter "address" (URL of link - href) can be left empty.
    Thanks and Regards,
    Ingo

  • Create a tree node and show the report on the same page

    Hi,
    I have created a tree for our organization and each node represents a unit. The top one is office level and followed by division and brach.
    I have created a reprot on the same page as the tree node.
    What I want to do is:
    I would like to click a specific node and the report shows only that node and bellow. So, If I click division A and division A has two branch. my report shows only those two braches that bellong to division A.
    Can someone help me?
    Thank you

    The only way it could work is using iframes. Now OBIEE 11g would not allow iframes inside it's dashboard. It offers a dashboard object called "Embedded content" which is a restricted iframe kinda thing but unless you get this object's id from generated HTML you can change it's content dynamically. Besides, such an implementation may break with next patch. So here is an idea.
    Create a HTML page with two iframes, left one will hold all the reports with links (you can always generate a list of reports through catalog manager, open it in excel and make HTML links from it) that open report urls (in the format of ./saw.dll?GO&Path=....) in right iframe (using javascript open.window method). Once that page is working, call this page from dashboard using an action link. This is slightly twisted approach but at least it would give you what you asked for.
    About making the report list dynamic, I am afraid there are no easy answers. OBIEE provides web service that will allow the users to query catalog to get a list of reports. You can try some basic JSP to access the web service and generate the list dynamically. But that is not something I can provide here.

  • Drawing Markup and Annotations using Reader with Commenting-Enabled PDFs

    I recently purchased Acrobat Standard to produce commentable PDFs for my contributors who use Acrobat Reader. 
    The page linked below says that I can use Acrobat Standard to "Manage shared reviews, collecting everyone's feedback in one PDF and letting reviewers build on one another's comments‡" 
    Adobe Acrobat XI 
    I have used these features in the past with Acrobat Pro, but there wasn't any documentation that hinted at what appear to be limitations.  For example, using Acrobat Standard I can send a PDF for email review, but the only tools that my contributors can use with Reader are the sticky note and highlighter.  In the past, when I used Pro,  the whole suite of markup capabilities including Drawing Markup and annotations like strikethrough were available.
    I have looked everywhere for information about how to enable these other commenting tools, but can't find anything.  Am I missing something or is this some misleading marketing materials that have led me astray.

    You either need to upgrade to Acrobat Pro or the users need to upgrade to
    Reader XI, where all of the commenting tools are available by default.
    On Fri, Feb 20, 2015 at 9:14 PM, trailpixie <[email protected]>

  • Exposing content nodes as links in WLP 9.2

    Hi!
    I am a portal 'newbie' with a POC on my hands, in which one goal is to index the content in a BEA Repository with my company's search technology. I have managed to expose the content node i'name' and 'path' properties in a simple web page, but I really need to turn these into searchable links. In other words, I want to traverse a path, extract all nodes, and expose them as links.
    Again, my knowledge of CM is limiited here - just can't see how to proceed. Here's the working code I have so far. Any specific code tips would be greatly appreciated!
    try {
    Node node;     
    ContentContext ctx=new ContentContext(request);
    ISearchManager searchManager=ContentManagerFactory.getSearchManager();
    String searchPath="/BEA Repository/BIPIFolder";
    Search sch=new Search("contributor='weblogic'");
    sch.setSearchPath(searchPath);
    com.bea.content.paging.ISortableFilterablePagedList list=searchManager.search(ctx,sch);
    com.bea.content.paging.IPagedListIterator iterator=list.iterator();
    %>
    <table>
    <tr><td>Content Name</td><td>Content ID</td>
    <%
    while(iterator.hasNext()) {
         node=(Node)iterator.next();
         %>
         <tr>
         <td><b><%=node.getName()%></b></td>
              <td><i><%=node.getId()%></i></td>
         </tr>
         <%
         } catch(Exception e) {}
    %>
    Paul L.

    Hi Paul,
    I'm not sure exactly what you want to do when a node is clicked upon. Presuming you want to 'expore' that node and its children...
    It sounds like you have some minimal rendering code in place, but you need the rendering code to respond to link clicks.
    The easiest way to do this is to have your JSP/servlet accept parameters, and have your rendering code pass a request parameter when the link is clicked, indicating the desired node to render when a link is clicked upon. Your rendering code then needs to 'do the right thing'.
    There are additional options for rendering nodes aside from that above-- you might want to take a peek at the display templates feature, for example. This feature allows each node type (objectClass) to have its own renderer. So for example, one could display a node of ObjectClass 'Car' by displaying the 'Car' template, and a node of ObjectClass 'Camera' by displaying the 'Camera' template.
    It might also be helpful to take a peek at the content portlets sample on dev2dev codeshare, which performs some of this exploring. You can find it at
    https://codesamples.projects.dev2dev.bea.com/servlets/Scarab?id=S284
    -Steve

  • Node and List

    Hi,
    I need to shuffle and merge 2 list that would be enter by the user. I have created 2 classes, Node and List class(from references) and a test class to do my algo.
    (in my list class, I would stop adding the node behind when user entered 9999)
    Eg:
    Enter first List: 1 2 3 9999
    Enter second List : 4 5 6 7 9999
    I would need to get the result as
    1 4 2 5 3 6 7
    Which mean, the newlist will get the head of the firstlist and set its next to the head of second list. And back to the 2 element of first list then 2nd element on second list and so on.
    my code is shown below. After some debugging, I noted that my c1 would changed if I changed c3. I do not know how to express myself and question well in words. Hope anyone can help and assist.
    Thanks alot.
    import java.io.*;
    // A class of Node which allows us to construct
    // a node
    // This defines a ?normal node? (type).
    public class Node {
    private Object item;
    private Node next;
    // This defines a node at the end of the list.
    public Node(Object newItem) {
    item = newItem;
    next = null;
    } // Constructor
    // This is to create a ?normal? node.
    public Node(Object newItem, Node nextNode) {
    item = newItem;
    next = nextNode;
    } // Constructor
    // This is to update the item field of a node.
    public void setItem(Object newItem) {
    item = newItem;
    } // end setItem
    // This is to read the item field of a node.
    public Object getItem() {
    return item;
    } // end getItem
    // This is to update the next field of a node.
    public void setNext(Node nextNode) {
    next = nextNode;
    } // end nextNode
    // This is to read the next field of a node
    public Node getNext() {
    return next;
    } // end getNext()
    } // end class NodeList Class
    public class List {
    Node head;
    public void initilise() {
    head = null;
    public boolean empty() {
    return (head==null);
    public void addOneNodeAfter(Node p, Node newNode) {
    newNode.setNext(p.getNext());
    p.setNext(newNode);
    // unnecessary
    public void addOneNodeBefore(
    Node previous, Node p, Node newNode) {
    previous.setNext( newNode);
    newNode.setNext(p);
    public void addOneNodeBeforeHead(Node newNode) {
    newNode.setNext(head);
    head = newNode;
    public void deleteOneNodeAfter(Node p) {
    p.setNext( p.getNext().getNext());
    public void printList(Node p){
       p.setNext( p.getNext().getNext());
    void constructListFront(){
        Scanner input=new Scanner(System.in);
        int x = input.nextInt();
        Node p = new Node(x);
        while (x !=9999){
            addOneNodeBeforeHead(p);
            x = input.nextInt();
            p = new Node(x);
    Node tail(){
        Node p = head;
        while (p.getNext() != null){
            p = p.getNext();
        }return p;
    void constructTail(){
        Scanner input =new Scanner(System.in);
        int x = input.nextInt();
        Node p = new Node(x);
        Node t = tail();
        while ( x != 9999){
         addOneNodeAfter(t,p);
         t = t.getNext();
         x = input.nextInt();
         p = new Node(x);
    void printList(){
        Node p = head;
        while ( p != null){
            System.out.printf(" "+ p.getItem());
            p = p.getNext();
        System.out.println();
    int getLength(){
        int length =0;
        Node p = head;
         p = p.getNext();
        while ( p != null){
            length = length + 1;
            p = p.getNext();
        return length;
    }Lastly, My test class
    public class test {
       public static void main(String[] args) {
    List shortList = new List();
    List longList = new List();
    System.out.println("Enter first list");
    shortList.constructListFront();
    System.out.println("Enter second list");
    longList.constructListFront();
        List newList = new List();
         Node c1 =  shortList.head;
        Node c2 = longList.head;
        Node c3 = shortList.head;
    newList.head = c3;
    c3.setNext(c2);
    c3 = c3.getNext();
    c1 = c1.getNext();
    c2 = c2.getNext();
    while ( c1 != null){
        c3.setNext(c1);
        c3=c1;
        c3.setNext(c2);
        c3 = c2;
        c1 = c1.getNext();
        c2 = c2.getNext();
    c3.setNext(c2);
    shortList.printList();
    longList.printList();
    newList.printList();
       }

    seah_ly wrote:
    Hi,
    My question is, I have manage to get 2 list, shortList and longList. But, how can I created another newList which contain alternate element from shortList and longList.
    thanks a lot.
    * Merge elements from ListA and ListB in parallel into MainList
    while(ListA.head != null && ListB.head != null) {
      //Reference to head of ListA
      Node nodeA = listA.head;
      //Make new head of ListA the next element in the list.
      listA.head = listA.next();
      //Set the next element of nodeA to null, we only want to add the single element, not its links
      nodeA.next() = null;
      //Add the element
      MainList.addTail(nodeA);
      Node nodeB = listB.head;
      listB.head = listB.next();
      nodeB.next() = null;
      MainList.addTail(nodeB);
    //Either both lists heads are null or exclusive or list head is not null, so add head and it's corresponding links to list.
    if(ListA.head != null) {
      MainList.addTail(ListA.head);
    } else if(ListB.head != null) {
      MainList.addTail(ListB.head);
    }Mel

  • Cin node and c++ code

    Hi.
    I need to make a LabVIEW program to call and use c++ code. Not only calculate numbers using the c++ code, the LabVIEW program needs to send boolian signals and be able to talk to the c++ code. Such things possible? Any good article or information to teach how to do it?
    Thank you.
    Airo

    I'm not sure why it shouldn't be possible. At least as long as you are somewhat C savy and know how to configure your C compiler and linker to create specific output. However to be honest I think CIN programming has had its days. It does not really have that many advantages anymore but definitely some disadvantages above calling an external shared library through the Call Library Node.
    As a reference about CIN or DLL usage in LabVIEW I recommend the online help documentation Using External Code in LabVIEW accessible through Help->Shearch the LabVIEW Bookshelf.
    Rolf K
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • "Missing" EPS Nodes and Projects in P5

    One of my users has managed to "delete" a high level EPS
    node so currently we have lost a number of EPS nodes and
    projects. However if we try and recreate the "missing"
    objects the system tells us the EPD node ID or Project ID
    must be unique. There must be some setting somewhere that
    is stopping the system from displaying these
    nodes/projects - if the cannot be recovered then I think
    the next best option is to persuade the system that the
    IDs are not in use so that we can rename the projects
    recovered from backup (project IDs are important as they
    link to other systems)

    Ok, here's the query to list out your EPS nodes (this
    was written with P6 but should be the same in
    P5):
    <br
                              />SELECT     
                              PROJWBS.wbs_id <br
                              />          ,PROJWBS.wbs_short_name
                              <br
                              />          ,PROJWBS.wbs_name,
                              PROJWBS.obs_id<br
                              />          ,PROJWBS.parent_wbs_id<br
                              />          ,PROJECT.proj_id<br
                              />FROM PROJECT INNER JOIN PROJWBS<br />ON
                              PROJECT.proj_id = PROJWBS.proj_id<br />WHERE
                              PROJECT.project_flag ='N'<br />AND
                              PROJWBS.proj_node_flag = 'Y'<br />ORDER BY
                              PROJWBS.wbs_name<br /><br
    />Note that I have listed the parent wbs id which
    is important if some of your "missing" nodes are
    parents of nodes which aren't missing, or vice versa.
    Also, you will want to check the OBSPROJ table to make
    sure the wbs_id's you found above aren't linked with
    any OBS/PROJECT combinations.
    <br
    />DISCLAIMER STUFF I have no idea what the
    consequences are of changing or deleting values from
    these tables, so I can't really recommend a course of
    action, but maybe this'll get you started. Changing
    anything outside the business logic of the SDK/API or
    the actual software is tricky business. I'd run
    anything you plan to try past Primavera first. Then
    I'd test very thoroughly in a development environment
    before applying to live data, which I would back up
    immediately before pulling the trigger. <br
    />
    Hope this helps!

  • Is it possible work (compile and link wi

    thout errors) very well one program written and compiled on Linux with gcc command for C program into Labview ? I know Labview support C codes, but I don't know if support some program done on another operating system, like Linux with other compiler (gcc).Is it possible work (compile and link without errors) very well one program written and compiled on Linux with gcc command for C program into Labview ? I know Labview support C codes, but I don't know if support some program done on another operating system, like Linux with other compiler (gcc). Because in Linux we have different device drivers (/dev/*) to access peripherals, like serial port RS-232. However, can I copy source code from Linux to "Call library Functional Node"
    tool ? And work it very well like in Linux before ?

    thout errors) very well one program written and compiled on Linux with gcc command for C program into Labview ? I know Labview support C codes, but I don't know if support some program done on another operating system, like Linux with other compiler (gcc).Hopefully, the differences in the implementations of the language itself would be fairly well documented. Therefore I would suspect that the biggest problem you'll have in this port is when the code starts trying to connect to the outside world--like the serial ports you mentioned.
    Personally, if I had documented C code (or at least a reasonable description of what the code is supposed to do) I would say to heck with CINs and just port the application to LV. You probibly won't spend any more time doing a complete port and the result will be more extensible and maintainable that the C ever was (or could ever be). But that's just me and my aversion to doing things the hard way...
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Maybe you are looking for

    • SAP R/3 4.7 EE & E-recruiting

      Hi, I m looking for some information related to Addition of E-recruiting to SAP R/3 4.7 EE I understnad for this e-rec shud be implemented on a seperate instance and use the ALE's for Data Transfer. I would like to know the Complexity and the Time in

    • Re: Help from one of the BT Team? Billing Issues

      Feeling cheated by the customer services after trying to negotiate a discount to stay with bt I was offered a reduction in price and it all sounded good so went ahead. Then in the middle of the next week received an e mail saying my cloud space was r

    • How to add image to post

      Is there a way to add an image to a post

    • CS3 to CS5 lost keywords, labels and ratings

      I have just moved from bridge CS3 to CS5 and find that the keywords, star ratings and colour labels on my images have all disappeared. Can anyone tell me how to get them back please? There was a lot of work put into them over time.

    • ITunes shuts down when I plug in my iPod

      I've used my iPod without a problem since Christmas. For the past week, when I plug in my iPod, iTunes shuts down due to an unnamed error. I have reinstalled all my USB drivers, removed all of my Apple software twice and reinstalled it twice (once wi