There are following functions on objects:- function get(index)
Gets the array object of the given index. Undefined behavior for out of range index (most likly procedure will stop)- index - index of the object in the array
- function set(index, value)
Stores the value in array under the given index. Returns the new array (may be the same object as the oryginal one). Won't do any shift's.- index - index of the object in the array
- value - object to store in array
- function size()
Size of the array - maximum index of object stored in array + 1 - function getPosition()
Position of the given positionImage - function pushEnd(object)
Pushes the object to the end of the array. Returns new array. - function pushBegin(object)
Pushes the object to the begining to the object. Shifts all the elements one position right. Returns new array. - function push(object, index)
Pushes the object to the given index of array. Shifts the elements starting from index position one step right. Returns new array.- object - Object to push
- index - Index to push at
- function toPoint()
Returns point based on the value - function toArea()
Area of the position image - function subImage(x, y, width, height)
Positioned subimage from the subimage. Result image contains summed coordinates of parent and subimage- x - X position of the subimage relative to left side of parent image
- y - Y position of the subimage relative to top side of parent image
- width - Width of the subimage
- height - Height of the subimage
- function subImage(x, y, width, height)
Subimage of the image- x - X position of the subimage relative to left side of parent image
- y - Y position of the subimage relative to top side of parent image
- width - Width of the subimage
- height - Height of the subimage
- function location()
Location (Point - left top corner coordinates) of the window on the screen - function middlePoint()
Location (Point) of the center pixel relative to the top left screen corner - function findUISubcomponent(functionName, value)
returns the UI object subcomponent of the given UI object and that returns the proper value of the chosen function- functionName - Name of the function to be called on the subcomponent
- value - Expected value to be returned by searched subcomponent
- function readyForReading()
Returns boolean - true if there is any data/message available on Socket to read - function mergeValues(separator)
Merges the array of objects casting them to string and separating with given string- separator - String to separate the objects
- function mergeValues(separator)
Merges the array of objects casting them to string and separating with given string- separator - String to separate the objects
- function getColor(x, y)
Returns the color on given image over given coordinates- x - horizontal coordinate
- y - vertical coordinate
- function subImage(area)
Calculates subimage of the image. The subimage will share the data with the oryginall image - any change will be reflected on both images- area - Area of the subimage on the oryginal image
- function subImage(area)
Calculates subimage of the image. The subimage will share the data with the oryginall image - any change will be reflected on both images- area - Area of the subimage on the oryginal image
- function copy()
Creates the copy of the given image - function copy()
Creates the copy of the given image - function split(pattern)
Splits given string into array of strings - see Java's String:split function for extreme cases - function trim()
Returns trimmed (on the beggining and end) string from spaces, tabs, new lines - function replace(pattern, replace_with)
Returns string with all the patterns replaced with given value- pattern - pattern to find in string - see java's Pattern class (* is a wildchar)
- replace_with - value to replace the found pattern occurance with.
- function matches(pattern)
null - function toLowerCase()
null - function toUpperCase()
null - function toInt()
null
krzys2017-02-06