}
Rectangle2D area = new Rectangle2D.Double(x0, y0, (x1 - x0), (y1 - y0));
double[] anchorPoint = RectangleAnchor.coordinates(
area, position.getCategoryAnchor()
);
TextBlock block = tick.getLabel();
block.draw(
g2,
(float) anchorPoint[0], (float) anchorPoint[1], position.getLabelAnchor(),
(float) anchorPoint[0], (float) anchorPoint[1], position.getAngle()
);
Shape bounds = block.calculateBounds(
g2, (float) anchorPoint[0], (float) anchorPoint[1], position.getLabelAnchor(),
(float) anchorPoint[0], (float) anchorPoint[1], position.getAngle()
);
if (plotState != null) {
EntityCollection entities = plotState.getOwner().getEntityCollection();