Diagram (IntelliJ 14.1)

I have the following class:

public class Map {

    List<Entity> entities;

    World world;

    void update(float delta) {
        world.step(delta,8,3);
        for (Entity entity : entities) {
            entity.update(delta,this);
        }
    }

    void draw(Batch batch, float alpha) {
        for (Entity entity : entities) {
            entity.draw(batch, alpha);
        }
    }


}

Trying to make a diagram of this class by right clicking on my Map class in the Project tab gives me this diagram (http://puu.sh/gQ992/1757012aeb.png).

Is this the intended output? If not, is there a way to fix it?


2 comments
Comment actions Permalink

Please check available toolbar/context menu options - like adding fields, methods, etc. on the diagram, adding other classes and so on.

Is this what you expect to configure?

0
Comment actions Permalink

In the screenshot, all 5 buttons corresponding to fields, methods, inner classes, etc. are pressed, which I think should cause it to display all of those pieces of data. I thought that this should give me a class diagram with a single node displaying the fields 'entities' and 'world' and the methods 'update(float)' and 'draw(Batch, float)', but I don't seem to get anything other than the node by itself.

Bizzarely, after shutting down my computer last night and starting it up again just now, everything seems to work fine so far.

0

Please sign in to leave a comment.