Hi,
this can be due to your figure. It is maybe a square ?
I think you should have a look on your XXXFigure.java and on the policy
set for the constant "ModelerEditPolicyConstants.RESIZABLE_EDITPOLICY"
in the method createEditPolicies() of your XXXEditPart.java
This policy manages the resize.
With breakpoints you should be able to trace the dimension of your figure.
Regards,
Thibault
[email protected] a écrit :
Hi Thibault,
Thanks for your answer,
Yes I configured the minima and maxima of my node in the
diagramconfigurator.
The configuration that I set was:
DefaultWidth : 150
DefaultHeight : 100
MinimumWidth : 20
MinimumHeight : 20
MaximumWidth : 200
MaximumHeight : 200
LineWidth : 1
LineStyle : SOLID
And the Resizing was set to ALL
With these parameters, technically there cannot be a problem to get a
150 by 100 rectangle while I just click on the diagram to generate the
default sized shape. But what I get is always a 100 by 100 square box,
no matter the DefaultWidth or DefaultHeight are. And I verified the
graphconf, in case it was not overwritten, but it is,
I can retrieve my 150 by 100 parameters for the shape.
so I do not get it. Where are these 100 by 100 parameters coming from ?
Clement Debret
*[email protected]*
Envoyé par : [email protected]
02/04/2009 11:33
Veuillez répondre à
[email protected]
A
[email protected]
cc
Objet
Re: [Topcased-users] Cannot modifiy the default size of an item
Hi Clément,
on your diagramconfigurator, have you well defined the minimal
size/height, default size/height and maximum size/height of your node ?
You should have something like this :
Minimum Height -1
Minimum Width -1
Default Height 40
Default Width 130
Maximum Height 0
Maximum Width 0
Also have you in the tab Policies of your node in the
diagramconfigurator set the resizing to the value "ALL" ?
You can find more informations here on how to configure your
diagramconfigurator :
http://topcased-mm.gforge.enseeiht.fr/website/modeling/tutorials/generateEditor.html
Best Regards,
Thibault
[email protected] a écrit :
>
> Hi everyone,
>
> I am a little bit disappointed, I cannot succeed in changing the default
> size of my items in a diagram, while adding them.
>
> I am developping a plugin with separate projects. i created the
> editorconfigurator and a first diagramconfigurator, with only a single
> item for tests purpose.
>
> I managed to generate the new plug in, and created a new diagram to test
> it. Everything worked well, except from the default size of the shapes,
> which was 100x100.
>
> So I tried to change some parameters to test them : background color,
> foreground color, font, line width... and size (both width and height)
> to change this not-so-beautiful square shaped box, and give them a more
> rectangular look.
>
> I regenerated the plug in, and while testing it again, I were surprised
> not to get the resized parameters working. The background/foreground
> color and font were different, but neither the size nor the line width
> changed.
>
> I verified the .graphconf file, and the values are correctly written.
> I noticed that there is a preferences package that configure the default
> Background / foreground / font values, but nothing for the size.
> In an old project, I was able to change the size directly from the
> .graphconf file (even it is not recommended), but as i tried to modify
> directly the .graphconf values of my new project, nothing changed.
>
> I maybe get something wrong, like a function that refreshs with default
> values, but I did not see any of these things, and with quite the same
> code, the old project allows to change the size. there is maybe some
> code that I missed.
>
>
> Sincerely,
>
> Clement Debret
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Topcased-users mailing list
> [email protected]
> http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users
_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users
------------------------------------------------------------------------
_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users
begin:vcard
fn;quoted-printable:Thibault Landr=C3=A9
n;quoted-printable:Landr=C3=A9;Thibault
org:Atos Origin - Agence Sud-Ouest ;Systems Integration
adr;quoted-printable;quoted-printable:5, avenue Albert Durand ;;Batiment A=C3=A9ropole ;Blagnac;Midi-Pyr=C3=A9n=C3=A9es;31701;France
email;internet:[email protected]
tel;work:+33 (0)5.34.36.34.46
note;quoted-printable:D=C3=A9veloppement durable, anticipons pour notre avenir / Sustainibility=
, advance our future=0D=0A=
P N'imprimez ce mail que si n=C3=A9cessaire / please consider your enviro=
nmental responsibility before printing this e-mail.=0D=0A=
Ce message et les pi=C3=A8ces jointes sont confidentiels et r=C3=A9serv=C3=
=A9s =C3=A0 l'usage exclusif de ses destinataires. Il peut =C3=A9galement=
=C3=AAtre prot=C3=A9g=C3=A9 par le secret professionnel. Si vous recevezc=
e message par erreur, merci d'en avertir imm=C3=A9diatement l'exp=C3=A9di=
teur et de le d=C3=A9truire. L'int=C3=A9grit=C3=A9 du message ne pouvant=C3=
=AAtre assur=C3=A9e sur Internet, la responsabilit=C3=A9 du groupeAtosOri=
gin ne pourra =C3=AAtre recherch=C3=A9e quant au contenu de cemessage.=
Bien que les meilleurs efforts soient faits pour maintenir cette transmi=
ssion exempte de tout virus, l'exp=C3=A9diteur ne donne aucunegarantie=C3=
=A0 cet =C3=A9gard et sa responsabilit=C3=A9 ne saurait =C3=AAtre recherc=
h=C3=A9e pour tout dommage r=C3=A9sultant d'un virus transmis.=0D=0A=
=0D=0A=
This e-mail and the documents attached are confidential and intended sole=
ly for the addressee, it may also be privileged. If you receive this e-ma=
il in error, please notify the sender immediately and destroy it. As itsi=
ntegrity cannot be secured on the Internet, the Atos Origin group liabili=
ty cannot be triggered for the message content. Although the sender endea=
vours to maintain a computer virus-free network, the sender does notwarra=
nt that this transmission is virus-free and will not be liable forany dam=
ages resulting from any virus transmitted.
url:http://www.atosorigin.com/
version:2.1
end:vcard
_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users