Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » resize(make smaller) of figures on diagram fails
resize(make smaller) of figures on diagram fails [message #155830] Tue, 16 October 2007 11:01 Go to next message
Eclipse UserFriend
Originally posted by: heinz.haeberle.smart-gmbh.de

I have the problem that making a figure smaller in the diagram editor does
not work while making it bigger is no problem at all. It seems to be
related to ellipse objects only, but I am not sure. I am using Eclipse
europa with the according GMF.
Re: resize(make smaller) of figures on diagram fails [message #155960 is a reply to message #155830] Wed, 17 October 2007 06:11 Go to previous messageGo to next message
Eclipse UserFriend
Hello Heinz,

Looks like the figures you have inside your "top-level" one has some minimum
size specified.

-----------------
Alex Shatalin
Re: resize(make smaller) of figures on diagram fails [message #156066 is a reply to message #155960] Wed, 17 October 2007 08:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: heinz.haeberle.smart-gmbh.de

> Looks like the figures you have inside your "top-level" one has some minimum
> size specified.
Well its not specified at least.
On the diagram editor I can make it bigger several times. But I never can
make it smaller then the last resize operation.

It is the ellipse used for the StartStateFigure.
Check definition in the .gmfgrapf file:

<?xml version="1.0" encoding="UTF-8"?>
<gmfgraph:Canvas xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:gmfgraph="http://www.eclipse.org/gmf/2006/GraphicalDefinition"
name="statemachine">
<figures
name="Default">
<descriptors
name="StateFigure">
<actualFigure
xsi:type="gmfgraph:Rectangle"
name="StateFigure">
<layout
xsi:type="gmfgraph:FlowLayout"/>
<children
xsi:type="gmfgraph:Label"
name="StateNameFigure"
text="&lt;...>"/>
</actualFigure>
<accessors
figure="//@figures.0/@descriptors.0/@actualFigure/@children.0 "/>
</descriptors>
<descriptors
name="TransitionFigure">
<actualFigure
xsi:type="gmfgraph:PolylineConnection"
name="TransitionFigure">
<children
xsi:type="gmfgraph:Label"
name="TransitionNameFigure"
text="&lt;...>"/>
</actualFigure>
<accessors
figure="//@figures.0/@descriptors.1/@actualFigure/@children.0 "/>
</descriptors>
<descriptors
name="StartStateFigure">
<actualFigure
xsi:type="gmfgraph:Ellipse"
name="StartStateEllipse">
<foregroundColor
xsi:type="gmfgraph:ConstantColor"
value="yellow"/>
<backgroundColor
xsi:type="gmfgraph:ConstantColor"
value="red"/>
</actualFigure>
</descriptors>
</figures>
<nodes
name="State"
figure="StateFigure"/>
<nodes
name="StartStateNode"
figure="StartStateFigure"/>
<connections
name="Transition"
figure="TransitionFigure"/>
<labels
name="StateName"
figure="StateFigure"
accessor="//@figures.0/@descriptors.0/@accessors.0"/>
<labels
name="TransitionName"
figure="TransitionFigure"
accessor="//@figures.0/@descriptors.1/@accessors.0"/>
</gmfgraph:Canvas>
Re: resize(make smaller) of figures on diagram fails [message #156214 is a reply to message #156066] Thu, 18 October 2007 05:48 Go to previous messageGo to next message
Eclipse UserFriend
Hello Heinz,

Did you seen http://www.eclipse.org/modeling/mdt/?project=uml2tools#uml2t ools
project (CCing coreponding newsgroup)? Looks like this diagram is already
implemented there. You can probably at least reuse some existing figures
for your diagrams.

>> Looks like the figures you have inside your "top-level" one has some
>> minimum size specified.
>>
> Well its not specified at least.
> On the diagram editor I can make it bigger several times. But I never
> can
> make it smaller then the last resize operation.
> It is the ellipse used for the StartStateFigure. Check definition in
> the .gmfgrapf file:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <gmfgraph:Canvas xmi:version="2.0"
> xmlns:xmi="http://www.omg.org/XMI"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>
> xmlns:gmfgraph="http://www.eclipse.org/gmf/2006/GraphicalDefinition"
> name="statemachine">
> <figures
> name="Default">
> <descriptors
> name="StateFigure">
> <actualFigure
> xsi:type="gmfgraph:Rectangle"
> name="StateFigure">
> <layout
> xsi:type="gmfgraph:FlowLayout"/>
> <children
> xsi:type="gmfgraph:Label"
> name="StateNameFigure"
> text="&lt;...>"/>
> </actualFigure>
> <accessors
>
> figure="//@figures.0/@descriptors.0/@actualFigure/@children.0 "/>
> </descriptors>
> <descriptors
> name="TransitionFigure">
> <actualFigure
> xsi:type="gmfgraph:PolylineConnection"
> name="TransitionFigure">
> <children
> xsi:type="gmfgraph:Label"
> name="TransitionNameFigure"
> text="&lt;...>"/>
> </actualFigure>
> <accessors
>
> figure="//@figures.0/@descriptors.1/@actualFigure/@children.0 "/>
> </descriptors>
> <descriptors
> name="StartStateFigure">
> <actualFigure
> xsi:type="gmfgraph:Ellipse"
> name="StartStateEllipse">
> <foregroundColor
> xsi:type="gmfgraph:ConstantColor"
> value="yellow"/>
> <backgroundColor
> xsi:type="gmfgraph:ConstantColor"
> value="red"/>
> </actualFigure>
> </descriptors>
> </figures>
> <nodes
> name="State"
> figure="StateFigure"/>
> <nodes
> name="StartStateNode"
> figure="StartStateFigure"/>
> <connections
> name="Transition"
> figure="TransitionFigure"/>
> <labels
> name="StateName"
> figure="StateFigure"
> accessor="//@figures.0/@descriptors.0/@accessors.0"/>
> <labels
> name="TransitionName"
> figure="TransitionFigure"
> accessor="//@figures.0/@descriptors.1/@accessors.0"/>
> </gmfgraph:Canvas>
-----------------
Alex Shatalin
Re: resize(make smaller) of figures on diagram fails [message #156229 is a reply to message #156214] Thu, 18 October 2007 06:40 Go to previous message
Eclipse UserFriend
Hello Heinz,

In UML2Tools (you can find gmf definition files in the org.eclipse.uml2.diagram.def
plugin, in particular at /behaviors/activityDiagram_controlNodes.gmfgraph#//InitialPs eudoStateNode
and #//FinalStateNode)
these nodes are defined as not resizable. However, just removing the resizeConstraint="NONE"
should provide you with correct resize behavior.

Regards,
Michael


> Hello Heinz,
>
> Did you seen
> http://www.eclipse.org/modeling/mdt/?project=uml2tools#uml2t ools
> project (CCing coreponding newsgroup)? Looks like this diagram is
> already implemented there. You can probably at least reuse some
> existing figures for your diagrams.
>
>>> Looks like the figures you have inside your "top-level" one has some
>>> minimum size specified.
>>>
>> Well its not specified at least.
>> On the diagram editor I can make it bigger several times. But I never
>> can
>> make it smaller then the last resize operation.
>> It is the ellipse used for the StartStateFigure. Check definition in
>> the .gmfgrapf file:
>> <?xml version="1.0" encoding="UTF-8"?>
>> <gmfgraph:Canvas xmi:version="2.0"
>> xmlns:xmi="http://www.omg.org/XMI"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xmlns:gmfgraph="http://www.eclipse.org/gmf/2006/GraphicalDefinition"
>> name="statemachine">
>> <figures
>> name="Default">
>> <descriptors
>> name="StateFigure">
>> <actualFigure
>> xsi:type="gmfgraph:Rectangle"
>> name="StateFigure">
>> <layout
>> xsi:type="gmfgraph:FlowLayout"/>
>> <children
>> xsi:type="gmfgraph:Label"
>> name="StateNameFigure"
>> text="&lt;...>"/>
>> </actualFigure>
>> <accessors
>> figure="//@figures.0/@descriptors.0/@actualFigure/@children.0 "/>
>> </descriptors>
>> <descriptors
>> name="TransitionFigure">
>> <actualFigure
>> xsi:type="gmfgraph:PolylineConnection"
>> name="TransitionFigure">
>> <children
>> xsi:type="gmfgraph:Label"
>> name="TransitionNameFigure"
>> text="&lt;...>"/>
>> </actualFigure>
>> <accessors
>> figure="//@figures.0/@descriptors.1/@actualFigure/@children.0 "/>
>> </descriptors>
>> <descriptors
>> name="StartStateFigure">
>> <actualFigure
>> xsi:type="gmfgraph:Ellipse"
>> name="StartStateEllipse">
>> <foregroundColor
>> xsi:type="gmfgraph:ConstantColor"
>> value="yellow"/>
>> <backgroundColor
>> xsi:type="gmfgraph:ConstantColor"
>> value="red"/>
>> </actualFigure>
>> </descriptors>
>> </figures>
>> <nodes
>> name="State"
>> figure="StateFigure"/>
>> <nodes
>> name="StartStateNode"
>> figure="StartStateFigure"/>
>> <connections
>> name="Transition"
>> figure="TransitionFigure"/>
>> <labels
>> name="StateName"
>> figure="StateFigure"
>> accessor="//@figures.0/@descriptors.0/@accessors.0"/>
>> <labels
>> name="TransitionName"
>> figure="TransitionFigure"
>> accessor="//@figures.0/@descriptors.1/@accessors.0"/>
>> </gmfgraph:Canvas>
> -----------------
> Alex Shatalin
Previous Topic:Graphical modeler testing
Next Topic:Popup menuelements appear where they shouldn't
Goto Forum:
  


Current Time: Sun Jul 13 13:55:52 EDT 2025

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

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

Back to the top