Skip to main content



      Home
Home » Eclipse Projects » GEF » changing logic circuit main panel behavior
changing logic circuit main panel behavior [message #128264] Thu, 22 April 2004 06:22 Go to next message
Eclipse UserFriend
Originally posted by: d.delpozo.ibermatica.com

Hi,

I am developing a diagram application modifiying the
org.eclipse.gef.examples.logic_2.1.0 project behavior. What I particulary
need is to change the wire (connection) behavior.

Currently It is not possible to draw a line (wire) from any point of the
panel to other point. You just can draw a line making a connection from
any part (figure) of the circuit to other.
What I need is to be able to draw a line by clicking the connection
button, click on some point of the panel, fix there the start point of the
line, then by dragging the pointer choose other point of the panel, and
releasing the mouse button, fix there the end point of my line. I am
trying to change EditPolicies but with no succes. Does some body know how
to implement this behavior?

Thanks
Re: changing logic circuit main panel behavior [message #128277 is a reply to message #128264] Thu, 22 April 2004 08:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eostroukhov.hotmail.com

You need to draw line figure? I.e. you will draw line, then you want to be
able to drag the line as a hole, drag one line end to resize it, etc.? (I.e.
it is a line object, not a connection). If it is so that I can say that I
was unable to find GEF support and implemented it on my own (it took
considerable time, taking into account snapping, feedback painting, etc) -
if you need this functionality you could file a bug to the GEF and I will
try to provide implementation (our is too hard-wired to the model object).

Eugene

"Daniel" <d.delpozo@ibermatica.com> wrote in message
news:c686ck$d4q$1@eclipse.org...
> Hi,
>
> I am developing a diagram application modifiying the
> org.eclipse.gef.examples.logic_2.1.0 project behavior. What I particulary
> need is to change the wire (connection) behavior.
>
> Currently It is not possible to draw a line (wire) from any point of the
> panel to other point. You just can draw a line making a connection from
> any part (figure) of the circuit to other.
> What I need is to be able to draw a line by clicking the connection
> button, click on some point of the panel, fix there the start point of the
> line, then by dragging the pointer choose other point of the panel, and
> releasing the mouse button, fix there the end point of my line. I am
> trying to change EditPolicies but with no succes. Does some body know how
> to implement this behavior?
>
> Thanks
>
Re: changing logic circuit main panel behavior [message #128303 is a reply to message #128277] Thu, 22 April 2004 11:31 Go to previous message
Eclipse UserFriend
Originally posted by: d.delpozo.ibermatica.com

In fact I do need a connection. I'll try to explain myself better.
The scenarion is the following:
When I click the connection button the wire can have the next 3 different
behaviors:
1º- The current behavior. The connection starts from one circuit part
and ends on another circuit part.
2º- clicking on any point of the panel, a default circuit part is drawn
starting from there the connection and ending on any other circuit part.
3º- The connection starts on any circuit part and by droping on any
point of the panel it will draw a default circuit part and ending there
the connection.

Thanks a lot and I hope this is possible to implement.

Eugene Ostroukhov wrote:

> You need to draw line figure? I.e. you will draw line, then you want to be
> able to drag the line as a hole, drag one line end to resize it, etc.? (I.e.
> it is a line object, not a connection). If it is so that I can say that I
> was unable to find GEF support and implemented it on my own (it took
> considerable time, taking into account snapping, feedback painting, etc) -
> if you need this functionality you could file a bug to the GEF and I will
> try to provide implementation (our is too hard-wired to the model object).

> Eugene

> "Daniel" <d.delpozo@ibermatica.com> wrote in message
> news:c686ck$d4q$1@eclipse.org...
> > Hi,
> >
> > I am developing a diagram application modifiying the
> > org.eclipse.gef.examples.logic_2.1.0 project behavior. What I particulary
> > need is to change the wire (connection) behavior.
> >
> > Currently It is not possible to draw a line (wire) from any point of the
> > panel to other point. You just can draw a line making a connection from
> > any part (figure) of the circuit to other.
> > What I need is to be able to draw a line by clicking the connection
> > button, click on some point of the panel, fix there the start point of the
> > line, then by dragging the pointer choose other point of the panel, and
> > releasing the mouse button, fix there the end point of my line. I am
> > trying to change EditPolicies but with no succes. Does some body know how
> > to implement this behavior?
> >
> > Thanks
> >
Previous Topic:snap to grid and connection bend points?
Next Topic:Problem with LightweightSystem
Goto Forum:
  


Current Time: Sun Jun 08 09:21:56 EDT 2025

Powered by FUDForum. Page generated in 0.11333 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top