Java Graphics Triangle

Java Graphics Triangle Rating: 3,8/5 2867 reviews

Lipps inc funky town acapella gospel. Import java.awt.Graphics. Import java.awt.Graphics2D. Import java.awt.geom.Line2D. Public class Triangle extends JComponent.

Attention, Internet Explorer User Announcement: Oracle Community has discontinued support for Internet Explorer 7 and below. Come installare wolfncu skinny. In order to provide the best platform for continued innovation, Oracle Community no longer supports Internet Explorer 7. Oracle Community will not function with this version of Internet Explorer. Please consider upgrading to a more recent version of Internet Explorer, or trying another browser such as Firefox, Safari, or Google Chrome.

Triangle

(Please remember to honor your company's IT policies before installing new software!) • • • •.

Returns a high precision and more accurate bounding box of the Shape than the getBounds method. Note that there is no guarantee that the returned is the smallest bounding box that encloses the Shape, only that the Shape lies entirely within the indicated Rectangle2D. The bounding box returned by this method is usually tighter than that returned by the getBounds method and never fails due to overflow problems since the return value can be an instance of the Rectangle2D that uses double precision values to store the dimensions.

Note that the can lead to situations where points on the defining outline of the shape may not be considered contained in the returned bounds object, but only in cases where those points are also not considered contained in the original shape. If a point is inside the shape according to the method, then it must be inside the returned Rectangle2D bounds object according to the method of the bounds. Specifically: shape.contains(p) requires bounds.contains(p) If a point is not inside the shape, then it might still be contained in the bounds object: bounds.contains(p) does not imply shape.contains(p) Specified by: in interface Overrides: in class Returns: an instance of Rectangle2D that is a high-precision bounding box of the Shape.

Since: 1.2 See Also: • setBounds public void setBounds( r). Sets the bounding Rectangle of this Rectangle to the specified x, y, width, and height. This method is included for completeness, to parallel the setBounds method of Component. Parameters: x - the new X coordinate for the upper-left corner of this Rectangle y - the new Y coordinate for the upper-left corner of this Rectangle width - the new width for this Rectangle height - the new height for this Rectangle Since: 1.1 See Also:, • setRect public void setRect(double x, double y, double width, double height). Sets the bounds of this Rectangle to the integer bounds which encompass the specified x, y, width, and height. If the parameters specify a Rectangle that exceeds the maximum range of integers, the result will be the best representation of the specified Rectangle intersected with the maximum integer bounds.