WiresShapeToolbox reposition() { toolbox.offset(toolboxOffset.offset(gridOffset)); return this; }
@Override public Point2D getCurrentLocation() { double x = 0; double y = 0; if (m_startDocked) { x = (int) m_shapeStartCenterX; y = (int) m_shapeStartCenterY; } else { x = (int) m_mouseStartX; y = (int) m_mouseStartY; } return new Point2D(x, y).offset(m_delta); }
@Override public Point2D getCurrentLocation() { double x = 0; double y = 0; if (m_startDocked) { x = (int) m_shapeStartCenterX; y = (int) m_shapeStartCenterY; } else { x = (int) m_mouseStartX; y = (int) m_mouseStartY; } return new Point2D(x, y).offset(m_delta); }
@Override public Point2D getCurrentLocation() { double x = 0; double y = 0; if (m_startDocked) { x = (int) m_shapeStartCenterX; y = (int) m_shapeStartCenterY; } else { x = (int) m_mouseStartX; y = (int) m_mouseStartY; } return new Point2D(x, y).offset(m_delta); }
@Override public Point2D getShapeLocation() { return getShapeInitialLocation().copy().offset(getCurrentDelta()); }
private void reposition() { // Obtain the toolbox's location relative to the cardinal direction. final Point2D location = Positions.anchorFor(shapeBoundingBoxSupplier.get(), this.at); // Set the toolbox primitive's location. asPrimitive().setLocation(location .offset(this.offset)); fireRefresh(); }
@Override public Point2D getShapeLocation() { return getShapeInitialLocation().copy().offset(getCurrentDelta()); }
@Override public Point2D getShapeLocation() { return getShapeInitialLocation().copy().offset(getCurrentDelta()); }
public final BoundingPoints transform(final double computedOffsetX, final double computedOffsetY, final Transform transform) { if (null != transform) { final int leng = m_array.size(); for (int i = 0; i < leng; i++) { final Point2D p = m_array.get(i); transform.transform(p, p); p.offset(computedOffsetX, computedOffsetY); } } return this; }
public final BoundingPoints transform(final double computedOffsetX, final double computedOffsetY, final Transform transform) { if (null != transform) { final int leng = m_array.size(); for (int i = 0; i < leng; i++) { final Point2D p = m_array.get(i); transform.transform(p, p); p.offset(computedOffsetX, computedOffsetY); } } return this; }
public final BoundingPoints transform(final double computedOffsetX, final double computedOffsetY, final Transform transform) { if (null != transform) { final int leng = m_array.size(); for (int i = 0; i < leng; i++) { final Point2D p = m_array.get(i); transform.transform(p, p); p.offset(computedOffsetX, computedOffsetY); } } return this; }
private static Point2DArray getPoint2Ds(final Point2DArray linePoints, Point2DArray intersectPoints, final Point2D absLoc, final PathPartList pathPartList) { final Point2DArray offsetLinePoints = new Point2DArray(); for (final Point2D p : linePoints) { offsetLinePoints.push(p.copy().offset(-absLoc.getX(), -absLoc.getY())); } final Point2DArray pathPartIntersectPoints = Geometry.getIntersectPolyLinePath(offsetLinePoints, pathPartList, false); if (pathPartIntersectPoints != null) { if (intersectPoints == null) { intersectPoints = new Point2DArray(); } for (final Point2D p : pathPartIntersectPoints) { intersectPoints.push(p); } } return intersectPoints; } }
private static Point2DArray getPoint2Ds(final Point2DArray linePoints, Point2DArray intersectPoints, final Point2D absLoc, final PathPartList pathPartList) { final Point2DArray offsetLinePoints = new Point2DArray(); for (final Point2D p : linePoints) { offsetLinePoints.push(p.copy().offset(-absLoc.getX(), -absLoc.getY())); } final Point2DArray pathPartIntersectPoints = Geometry.getIntersectPolyLinePath(offsetLinePoints, pathPartList, false); if (pathPartIntersectPoints != null) { if (intersectPoints == null) { intersectPoints = new Point2DArray(); } for (final Point2D p : pathPartIntersectPoints) { intersectPoints.push(p); } } return intersectPoints; } }
private static Point2DArray getPoint2Ds(final Point2DArray linePoints, Point2DArray intersectPoints, final Point2D absLoc, final PathPartList pathPartList) { final Point2DArray offsetLinePoints = new Point2DArray(); for (final Point2D p : linePoints) { offsetLinePoints.push(p.copy().offset(-absLoc.getX(), -absLoc.getY())); } final Point2DArray pathPartIntersectPoints = Geometry.getIntersectPolyLinePath(offsetLinePoints, pathPartList, false); if (pathPartIntersectPoints != null) { if (intersectPoints == null) { intersectPoints = new Point2DArray(); } for (final Point2D p : pathPartIntersectPoints) { intersectPoints.push(p); } } return intersectPoints; } }