ImageGear for Java
ImGearDoubleRectangle Class Members
Methods 

The following tables list the members exposed by ImGearDoubleRectangle.

Public Constructors
 NameDescription
Public ConstructorImGearDoubleRectangle ConstructorOverloaded.   
Top
Public Methods
 NameDescription
Public MethodcopyFromThis method copies rectangle from IImGearDoubleRectangle interface.  
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 double precision number.

 
Public MethodgetHeightGets the height of the rectangle.

Any double precision number.

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() return 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 double precision number.

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

Any double precision number.

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

Any double precision number.

 
Public MethodgetWidthGets the width of the rectangle.

Any double precision number.

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 return 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 MethodintersectChecks whether or not the rectangle is intersected with the specified rectangle.  
Public MethodisEmptyTests whether all numeric properties of the rectangle have their initial values.  
Public MethodisWellFormedChecks if rectangle's width is greater than or equal to zero and if its height is greater than or equal to zero.  
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 double precision number.

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

Any double precision number.

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

Any double precision number.

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

Any double precision number.

 
Top
See Also

Reference

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

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback