Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 Tools » Re: resize(make smaller) of figures on diagram fails
Re: resize(make smaller) of figures on diagram fails [message #609741] Thu, 18 October 2007 09:48
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
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:[Spam] I am back
Next Topic:Re: resize(make smaller) of figures on diagram fails
Goto Forum:
  


Current Time: Fri Apr 26 01:04:37 GMT 2024

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

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

Back to the top