Skip to content

Add the support for label location (TOP_CENTER only) #2482

Description

@gcoutable

Location

The inside label can be located on:

  • TOP_LEFT
  • TOP_CENTER
  • TOP_RIGHT
  • LEFT_CENTER
  • CENTER
  • RIGHT_CENTER
  • BOTTOM_LEFT
  • BOTTOM_CENTER
  • BOTTOM_RIGHT

The label needs to contain its location. We need to add the following concepts:

public enum InsideLabelLocation {
  TOP_LEFT,
  TOP_CENTER,
  TOP_RIGHT,
  LEFT_CENTER,
  CENTER,
  RIGHT_CENTER,
  BOTTOM_LEFT,
  BOTTOM_CENTER,
  BOTTOM_RIGHT,
}
public class InsideLabel {
  private InsideLabelLocation location;
}

At this point in time, we will not be able to have outside labels anymore. In the odesign compatibility layer, the inside label will be configured to TOP_CENTER while it will be configurable in the View DSL.

This should be tested with list nodes

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions