Creating an Edge that connects two Graphic objects

Hi flex geeks
I am trying to create a flowchart type of application in flex. I created shaped by extending Graphic class. Now i want to connect them by and edge.
I tried to achieve this using the path. But my requirements are a bit more that this approch of drawing edges could handle.
I want the edges to have the arrow heads and tail. I cant find a way how to implement it using the path object.
A screen shot of exisiting design is shown below. Kindly help me with some inputs in this regards.
Thank You

Perhaps one of these links will help:
http://osflash.org/pipermail/osflash_osflash.org/2008-February/014865.html

Similar Messages

  • Best practise for creating an application that connects to a SQL Server database

    I have created an application that connects to a SQL Server database and views information using a datagrid and performs several updates when a button
    is selected.  
    I have created a SQLcontrol.vb using the following code:
    Imports System.Data.Sql
    Imports System.Data.SqlClient
    Public Class SQlControl
    'connection 1
        Public SQLCon As New SqlConnection With {.ConnectionString
    = "Data Source=;Initial Catalog=;Integrated Security=True"}
    'connection 2
        Public SQLCon1 As New SqlConnection With {.ConnectionString
    = "Data Source;Initial Catalog=;Integrated Security=True"}
        Public sqlcmd As SqlCommand
        Public sqlda As SqlDataAdapter
        Public sqldataset As DataSet
        Public Function hasconnection() As Boolean
            Try
                SQLCon.open()
                SQLCon.close()
                Return True
            Catch ex As Exception
                MsgBox(ex.Message)
                Return False
            End Try
        End Function
        Public Sub runquery(query As String)
            Try
                SQLCon.Open()
                sqlcmd = New SqlCommand(query,
    SQLCon)
                'LOAD
    SQL RECORDS FOR DATAGROD
                sqlda = New SqlDataAdapter(sqlcmd)
                sqldataset = New DataSet
                sqlda.Fill(sqldataset)
    BH READ DIRECTLY FROM THE DATABASE
                'Dim
    R As SqlDataReader = sqlcmd.ExecuteReader
                'While
    R.Read
                'MsgBox(R.GetName(0)
    & ": " & R(0))
                'End
    While
                SQLCon.Close()
            Catch ex As Exception
                MsgBox(ex.Message)
                'will
    close connection if still open
                If SQLCon.State
    = ConnectionState.Open Then
                    SQLCon.Close()
                End If
            End Try
        End Sub
        Public Sub runquery1(query As String)
            Try
                SQLCon1.Open()
                sqlcmd = New SqlCommand(query,
    SQLCon1)
                'LOAD
    SQL RECORDS FOR DATAGROD
                sqlda = New SqlDataAdapter(sqlcmd)
                sqldataset = New DataSet
                sqlda.Fill(sqldataset)
    BH READ DIRECTLY FROM THE DATABASE
                'Dim
    R As SqlDataReader = sqlcmd.ExecuteReader
                'While
    R.Read
                'MsgBox(R.GetName(0)
    & ": " & R(0))
                'End
    While
                SQLCon1.Close()
            Catch ex As Exception
                MsgBox(ex.Message)
                'will
    close connection if still open
                If SQLCon1.State
    = ConnectionState.Open Then
                    SQLCon1.Close()
                End If
            End Try
        End Sub
    End Class
    A code for one of my button which views displays data grid contains the following code:
    Private Sub Button1_Click_1(sender As Object,
    e As EventArgs) Handles Button1.Click
            If SQL.hasconnection
    = True Then
                SQL.runquery("select 
    * from tablea")
                If SQL.sqldataset.Tables.Count
    > 0 Then
                    DGVData.DataSource = SQL.sqldataset.Tables(0)
                End If
            End If
        End Sub
    I am fairly new to vb.net and have read a few books and followed a few tutorials on youtube, what I would like to know is, are there any disadvantages
    to the way I have connected to a SQL database using the SQLControl.vb.  A lot of the vb books include data adapter and dataset within the form, I'm not sure if I'm following best practice by have the connection details outside of the form.
    My other question is, I have created two connections in the SQLControl and call these connections within the same form using the same data adapter
    and dataset.  It all works fine but I just wanted to know of any potential issues?
    Public SQLCon As New SqlConnection With {.ConnectionString
    = "Data Source=;Initial Catalog=;Integrated Security=True"}
    'connection 2
        Public SQLCon1 As New SqlConnection With {.ConnectionString
    = "Data Source;Initial Catalog=;Integrated Security=True"}
    Thanks

    My other question is, I have created two connections in the SQLControl and call these connections within the same form using the same data adapter and dataset.  It all works fine but
    I just wanted to know of any potential issues
    1) You are not using Sepration of concerns for a solution that is doing data access, like using a DAL.
    http://en.wikipedia.org/wiki/Separation_of_concerns
    2) You are directly issuing SQL commands at the UI, leading to sql injection attacks.
    3) You are not using a UI design pattern, which leads you to tightly couple database activity to the UI.
    http://www.codeproject.com/Articles/228214/Understanding-Basics-of-UI-Design-Pattern-MVC-MVP
    @System243trd, parameters are important to prevent SQL injection attacks (people will insert SQL commands into the database if you do not perform basic checking of what you are passing to the database). If you write a stored procedure try to make
    the variables the correct SQL server data type to avoid problems later of people trying to call it directly.  Darnold924 is right, I see no code to prevent against SQL injection attacks. In addition, during development in some instances LocalSQLDB
    database system is used and during deployment you usually need to use the production SQL server database. Moreover,  Linq-to-SQL is used on Windows Phone 8.1 and it is required for phone development later and so I highly recommend learning
    it if you plan on developing windows phone applications.
    @System243trd, If you want the code for the windows phone app I think it uses the MVVM model or that might be for universal apps or regular windows phone apps. I have been using the windows phone Silverlight pivot or panorama template (it might
    be pieces of both). I've already submitted to the windows phone marketplace and it had to go through certification first. I plan on later making an article on it but I need to first fix one or two simple problems I have with it.  Here's a link to
    the source code if you later want to look at the source code (in vb.net): 
    https://jeffsblogcodesamples.codeplex.com/downloads/get/1445836
    Once you eliminate the impossible, whatever remains, no matter how improbable, must be the truth. - Sherlock Holmes. speak softly and carry a big stick - theodore roosevelt. Fear leads to anger, anger leads to hate, hate leads to suffering - Yoda. Blog
    - http://www.computerprofessions.us

  • How do you create a part that has two through holes with a single net connecting to both.

    I attempted to create a part that contained 2 through holes with a copper strip between them so they would connect to a single net, but one of the holes (pin 2) gets rejected by Ultiboard as an unconnected entitiy. Is there a way to define the second hole (pin 2) in such a way as to mitigate the problem?
    Thanks, Tod
    Solved!
    Go to Solution.

     Hi
    It is quite simple to do so:
    when making the footprint, you just put your two TH pins where you need them. name them 1 and 2.
    Then in Multisim, when making a new component with the component wizzard,in step 2 make a 1-pin component, and select your desired footprint(which has two pins).
    thenin step 3, make/choose your 1-pin symbol.
    In step 5 you can map the footprint to the symbol , just use both footprint pins for the same symbol pin.
    When using it in your schematic, you'll see one pin, in the layout, there will be two pins connected together..
    Good luck
    stressed user..

  • Connect two Business Object (BUS2038 and BUS0010) in Workflow!

    Hi experts!
    I have a Workflow based in BUS2038 (Maintenance Notification), I can see attributes like Functional Location (code).
    My problem is, i can´t put Functional Location (Description) that is an attribute in BUS0010 (Functional Location) with an input Functional Location (code).
    BUS2038
    Input: Notification number
    Output: Functional Location (code) (attribute)
    BUS0010
    Input: Functional Location (code)
    Output: Functional Location (description) (attribute)
    I want put Functional Location (description) in a mail step.
    How I can achieve this?
    Thank in advance

    Thank you Rick Bakker, I implemented this BUS0010 in BUS2038 (and delegate) but when I was testing, the link between two business objects is <nothing>. Do you need any program for connect both Business Objects?
    Thank in advance!

  • Is it possible to create a component that takes two inputs?

    Hi Experts,
    Is it possible to create a custom JSF component that takes two input values and assigns them to a managed bean?
    For example, a component that displays two input boxes?
    The tag would look something like this:
    <my:component value1="#{bean.value1}" value2="#{bean.value2}" />I've tried, but I can't get the values to update the managed bean.
    I'm starting to doubt that it is possible, as their is only 1 setSubmittedValue method :(
    Thank you,
    Ristretto

    Hi Prosun Bondopadhyay  ,
                   Component controller is the base of a wda component. its can be considered as the base class. all the other views can be considered as the sub classes of component  controller. so without the base class there is no existence for sub class rt?
    like we can use all the methods and attributes of a component controller(main class) across all the view(sub class) and the viceversa is not possible.
    hence we cannot create a wda without component controller.
    Regards
    Sarath

  • I want to Create a Project that combines TWO VIs, is it possible?

    Hi every one
    I am working on a project that essentially is split into two part at the moment;
    1. Data Acquisition - (In LabVIEW SignalExpress)
    2. Data Manipulation
    Now I want to combine them together so that they can work sequentially together at the same time (sequence being ACQUIRE DATA, then MANIPLUATE DATA).
    Data Acquisition
    I am reading two channels simultaneously. So SignalExpress (SE) is configured such that it ACQUIRES the data for (lets say) 2 seconds and then it WRITES this data as .lvm at a certain location. 
    Now because of the recording options available in SE (i.e. starting and stopping conditions met?) I have favored SE for data acquisition.
    When I generate a LabVIEW code of this SE code, VI comes up fine, but I loose automatic control of "Stop Recording Data", i.e. user has to run the generated LabVIEW code, and the user has to MANUALLY start "Recording" and "Stop" it manually as well.
    Question No1: How can I confugure the Data Acquisition VI directly in LabVIEW with the ability to ,
                              a) When user hits "Run", VI starts Acquiring the data simultaneously for specified time, and when that time has lapsed, automatically stops recoding it
                              b) The same VI also "Writes" the recorded data (specified time) at a specific location.
    Data Manipulation
    This VI does some data manipulation on already recoded data and is working fine.
    Question: How can I best integrate the both parts of my project (Data Acquisition + Data Manipulation) in just the ONE VI, eliminating the need of having to acquire the data in SE and the manipulating it with LabVIEW?
    I need help!
    Cheers 

    What you are wanting to do is very easy. Check out the examples that ship with LV. You will find code for doing data acquisition, signal analysis and program architecture. You might also want to consider getting some good training to answer your basic question, or go through the getting started materials that ship with LV.
    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

  • Graphics object of two JFrames in a single application

    Hi,
    I am trying to pop up two JFrames in a Java application, which are supposed to display different things(both have Jpanels to do so). However, I think that the same Graphics object is getting passed around, because the contents from the first JFrames's Jpanel is getting superimposed on the other's! I have tried explicity to insert a 'this.getGraphics()' in all the paints and then use those Graphics objects for drawing purposes, but that has not solved the problem yet!
    Any suggestions on what needs to be done?? Unfortunately, the code is too much to paste here:)
    Thanks!!!

    However, I think that the same Graphics object is getting passed aroundI doubt this. If you are override paint(..) or paintComponent(...) methods then you have a bug in your code. There is no need to explicitly insert a this.getGraphics(..) in your code.
    Maybe you are trying to use the same panel in two frames. This is not allowed.

  • Can SQL Server (2008 R2/2012) Integration Services connect to Business Objects / Hyperion directly?

    Hi,
    I have a situation where I need to pull data from Business Objects and
    Hyperion using
    SSIS (2008 R2/2012). I did some pro-active research on how to go about implementing this on a couple of Forums and could only figure out the below solution.
    We can create an ODBC DSN / connection for Business Objects and that can be used by SSIS as a connection manager to directly link to the Business
    Objects Universe. (http://www.forumtopics.com/busobj/viewtopic.php?p=622922&sid=fbb54541e1daacf9714a5672b5ed1314) 
    Question 1 - Has anyone tried to implement this in past? Is this possible directly or can be achieved through some workarounds? sharing inputs/experience on this will be highly appreciated!  
    Question 2 - If this possible in any way , how to get this thing set-up in an environment where SSIS and BO are residing on two different domains/networks. Any way to establish a connection from SSIS
    to the BO instance/server?
    Would really appreciate if anyone can help me out with this issue.
    Thanks
    Akshat

    Hi,
    I have a situation where I need to pull data from Business Objects and
    Hyperion using
    SSIS (2008 R2/2012). I did some pro-active research on how to go about implementing this on a couple of Forums and could only figure out the below solution.
    We can create an ODBC DSN / connection for Business Objects and that can be used by SSIS as a connection manager to directly link to the Business
    Objects Universe. (http://www.forumtopics.com/busobj/viewtopic.php?p=622922&sid=fbb54541e1daacf9714a5672b5ed1314) 
    Question 1 - Has anyone tried to implement this in past? Is this possible directly or can be achieved through some workarounds? sharing inputs/experience on this will be highly appreciated!  
    Question 2 - If this is possible in any way , how to get this thing set-up in an environment where SSIS and BO are residing on two different domains/networks. Any way to establish a connection from
    SSIS to the BO instance/server? (To be precise - If SSIS is hosted on a Cloud environment..?)
    Would really appreciate if anyone can help me out with this issue.
    Thanks
    Akshat

  • Table linking graphics object to a smartform

    Hello,
    We are changing logos/ bitmap images that contains our address ( because we are moving to another place).
    Is anyone aware of a table that links the graphics object to a smartform?  For eg, All the texts in a smartform is available in table STXFTX. This helps to have a where used list kind of report.
    We are not able to find that can give us a hwere used list of graphic objects loaded via se78.
    If anyone could give some pointers, that owuldbe of great help.
    Thanks
    Ganesh.S

    You would need to scan the source code for each of your generated function modules.  The graphics calls are directly embedded in the generated code and are called at runtime via function SSFCOMP_PRINT_GRAPHIC.  Check one of your functions and you will see how this works.

  • How to compare two date Objects

    Hi,
    I have two Calendar Objects, one is coming from client and one is my server time, I need to evaluate that incoming time with server time so that if it is sent before an hour back then i should not do anything on that request Object. I have converted the incoming String into Calendar Object and how can i evaluate these two Calendar Objects including their hours and minutes.
    Thanks in advance
    bajju

    bajjurireddy, ignore Mobiquity's post. It contains no useful information and will only serve to confuse and frustrate you.
    Mobiquity wrote:
    Also make sure that the two date objects are in the same date format..
    public static String DateToDateString(java.util.Date d, String dateFormat)
         throws ParseException {
              SimpleDateFormat sdf = new SimpleDateFormat(dateFormat);
              sdf.setLenient(false); // this is required else it will convert
              String dateString = sdf.format(d);
              return dateString;

  • Laptop with two graphics cards? [Nvidia Optimus - SOLVED]

    Hi,
    I just bought a laptop that includes two graphics cards: a low-power Intel one and a high-performance nVidia card. Right now I'm just using the Intel graphics card, and the system only detects it. When I install nVidia drivers I have to uninstall the intel drivers because of incompatibilities, and it doesn't even start the X server. I could attach a log if necessary, but I haven't found anything relevant, it just says that the nVidia driver is not valid for the detected graphics card. Is there a way to use both graphics cards transparently, like in other-operating-systems?
    Some hints? Thank you!
    Last edited by gskbyte (2011-08-04 13:14:02)

    It's called Optimus. Kinda surprised there's people who don't already know about it. Not supported fully in Linux, but there's a hack to get the nvidia card going: Bumblebee
    Edit: Bah, too late!
    Last edited by Gusar (2011-08-03 21:47:16)

  • Create view link between two view objects (from programmatic data source)

    Hi Experts,
    Can we create a link between two view objects (they are created from programmatic datasource ; not from either entity or sql query). If yes how to create the link; ( i mean the like attributes?)
    I would also like to drag and drop that in my page so that i can see as top master form and the below child table. Assume in my program i will be only have one master object and many child objects.
    Any hits or idea pls.
    -t

    Easiest way to do this is to add additional transient attributes to your master view object, and then include those additional transient attributes in the list of source attributes for your view link. This way, you can get BC4J to automatically refer to their values with no additional code on your part.

  • Create a graphics object

    Hello,
    I want to create a graphics object. However, I need to use it in a function outside of a paint method in an applet.
    I need to create the object to check the FontMetrics of a combination of font parameters. This needs to be done independent of an applet. The problem is I want to use fontMetrics but not in an applet. I need to test the width and height of a message, which will eventually be used in an applet. However, this needs to be done before the applet receives the font.
    Can I create a graphics object outside of a paint method to check the fontMetrics of a combination of fonts? If not, can I check FontMetrics without a graphics object?

    Ok, by "graphic", when you say "I need to test whether one graphic will fit inside another", do you mean an instance of the Image class? If so (sorry, I thought you were wondering if you could create a "Graphics" object for use in calculating the Font Metrics) then you can use the stuff in the javax.imageio package to read your image, or, if you're not at 1.4 yet, do something like:
    image = new ImageIcon("image.gif").getImage();
    // Get the dimensions of the image; these will be non-negative
    width = image.getWidth(null);
    height = image.getHeight(null);to get the dimensions of your images.
    Hope that helped
    Lee

  • Creating a button that highlights itself and another object

    Hello all,
    I have a specific function I am trying to apply to my InDesign document intended for exporting to an interactive PDF and SWF/html format.
    The function I am trying to create is:
    I have a picture of a typical WYSIWYG tool bar. I have created highlight buttons that sit on top of each icon in the picture. When the reader rolls over (with cursor) this picture of an icon I want it to highlight, and also a piece of text further down the page to highlight as well (which is a definition and explanation of the icon). So I want the rollover action of my first button to also trigger another action, which is to highlight a piece of text elsewhere on the page. I have managed to get it so that I hover over the first button (picture of icon), it highlights, and the text further down the page appears. But this isn’t quite what i want. I want the text to exist already, then highlight. Basically, I want to the two buttons to be linked. So that every time I hover over a portion of the picture with a created button, it will highlight, and a piece of exploratory text will also highlight simultaneously elsewhere on the page. A bit like an infograph. Surely this is possible?
    Thanks in advance for your help.

    Generally, animations like this with the goal of exporting a SWF are better be done in Adobe Flash.
    In Indesign it sort of works, too. Only for export to SWF, you can assign the action "Go to status". For a text frame, you can assign different status, where the 1st status would be "normal" and the 2nd status would be "highlighted". Highlighted applies to the object "text frame", so you can assign a stroke or fill. Better than nothing.
    Example: Dropbox - test_highlight.indd

  • Creating graphics object and modifing it

    hi every body i would like to create a Graphics object to modify it (by using the method insert string)
    but using Graphics g=new Graphics is not possible how can i create it inside other java code.
    i 'am trying to create an object and finally to send it to the printer(dot matrix printer ) to be printed but i don't know how to do it. i read in some books that they create a methos (paintComponent) witch automatically receives a graphics object but this method i can not use because i would like to draw string in a while statement.

    Post your code and let me see if I can help.
    Bemmah

Maybe you are looking for

  • Id and password

    my ipad and iphone keep saying they are wrong yet i have reset them

  • Workflow upgrade from 2.6.0 to 2.6.4 with database 8i to 10g

    Hi There, I have installed oracle 10g and imported workflow schema owf_mgr from 8i database. There i faced problem with some tables related to system.wf_payload_t i tried to create those types manually and then try to import but again i failed to imp

  • Querry regarding maint projects

    hi what is the process flow for assigning orders to maintenance projects and how budget control is performed in orders ? regards pushpa

  • Logical Archieve not found

    Hi All, We have an issue in opening of one archived image in SAP. It gives 'Logical Archive 'BA'  not found ' error while opening this image. Could you please sugest how i can resolve this issue. Thanks Mohit

  • UNABLE TO BROWSE INTERNET

    DEAR FRIENDS, WOULD U PLZ HELP ME !!! IF I CLICK ON BROWSER it is showing " ur device does not currently have any browser configuration service book entries"contact  service provider to enable the browser on ur device" I told airtel customer care but