Login | Register
My pages Projects Community openCollabNet

Discussions > modules-dev > How to find the coordinate of a figure of a model element?

argouml
Discussion topic

Back to topic list

How to find the coordinate of a figure of a model element?

Author wkl
Full name Ken W K Lee
Date 2005-10-24 01:53:10 PDT
Message Hi,

I'm writing an external module. Suppose that when the user invokes the
module, the only target currently selected is an association. From that
target I obtained a collection of classifiers, as below:

Collection targets = TargetManager.getIns​tance().getTargets()​;
Object target = targets.iterator().next(); // temp store first object
if (!Model.getFacade().​isAAssociation(targe​t)) return;
Collection assocEnds = Model.getFacade().ge​tConnections(target)​;
ArrayList classes = new ArrayList();
for (Object end : assocEnds) {
    classes.add(Model.ge​tFacade().getClassif​ier(end));
}

Then, how can I know the coordinates of those classifiers?
And, in general how can I get the figure from a model element?

Thanks in advance.


Ken

« Previous message in topic | 1 of 3 | Next message in topic »

Messages

Show all messages in topic

How to find the coordinate of a figure of a model element? wkl Ken W K Lee 2005-10-24 01:53:10 PDT
     Re: [argouml-modules-dev] How to find the coordinate of a figure of a model element? bobtarling Bob Tarling 2005-10-24 02:32:01 PDT
         PropPanel refresh when model properties changed? wkl Ken W K Lee 2005-10-25 02:03:16 PDT
Messages per page: