/** * Constructs an envelope that covers the given point. The coordinates of * the point are used to set the extent of the envelope. * * @param point The point that the envelope covers. */ public Envelope(Point point) { m_description = VertexDescriptionDesignerImpl.getDefaultDescriptor2D(); m_envelope.setEmpty(); if (point.isEmpty()) return; _setFromPoint(point); }
/** * Constructs an envelope that covers the given point. The coordinates of * the point are used to set the extent of the envelope. * * @param point The point that the envelope covers. */ public Envelope(Point point) { m_description = VertexDescriptionDesignerImpl.getDefaultDescriptor2D(); m_envelope.setEmpty(); if (point.isEmpty()) return; _setFromPoint(point); }
/** * Creates an envelope by defining its center, width, and height. * * @param center * The center point of the envelope. * @param width * The width of the envelope. * @param height * The height of the envelope. */ public Envelope(Point center, double width, double height) { m_description = VertexDescriptionDesignerImpl.getDefaultDescriptor2D(); m_envelope.setEmpty(); if (center.isEmpty()) return; _setFromPoint(center, width, height); }
/** * Sets the envelope's corners to be centered around the specified point, * using its center, width, and height. * * @param c * The point around which to center the envelope. * @param w * The width to be set for the envelope. * @param h * The height to be set for this envelope. */ public void centerAt(Point c, double w, double h) { _touch(); if (c.isEmpty()) { setEmpty(); return; } _setFromPoint(c, w, h); }
/** * Creates an envelope by defining its center, width, and height. * * @param center * The center point of the envelope. * @param width * The width of the envelope. * @param height * The height of the envelope. */ public Envelope(Point center, double width, double height) { m_description = VertexDescriptionDesignerImpl.getDefaultDescriptor2D(); m_envelope.setEmpty(); if (center.isEmpty()) return; _setFromPoint(center, width, height); }
/** * Sets the envelope's corners to be centered around the specified point, * using its center, width, and height. * * @param c * The point around which to center the envelope. * @param w * The width to be set for the envelope. * @param h * The height to be set for this envelope. */ public void centerAt(Point c, double w, double h) { _touch(); if (c.isEmpty()) { setEmpty(); return; } _setFromPoint(c, w, h); }
_setFromPoint(point); return;
_setFromPoint(point); return;