com.teamdev.jxcapture.image.operation
Class ScreenObjectCapture.UIElementRect

java.lang.Object
  extended by java.awt.geom.RectangularShape
      extended by java.awt.geom.Rectangle2D
          extended by java.awt.Rectangle
              extended by com.teamdev.jxcapture.image.operation.ScreenObjectCapture.UIElementRect
All Implemented Interfaces:
java.awt.Shape, java.io.Serializable, java.lang.Cloneable
Enclosing class:
ScreenObjectCapture

public static class ScreenObjectCapture.UIElementRect
extends java.awt.Rectangle

Allows displaying the rectangle around a specified UIElement object.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.geom.Rectangle2D
java.awt.geom.Rectangle2D.Double, java.awt.geom.Rectangle2D.Float
 
Field Summary
 
Fields inherited from class java.awt.Rectangle
height, width, x, y
 
Fields inherited from class java.awt.geom.Rectangle2D
OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP
 
Constructor Summary
ScreenObjectCapture.UIElementRect(com.teamdev.jxdesktop.UIElement element)
           
 
Method Summary
 java.util.List getRectangles()
           
 java.awt.Point getScreenOffset()
          Retruns the screen location offset.
 com.teamdev.jxdesktop.UIElement getUIElement()
           
 
Methods inherited from class java.awt.Rectangle
add, add, add, contains, contains, contains, contains, createIntersection, createUnion, equals, getBounds, getBounds2D, getHeight, getLocation, getSize, getWidth, getX, getY, grow, inside, intersection, intersects, isEmpty, move, outcode, reshape, resize, setBounds, setBounds, setLocation, setLocation, setRect, setSize, setSize, toString, translate, union
 
Methods inherited from class java.awt.geom.Rectangle2D
add, add, add, contains, contains, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, setRect, union
 
Methods inherited from class java.awt.geom.RectangularShape
clone, contains, contains, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.Shape
contains, contains, contains, contains, getPathIterator, getPathIterator, intersects, intersects
 

Constructor Detail

ScreenObjectCapture.UIElementRect

public ScreenObjectCapture.UIElementRect(com.teamdev.jxdesktop.UIElement element)
Method Detail

getUIElement

public com.teamdev.jxdesktop.UIElement getUIElement()

getRectangles

public java.util.List getRectangles()

getScreenOffset

public java.awt.Point getScreenOffset()
Retruns the screen location offset. It requires when the several desktops are available on the screen and the main screen always has 0:0 location regardless of where it is.

Returns:
the location with X and Y offsets.