ImageGear for Java
ImGearRectangle Class Members
Methods 

The following tables list the members exposed by ImGearRectangle.

Public Constructors
 NameDescription
Public ConstructorImGearRectangle ConstructorOverloaded.   
Top
Public Methods
 NameDescription
Public MethodcontainsChecks if the specified point's coordinates are inside of the rectangle.  
Public MethodcopyFromCopies the specified ImGearRectangle object into this instance of the ImGearRectangle class.  
Public MethodemptySets all numeric properties of the rectangle to their initial values.  
Public MethodgetBottomGets the y-coordinate of the lower-right corner of the rectangle.

Any integer value.

 
Public MethodgetHeightGets the height of the rectangle.

Any integer value.

Note:

The Height and Width properties assume that the rectangle is being used with the endpoint-inclusive semantics. Using endpoint-inclusive semantics, a rectangle with left, top, right, and bottom coordinates all equal to 0 is one pixel wide and one pixel tall. So, for example, the getWidth() value is calculated as Right - Left + 1. ImGearARTMarktimes rectangles are used with endpoint-exclusive semantics, in which the width of the rectangle should be calculated as Right - Left. In this case, the Width and Height properties should not be used.

 
Public MethodgetLeftGets the x-coordinate of the upper-left corner of the rectangle.

Any integer value.

 
Public MethodgetRightGets the x-coordinate of the lower-right corner of the rectangle.

Any integer value.

 
Public MethodgetTopGets the y-coordinate of the upper-left corner of the rectangle.

Any integer value.

 
Public MethodgetWidthGets the width of the rectangle.

Any integer value.

Note:

The Height and Width properties assume that the rectangle is being used with endpoint-inclusive semantics. Using endpoint-inclusive semantics, a rectangle with left, top, right, and bottom coordinates all equal to 0 is one pixel wide and one pixel tall. So, for example, the getWidth() value is calculated as Right - Left + 1. ImGearARTMarktimes rectangles are used with endpoint-exclusive semantics, in which the width of the rectangle should be calculated as Right - Left. In this case, the Width and Height properties should not be used.

 
Public MethodintersectReplaces this rectangle with the intersection of itself and another rectangle.  
Public MethodisEmptyTests whether all numeric properties of the rectangle are set to their initial values.  
Public MethodisWellFormedTests whether the rectangle is valid.  
Public MethodjoinChanges the rectangle's points to contain the specified point.  
Public MethodoffsetShifts the rectangle points by the specified shiftX and shiftY values.  
Public MethodsetBottomSets the y-coordinate of the lower-right corner of the rectangle.

Any integer value.

 
Public MethodsetLeftSets the x-coordinate of the upper-left corner of the rectangle.

Any integer value.

 
Public MethodsetRightSets the x-coordinate of the lower-right corner of the rectangle.

Any integer value.

 
Public MethodsetTopSets the y-coordinate of the upper-left corner of the rectangle.

Any integer value.

 
Top
See Also

Reference

ImGearRectangle Class
com.accusoft.imagegear.core.shapes Package

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback