Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Line Width
Line Width [message #193506] Thu, 19 June 2008 09:09 Go to next message
Nagesh is currently offline NageshFriend
Messages: 55
Registered: July 2009
Member
Hello All,

How can we change the line width through programattically?.
Please help me.

Thanks In Advance.
Nagesh
Re: Line Width [message #193602 is a reply to message #193506] Thu, 19 June 2008 10:01 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Nagesh,

You have to do it via LineStyle object http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse. gmf.doc/reference/api/runtime/org/eclipse/gmf/runtime/notati on/LineStyle.html.

-----------------
Alex Shatalin
Re: Line Width [message #193648 is a reply to message #193602] Thu, 19 June 2008 12:11 Go to previous messageGo to next message
Nagesh is currently offline NageshFriend
Messages: 55
Registered: July 2009
Member
Hello Alex,

Thanks for reply. I have searched for width change in LineStyle object.
But I am getting only lineColor related things. How to get or setwidth
please help me.

--Nagesh

Alex Shatalin wrote:

> Hello Nagesh,

> You have to do it via LineStyle object
http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse. gmf.doc/reference/api/runtime/org/eclipse/gmf/runtime/notati on/LineStyle.html.

> -----------------
> Alex Shatalin
Re: Line Width [message #193769 is a reply to message #193648] Thu, 19 June 2008 15:30 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Nagesh,

Sorry - looks like the link I sent you is not up to date.. Here is actual
LineStyle interface from GMF:

public interface LineStyle extends Style {
/**
* Returns the value of the '<em><b>Line Color</b></em>' attribute.
* The default value is <code>"11579568"</code>.
* <!-- begin-user-doc -->
* <p>
* The line color is the color used in painting the lines (or foreground)
of node visuals
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Line Color</em>' attribute.
* @see #setLineColor(int)
* @see org.eclipse.gmf.runtime.notation.NotationPackage#getLineStyl e_LineColor()
* @model default="11579568"
* @generated
*/
int getLineColor();

/**
* Sets the value of the '{@link org.eclipse.gmf.runtime.notation.LineStyle#getLineColor
<em>Line Color</em>}' attribute.
* <!-- begin-user-doc -->
* <p>
* The line color is the color used in painting the lines (or foreground)
of node visuals
* </p>
* <!-- end-user-doc -->
* @param value the new value of the '<em>Line Color</em>' attribute.
* @see #getLineColor()
* @generated
*/
void setLineColor(int value);

/**
* Returns the value of the '<em><b>Line Width</b></em>' attribute.
* The default value is <code>"-1"</code>.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Line Width</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Line Width</em>' attribute.
* @see #setLineWidth(int)
* @see org.eclipse.gmf.runtime.notation.NotationPackage#getLineStyl e_LineWidth()
* @model default="-1"
* @generated
*/
int getLineWidth();

/**
* Sets the value of the '{@link org.eclipse.gmf.runtime.notation.LineStyle#getLineWidth
<em>Line Width</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Line Width</em>' attribute.
* @see #getLineWidth()
* @generated
*/
void setLineWidth(int value);

}

-----------------
Alex Shatalin
Re: Line Width [message #193852 is a reply to message #193769] Fri, 20 June 2008 04:17 Go to previous messageGo to next message
Nagesh is currently offline NageshFriend
Messages: 55
Registered: July 2009
Member
Thanks Alex. In which GMF version does this methods are included?.

Nagesh.
Re: Line Width [message #193891 is a reply to message #193852] Fri, 20 June 2008 10:44 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Nagesh,

I think it will be released with GMF 2.1 first time.

-----------------
Alex Shatalin
Re: Line Width [message #194032 is a reply to message #193891] Mon, 23 June 2008 04:17 Go to previous messageGo to next message
Nagesh is currently offline NageshFriend
Messages: 55
Registered: July 2009
Member
Thank you Alex.

Nagesh.
Re: Line Width [message #194039 is a reply to message #194032] Mon, 23 June 2008 06:30 Go to previous messageGo to next message
Nagesh is currently offline NageshFriend
Messages: 55
Registered: July 2009
Member
Hello Alex,

Is it possible to give the setLineWidth and getLineWidth implemetation
part so that we can use it.

Thanks In Advance.
Nagesh
Re: Line Width [message #194162 is a reply to message #194039] Mon, 23 June 2008 17:11 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Nagesh,

> Is it possible to give the setLineWidth and getLineWidth implemetation
> part so that we can use it.
I suggest you to use latest GMF version instead - not only these methods
should be modified to make this functionality working. i think..

-----------------
Alex Shatalin
Previous Topic:UUIDConstraint
Next Topic:Customizing the traversal of Java Audit Rules
Goto Forum:
  


Current Time: Fri Apr 26 12:22:37 GMT 2024

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

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

Back to the top