@Test public void testBounds() { Bounds bounds = tested.getBounds(); assertTrue(bounds.hasLowerRight()); assertTrue(bounds.hasUpperLeft()); assertEquals(0.7150000154972077d, bounds.getUpperLeft().getX(), 0d); assertEquals(1.4300000309944154d, bounds.getUpperLeft().getY(), 0d); assertEquals(65.71500001549721d, bounds.getLowerRight().getX(), 0d); assertEquals(355.9010174870491d, bounds.getLowerRight().getY(), 0d); }
@Override public Bounds getBounds() { if (shape == null) { return Bounds.create(); } return computeBounds(shape.getBounds()); }
BasePropertyReader implements PropertyReader { @Override public Bounds getBounds() { if (shape == null) { return Bounds.create(); } return computeBounds(shape.getBounds()); } }
BasePropertyReader implements PropertyReader { @Override public Bounds getBounds() { if (shape == null) { return Bounds.create(); } return computeBounds(shape.getBounds()); } BasePropertyReader(final BaseElement element,
                              final BPMNDiagram diagram,
                              final BPMNShape shape,
                              final double resolutionFactor); }
BasePropertyReader implements PropertyReader { @Override public Bounds getBounds() { if (shape == null) { return Bounds.create(); } return computeBounds(shape.getBounds()); } BasePropertyReader(final BaseElement element,
                              final BPMNDiagram diagram,
                              final BPMNShape shape,
                              final double resolutionFactor); @Override String getDocumentation(); @Override String getDescription(); @Override FontSet getFontSet(); @Override BackgroundSet getBackgroundSet(); @Override Bounds getBounds(); @Override CircleDimensionSet getCircleDimensionSet(); @Override RectangleDimensionsSet getRectangleDimensionsSet(); @Override boolean isExpanded(); @Override BaseElement getElement(); @Override BPMNShape getShape(); }
BasePropertyReader implements PropertyReader { @Override public Bounds getBounds() { if (shape == null) { return Bounds.create(); } return computeBounds(shape.getBounds()); } BasePropertyReader(final BaseElement element,
                              final BPMNDiagram diagram,
                              final BPMNShape shape,
                              final double resolutionFactor); @Override String getDocumentation(); @Override String getDescription(); @Override FontSet getFontSet(); @Override BackgroundSet getBackgroundSet(); @Override Bounds getBounds(); @Override CircleDimensionSet getCircleDimensionSet(); @Override RectangleDimensionsSet getRectangleDimensionsSet(); @Override boolean isExpanded(); @Override BaseElement getElement(); @Override BPMNShape getShape();  }