Package com.epicbot.api.shared.entity
Interface WidgetChild
-
- All Superinterfaces:
Actionable
,Clickable
,java.lang.Comparable<WidgetChild>
,Identifiable
,Interactable
,Item
,Nameable
,Renderable
,Validatable
public interface WidgetChild extends Actionable, Clickable, Interactable, Item, Validatable, java.lang.Comparable<WidgetChild>
Represents an interface component. A widget child may or may not have a parent interface, and will always have a parentWidgetGroup
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WidgetChild
find(java.util.function.Predicate<WidgetChild> filter)
Finds a matching child.java.util.List<WidgetChild>
findAll(java.util.function.Predicate<WidgetChild> filter)
Finds a matching child.java.awt.Point
getAbsoluteLocation()
Gets the absolute location on screen.int
getAbsoluteX()
Gets the absolute x-coordinate on screen.int
getAbsoluteY()
Gets the absolute y-coordinate on screen.int
getAlpha()
Gets the alpha/transparency.int
getBorderThickness()
Gets the border thickness.java.awt.Rectangle
getBounds()
Gets the bounding rectangle of this interface.WidgetChild
getChild(int index)
Gets the child at the given index.int
getChildId()
Gets the interface id of this child.java.util.List<WidgetChild>
getChildren()
Gets the children.int
getFontId()
Gets the font id.WidgetGroup
getGroup()
Gets the widget group.int
getHeight()
Gets the height.int
getIndex()
Gets the index.WidgetChildItem
getItem(int index)
Gets the item at the given index.int
getItemId()
Gets the item id.int[]
getItemIds()
Gets the item ids.java.util.List<WidgetChildItem>
getItems()
Gets the items.int
getMarginX()
Gets the margin on the x-axis.int
getMarginY()
Gets the margin on the y-axis.int
getMaterialId()
Gets the material id.int
getModelId()
Gets the model id.int
getModelOffsetX()
Gets the x-axis offset of the model.int
getModelOffsetY()
Gets the y-axis offset of the model.int
getModelType()
Gets the model type.int
getModelZoom()
Gets the model zoom.WidgetChild
getParent()
Gets the parent.int
getParentId()
Gets the id of the parent.java.awt.Point
getRelativeLocation()
Gets the location relative to its parent.int
getRelativeX()
Gets the x-coordinate relative to its parent.int
getRelativeY()
Gets the y-coordinate relative to its parent.int
getRotationX()
Gets the rotation on the x-axis.int
getRotationY()
Gets the rotation on the y-axis.int
getRotationZ()
Gets the rotation on the z-axis.int
getScrollHeight()
Gets the height of the scroll bar.int
getScrollWidth()
Gets the width of the scroll bar.int
getScrollX()
Gets the x-coordinate of the scroll bar.int
getScrollY()
Gets the y-coordinate of the scroll bar.java.awt.Color
getShadowColor()
Gets the shadow color.int
getSpriteId()
Gets the sprite id.java.lang.String
getText()
Gets the text.java.awt.Color
getTextColor()
Gets the text color.int
getTextMarginX()
Gets the text margin on the x-axis.int
getTextMarginY()
Gets the text margin on the y-axis.int
getTextSpacing()
Gets the text spacing.int
getWidth()
Gets the width.boolean
hasChildren()
Gets whether or not this interface has children.boolean
isFlippedHorizontally()
Gets whether or not this interface is flipped horizontally.boolean
isFlippedVertically()
Gets whether or not this interface is flipped vertically.boolean
isTextShadowed()
Gets whether or not the text is shadowed.-
Methods inherited from interface com.epicbot.api.shared.entity.details.Actionable
getActions, hasAction, hasActionMatch
-
Methods inherited from interface com.epicbot.api.shared.entity.details.Clickable
click, click, hover
-
Methods inherited from interface com.epicbot.api.shared.entity.details.Identifiable
getId
-
Methods inherited from interface com.epicbot.api.shared.entity.details.Interactable
interact, interact, interact, interact, interact, interactMatch
-
Methods inherited from interface com.epicbot.api.shared.entity.Item
getGroundActions, getHighAlchemyPrice, getLowAlchemyPrice, getNotedId, getStackSize, getStorePrice, getUnNotedId, hasGroundAction, isMembers, isNoted, isStackable
-
Methods inherited from interface com.epicbot.api.shared.entity.details.Renderable
contains, draw, getCentralPoint, getRandomPoint, getRealCentralPoint, isVisible
-
Methods inherited from interface com.epicbot.api.shared.entity.details.Validatable
isValid
-
-
-
-
Method Detail
-
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
java.awt.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
java.awt.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
java.awt.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
-
getMarginX
int getMarginX()
Gets the margin on the x-axis.- Returns:
- int
-
getMarginY
int getMarginY()
Gets the margin on the y-axis.- Returns:
- int
-
getTextMarginX
int getTextMarginX()
Gets the text margin on the x-axis.- Returns:
- int
-
getTextMarginY
int getTextMarginY()
Gets the text margin on the y-axis.- Returns:
- int
-
isFlippedVertically
boolean isFlippedVertically()
Gets whether or not this interface is flipped vertically.- Returns:
- boolean
-
isFlippedHorizontally
boolean isFlippedHorizontally()
Gets whether or not this interface is flipped horizontally.- Returns:
- boolean
-
getAlpha
int getAlpha()
Gets the alpha/transparency.- Returns:
- int
-
getMaterialId
int getMaterialId()
Gets the material id.- Returns:
- int
-
getSpriteId
int getSpriteId()
Gets the sprite id.- Returns:
- int
-
getFontId
int getFontId()
Gets the font id.- Returns:
- int
-
getModelType
int getModelType()
Gets the model type.- Returns:
- int
-
getModelZoom
int getModelZoom()
Gets the model zoom.- Returns:
- int
-
getModelId
int getModelId()
Gets the model id.- Returns:
- int
-
getModelOffsetX
int getModelOffsetX()
Gets the x-axis offset of the model.- Returns:
- int
-
getModelOffsetY
int getModelOffsetY()
Gets the y-axis offset of the model.- Returns:
- int
-
getText
java.lang.String getText()
Gets the text.- Returns:
- String
-
getTextColor
java.awt.Color getTextColor()
Gets the text color.- Returns:
Color
-
getTextSpacing
int getTextSpacing()
Gets the text spacing.- Returns:
- int
-
isTextShadowed
boolean isTextShadowed()
Gets whether or not the text is shadowed.- Returns:
- boolean
-
getShadowColor
java.awt.Color getShadowColor()
Gets the shadow color.- Returns:
Color
-
getItemId
int getItemId()
Gets the item id.- Returns:
- int[]
-
getItemIds
int[] getItemIds()
Gets the item ids.- Returns:
- int[]
-
hasChildren
boolean hasChildren()
Gets whether or not this interface has children.- Returns:
- true if it has children, false otherwise
-
getChildren
java.util.List<WidgetChild> getChildren()
Gets the children.- Returns:
- list of children
-
getChild
WidgetChild getChild(int index)
Gets the child at the given index.- Parameters:
index
- the index- Returns:
- child or null
-
find
WidgetChild find(java.util.function.Predicate<WidgetChild> filter)
Finds a matching child.- Parameters:
filter
- the matching filter- Returns:
WidgetChild
or null
-
findAll
java.util.List<WidgetChild> findAll(java.util.function.Predicate<WidgetChild> filter)
Finds a matching child.- Parameters:
filter
- the matching filter- Returns:
- list of
WidgetChild
-
getItems
java.util.List<WidgetChildItem> getItems()
Gets the items.- Returns:
- list of items
-
getItem
WidgetChildItem getItem(int index)
Gets the item at the given index.- Parameters:
index
- the index- Returns:
- item or null
-
-