Class Position

java.lang.Object
ai.mindconnect.ui.ext.diagram.Position

public class Position extends Object
2D coordinate of the top-left corner of a UiDiagramNode, expressed in the diagram's own coordinate space (origin top-left, units = pixels at 1:1 zoom). Whoever builds the UiDiagram (the server) is expected to fill positions in — the client renderer performs no layout in Etappe 1a.

Edges don't carry positions: the renderer always draws an edge from the centre of its source node to the centre of its target node, with a simple polyline routed around its own waypoints (none in 1a).

  • Constructor Details

    • Position

      public Position()
  • Method Details

    • of

      public static Position of(double x, double y)