Interface WidgetChild

    • 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
      • 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