Vertex and edges

How do you represent vertexes and edges on java?? Is there a special interface or class for this?? I need to represent a 2d array with this
something like
0-0-0-0-0
I I I I I
0-0-0-0-0

public void addToGlass(JComponent c){      
       glass.add(c);
}The component(s) you are adding to the glass pane state they are opaque, but they are not honoring that property. The result is drawing artifacts.
Another problem is that the glasspane covers all the frame so it could happen that users put a vertex out the image and over just the scroll!By design, a glasspane is meant to cover the whole frame minus the window decorations. Perhaps you can insert some sort of clipping logic into your code. Ignore attempts of the user putting a vertex where it should not be.

Similar Messages

  • Any free library for graph layout (vertexes and edges)?

    Does anybody know any free library for graph layout (vertexes and edges)?
    I would like to create applet which:
    1) will read definition of graph - for example like the list of edges
    (vertex11-vertex12; verte21-vertex22; ...; vertexN1-vertexN2)
    2) will generate layout of it (like Circle, Sugiyama, Radial Tree, Tree etc.);
    3) will listen to user which will touch of some vertex and it can:
    3.1) display some information about itself;
    3.2) expand itself (that is: it will show-display all its neighbours-vertexes) or
    collaps itself (that is: it will hide all (all almost all) its neighbours-vertexes.
    I do not want to create the whole Java code for layout algorithms:
    I would like to use some pretty Java library. That is library which has:
    1) methods for defining the topological structure of graph
    (that is the list of vertexec and edges between them);
    2) methods for drawing - visualising of it (like tree, radial tree, circle, etc.).
    I have tried many libraries but I can not such library which:
    - is free (so yFiles no);
    - is small and compact (like TouchGraph);
    - works with JDK 1.3.1, no higher (so Jung no);
    - has a nice API (so JGraph no);
    - is alive (so TouchGraph no - it ihas 2 ywars old its last update);
    - works correctly (not like JGraph - JGraphAddons:
    it has 8 layout algorithms, but most of them does not work).
    Has anybody any tips?
    Thank you very much in advance.
    Mirek

    Hi Owen,
    I promiss I will notice, if I wil find some suit free library. But I think my requirements are not so high. For example there are some tips:
    1) TouchGraph: it is VERY small and compact (that: it has no other dependences), but it has 2 years old update - so it writes to console window information about "obsolete" code when I run its applet; and it has no live forum; but I like its API, but it has some bugs!
    2) JGraph has nice layouts (but they do not work all) and very unpleasent methods for defining of topological structure of graph (vertexes and edges between them). But there is indipendent library JGraphT, which can cooperate with JGraph, and it has very nice API for defining the graph from the topological (not visual) point of view (addVertex, addEdge etc.). But JGraphT is not updated so often like JGraph and therefore there is problems with its colaborate with it. And also have bugs, like JGraph.
    3) Yesterady I have found next library: JGraphOpen - it has many examples (for visualising of graphs and for standard tasks for graph theory (the shortest way etc.) but it is also (like TouchGraph) 2 years old and is not so small like it.
    So has anybody any idea? I would like to find some other free libraries or some tips how to force to cooperative JGraph + JGraphT.
    Thanks
    Mirek

  • Windows 8 Hot Corners and Edges not working.

    All my hot corners and edges have stopped working since the windows 8.1 update. Not really affecting the pc performance but it was a useful feature I miss. Don't suppose anyone can help?
    (checked the pc settings as well, and the features are enabled).

    step 1. HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ImmersiveShell\EdgeUI
    step 2. Set both DisableTLCorner and DisableTRCorner to the data value of
    0
    step 3. exit and Restart computer
    Try this option and everything is ok :)
    Reg Image
    http://gdurl.com/Gq8B

  • Corners and edges settings have no effect on Win 8.1 Stream 8

    On my Stream 8
    PC Settings -- Under PC and devices -- Corner and edges -- Corner navigation, there are on/off settings for upper left and right.
    Upper Left (if on) - click, switch between my recent apps
    Upper Right (if on) - touch, show the charms
    Neither work as advertised.  Tried toggling on and off.  No effect.
    Not the end of the world as we know it, but wondered if others have run into this as well and is there a fix.  

    This was discoverd by someone shortly after the stream 7 release.. many of the edge swipe commands wouldn't work. If you use the selector box on the desktop you will see the digitizer is configured so that no touch is registered from about 3-4 pixles of the outer edge of the screen. This makes it hard to impossible for some edge swipe commands to work. Luckly the main ones work like swiping the right side, but alas a bit of a bad oversight on HPs end. 

  • Filters "underwater" and "edges" gone

    Hey this is really starting to bug me. I remember that there was a download for a couple of filters for registered users of MOTION. It included the "underwater" and "edges." I do have these installed on my MDD running MOTION 2, but for some reason I cannot copy them to my MBP on which I have Final Cut Studio 5.1. Could somebody help me out? I need both filters for a project I'm currently working on and I can't figure out how to get them. For some weird reason, my registration number doesn't work on the apple website, even though the soft is registered. Argh!

    Just quoting the Apple system requirements on the download page:
    "not supported on Intel-based Mac computers with Rosetta"
    But these still won't install if you've upgraded to Motion 3, no matter what the processor.
    So... DOES anyone know a workaround to install these within Motion 3, or move them from an existing Motion 2 install to Motion 3?

  • Noges and Edges(graph) representation in Flex

    Hi,
    We want to develop a component to render a graph representing nodes and edges using flex without using a third party API.
    Can anyone share your views or how can it be done?
    Thanks & Regards,
    Madhavi

    Hi,
    You can make your own charts (Bar, Pie etc etc). U would have to use drawnig API of flash.
    Can read on it @ http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118a9b90204-7dce.html
    Using Graphics class you can make your own logic to make different charts.
    For  reference:  http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Graphics. html?filter_flex=4.1&filter_flashplayer=10.1&filter_air=2
    Thanks.
    Abhinav

  • Draw graph with vertices and edges

    Hi, all,
    I'm trying to generate a graph with nodes and edges by using Swing. The problem is I want to generate the graph automatically, which means the program need to know how to put the nodes so the edges among them won't have to cross the nodes. The free software i can find online now can draw nodes and edges, but still need the user to specify the position of the node. Please help me out if you know any such software packages! Thanks a lot in advance!
    J.H.

    you could try
    http://www.utc.edu/~cpmawata/petersen/lesson8.htm
    http://www.ff.iij4u.or.jp/~kanada/ccm/coloring/
    and
    http://student.cosy.sbg.ac.at/~wdietl/study/cs612/Coloring.java
    http://student.cosy.sbg.ac.at/~wdietl/study/cs612/pres.html
    asjf

  • The middle handle on the rectangle is not there anymore when I select it with the black arrow (v) tool. Show bounding box and edges are both on. Where dd the middle anchor go??

    The middle handle on the rectangle is not there anymore when I select it with the black arrow (v) tool. Show bounding box and edges are both on. Where dd the middle anchor go??

    haggyabeken,
    I am afraid you have come across the Live Rectangle bug which is limited to the MAC versions starting with 10.7 and 10.8, but not 10.9 (Mavericks), see this thread linked to below.
    https://forums.adobe.com/thread/1595973
    So a switch to Mavericks with a reinstallation might be the way to solve it here and now.
    To get round it in each case, it is possible to Expand the Live Rectangles to get normal old fashioned rectangles, or to Pathfinder>Unite, or to use the Scale Tool.
    A more permanent way round that is to create normal old fashioned rectangles, after running the free script created by Pawel, see this thread with download link:
    https://forums.adobe.com/thread/1587587

  • Problems with Vertex and ECC 6.0

    We have recently upgraded to ECC 6.0. We applied the CodePage to the R# database and the connection to Vertex was fine. But, the connection no longer worked after we upgraded to release ECC 6.0. We are receiving a TP connect error when checking the connection in SM59. We still do not have a solution. Can someone out there pleasssse point me in the right direction?

    Hi Brett,
    sorry, but I think you do not fully understand the difference of an IP and a port ...
    The IP is the thing, that makes the servER unique and the Port is the ing that makes the ServICE unique. As you have to use the gateway of your instance it will ALWAYS be sapgw00 as I do exepect that you are using instance number 00. In your case, there is just no reason, to install a second gateway instance - this makes it just more complicated ...
    If you want to register from another IP (from another server), this is no problem either. Just move your config & programs over to that other server (where I don't see a reason as well) and it will work, because RFC is used to be located on different servers )
    =>
    I would just call your current program 3 times and let it run 3 times in the current subsystem, that you opted for and then it will work "round robin" and I would be interested in the question, if it still is unstable ...
    Regards
    Volker Gueldenpfennig, consolut.gmbh
    http://www.consolut.de - http://www.4soi.de - http://www.easymarketplace.de

  • Identifying rings and edges with problems

    Hi
    I have new polygon layers that produce a validation error for a polygon of gtype of 2007:
    13350 [Element <1>] [Rings 1, 8][Edge <9> in ring <1>][Edge <33> in ring <8>]
    The error is:
    ORA-13350: two or more rings of a complex polygon touch
    Cause: The inner or outer rings of a complex polygon touch.
    Action: All rings of a complex polygon must be disjoint. Correct the geometric definition of the object.
    I can see the vertices using SDO_UTIL.GETVERTICES but I cannot find a way to identify where the Rings start. I assume Edges are the connecting lines between consecutive coordinates.
    My questions are
    1) Where is the documentation on where Rings start?
    2) Is there an easy way to resolve this error? If I can find the ring docs, I can probably resolve the error by following the coordinates, but I am hoping for a clean tool to do this.
    Thanks.
    Roger

    hi roger,
    Are you patched all the way to 10.2.0.3? I noticed a bug in SDO_GEOM.SDO_UNION in 10.2.0.2 and below whereby if you try to UNION two polygons with a void in between and single touch point on one side of the void, the resulting polygon has the void still as a void rather than as a hole that touches the outer ring at a single point. This creates a 13350 error. Here is some lame ascii art you could view in courier new if I am not making sense. Its too bad we can't attach a little mspaint graphic to these posts. The problems is not present in 10.2.0.3.
    | POLYGON A |
    | ------------ |
    | | VOID \|
    -------------------+
    | POLYGON B |
    | UNIONED POLYGON |
    | ------------ |
    | | VOID \|
    | --------------
    | |
    If anyone knows the bug number off the top of their heads, I'd like to know since I am using this issue to push everything to 10.2.0.3.
    Cheers,
    Paul

  • Applying  Frames and Edges to picture

    Okay I am using Photoshop CS2 on Windows. I downloaded some jpg frame images from the net. They are black and white mask image
    http://www1.istockphoto.com/file_thumbview_approve/1270337/2/istockphoto_1270337_black_gru nge_frame_mask.jpg
    I want to apply this frame/border to my personal images. Is there a simple way to do this? A tutorial link would be great. Thank you

    Copy/paste or drag it to your image, so it appears as the layer above your image. Use the edit menu... transform, and transform it to the edges of your image. Then, set the blend mode in the layers palette to multiply for a black edge. If you want a white edge, use image... adjustments... invert and then set the layer blend mode to screen.
    J

  • 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

  • Exporting with alpha channel and edges are ragged

    I've got a short animation that is mainly a PSD of a map of NC with some animated push pins on it. I've got a local cable provider wanting an export of the animation with an alpha channel. He's using Premiere on a Mac, I'm on PC. No matter what codec I use that supports an alpha channel, the outer edge of the graphic of the State comes out ragged. Zooming in to the PSD in PhotoShop shows that the edge is antialiased, so I would imagine that this is what is causing the ragged edge on export.
    Here's grab of the export. This is with QT Animation codec-quality 100, but the same results occur with DNxHD, Cineform, PNG, etc.

    I think you are just seeing the extra areas of the fill.
    If the output files works correctly in the editor, you should be good to go.
    MtD

  • Sorting Edges of a vertex

    Could someone please help me?
    My program is made up of a canvas to which vertices and edges can be drawn on. It has the following class to which vertices are made from
    public class Vertex implements Serializable{
         float xpos;
         float ypos;
         Vector vertexEdges;
      public Vertex( float x, float y) {
           this.xpos = x;
           this.ypos = y;
           vertexEdges = new Vector();
    }It then has an Edge class from where edges are created
    public class Edge implements Serializable{
    Vertex first;
    Vertex second;
    Midpoint m;
    double edgeLength;
      public Edge(Vertex end, Vertex otherEnd, Midpoint crossing) {
           this.first = end;
           this.second = otherEnd;
           this.m = crossing;
           this.edgeLength= getEdgeLength();
    }Each vertex stores a list of the edges it is attached to in a vector called vertexEdges. I want to sort these edges so they are in order to which way they appear around the vertex.
    An example would be like the centre of a clock, it has two arms. I want to find out the distance between the two arms in degrees. And if there were more arms, I want to put them in an order.

    Cheers! I have developed this method now but I have come to a stand still to where I go?
      public void sortEdges(Vertex v) {
           Vector temp = new Vector();
           Vertex c;
           Vertex d;
             for (int j=0;j<v.vertexEdges.size();j++)
                  Edge a = (Edge)v.vertexEdges.elementAt(j);
                  if(!(a.first == v))
                       c = a.first;
                  }else
                       c = a.second;
                  for (int k=0;k<v.vertexEdges.size();k++)
                       Edge b = (Edge)v.vertexEdges.elementAt(k);
                       if(b != a)
                            if(!(b.first == v))
                                 d = b.first;
                            }else
                                d = b.second;
                            double x = c.ypos - d.ypos;
                            double y =
             temp.clear();      
      }

  • Photoshop CC distorted image when zoomed out. Text, edges and Straight lines.

    I get this distorted image when working on a file. When I zoom in its fine. But as soon as I zoom out all the lines, text , and edges start to become distorted. I've checked that all my drivers are up to date. I've re installed photoshop and still the same thing. Any Suggestions. ( files look fine when saved or exported, this just happens while Im working )

    That looks like a Moiré pattern.  Did you scan the image?
    If not, can you tell us what operating system?
    And is your video card driver fully up to date from the maker's website?

Maybe you are looking for