Package com.epicbot.api.shared.entity
Interface WidgetChild
- All Superinterfaces:
Actionable,Clickable,Comparable<WidgetChild>,Identifiable,Interactable,Item,Nameable,Renderable,Validatable
public interface WidgetChild
extends Actionable, Clickable, Interactable, Item, Validatable, Comparable<WidgetChild>
Represents an interface component. A widget child may or may not have a parent interface, and will always have a parent
WidgetGroup.-
Method Summary
Modifier and TypeMethodDescriptionfind(Predicate<WidgetChild> filter) Finds a matching child.findAll(Predicate<WidgetChild> filter) Finds a matching child.Gets the absolute location on screen.intGets the absolute x-coordinate on screen.intGets the absolute y-coordinate on screen.intgetAlpha()Gets the alpha/transparency.intGets the border thickness.Gets the bounding rectangle of this interface.getChild(int index) Gets the child at the given index.intGets the interface id of this child.Gets the children.intGets the font id.getGroup()Gets the widget group.intGets the height.intgetIndex()Gets the index.intGets the item id.intGets the material id.intGets the model id.intGets the model zoom.Gets the parent.intGets the id of the parent.Gets the raw text with HTMLGets the location relative to its parent.intGets the x-coordinate relative to its parent.intGets the y-coordinate relative to its parent.intGets the rotation on the x-axis.intGets the rotation on the y-axis.intGets the rotation on the z-axis.intGets the height of the scroll bar.intGets the width of the scroll bar.intGets the x-coordinate of the scroll bar.intGets the y-coordinate of the scroll bar.getText()Gets the text.Gets the text color.intgetWidth()Gets the width.booleanGets whether or not this interface has children.Methods inherited from interface com.epicbot.api.shared.entity.details.Actionable
getActions, hasAction, hasActionMatchMethods inherited from interface com.epicbot.api.shared.entity.details.Clickable
click, click, hoverMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.epicbot.api.shared.entity.details.Identifiable
getIdMethods inherited from interface com.epicbot.api.shared.entity.details.Interactable
interact, interact, interact, interact, interactMatchMethods inherited from interface com.epicbot.api.shared.entity.Item
getGroundActions, getHighAlchemyPrice, getLowAlchemyPrice, getNotedId, getStackSize, getStorePrice, getUnNotedId, hasGroundAction, isMembers, isNoted, isStackable, isTradableMethods inherited from interface com.epicbot.api.shared.entity.details.Renderable
contains, draw, draw, draw, getCentralPoint, getRandomPoint, getRealCentralPoint, isVisibleMethods inherited from interface com.epicbot.api.shared.entity.details.Validatable
isValid
-
Method Details
-
getIndex
int getIndex()Gets the index.- Returns:
- int
-
getChildId
int getChildId()Gets the interface id of this child.- Returns:
- int
-
getParentId
int getParentId()Gets the id of the parent.- Returns:
- int
-
getGroup
WidgetGroup getGroup()Gets the widget group.- Returns:
WidgetGroup
-
getParent
WidgetChild getParent()Gets the parent.- Returns:
- parent or null
-
getRelativeX
int getRelativeX()Gets the x-coordinate relative to its parent.- Returns:
- int
-
getRelativeY
int getRelativeY()Gets the y-coordinate relative to its parent.- Returns:
- int
-
getRelativeLocation
Point getRelativeLocation()Gets the location relative to its parent.- Returns:
- int
-
getAbsoluteX
int getAbsoluteX()Gets the absolute x-coordinate on screen.- Returns:
- int
-
getAbsoluteY
int getAbsoluteY()Gets the absolute y-coordinate on screen.- Returns:
- int
-
getAbsoluteLocation
Point getAbsoluteLocation()Gets the absolute location on screen.- Returns:
- int
-
getWidth
int getWidth()Gets the width.- Returns:
- int
-
getHeight
int getHeight()Gets the height.- Returns:
- int
-
getBounds
Rectangle getBounds()Gets the bounding rectangle of this interface.- Returns:
- int
-
getScrollX
int getScrollX()Gets the x-coordinate of the scroll bar.- Returns:
- int
-
getScrollY
int getScrollY()Gets the y-coordinate of the scroll bar.- Returns:
- int
-
getScrollWidth
int getScrollWidth()Gets the width of the scroll bar.- Returns:
- int
-
getScrollHeight
int getScrollHeight()Gets the height of the scroll bar.- Returns:
- int
-
getBorderThickness
int getBorderThickness()Gets the border thickness.- Returns:
- int
-
getRotationX
int getRotationX()Gets the rotation on the x-axis.- Returns:
- int
-
getRotationY
int getRotationY()Gets the rotation on the y-axis.- Returns:
- int
-
getRotationZ
int getRotationZ()Gets the rotation on the z-axis.- Returns:
- int
-
getAlpha
int getAlpha()Gets the alpha/transparency.- Returns:
- int
-
getMaterialId
int getMaterialId()Gets the material id.- Returns:
- int
-
getFontId
int getFontId()Gets the font id.- Returns:
- int
-
getModelZoom
int getModelZoom()Gets the model zoom.- Returns:
- int
-
getModelId
int getModelId()Gets the model id.- Returns:
- int
-
getText
String getText()Gets the text.- Returns:
- String
-
getRawText
String getRawText()Gets the raw text with HTML- Returns:
- String
-
getTextColor
Color getTextColor()Gets the text color.- Returns:
Color
-
getItemId
int getItemId()Gets the item id.- Returns:
- int[]
-
hasChildren
boolean hasChildren()Gets whether or not this interface has children.- Returns:
- true if it has children, false otherwise
-
getChildren
List<WidgetChild> getChildren()Gets the children.- Returns:
- list of children
-
getChild
Gets the child at the given index.- Parameters:
index- the index- Returns:
- child or null
-
find
Finds a matching child.- Parameters:
filter- the matching filter- Returns:
WidgetChildor null
-
findAll
Finds a matching child.- Parameters:
filter- the matching filter- Returns:
- list of
WidgetChild
-