Class InterfaceComponent
- java.lang.Object
-
- org.rspeer.game.adapter.Adapter<RSInterfaceComponent>
-
- org.rspeer.game.adapter.component.InterfaceComponent
-
- All Implemented Interfaces:
Actionable
,Interactable
,Nameable
public class InterfaceComponent extends Adapter<RSInterfaceComponent> implements Interactable, Nameable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InterfaceComponent.TraversalOption
static class
InterfaceComponent.Type
-
Nested classes/interfaces inherited from interface org.rspeer.game.adapter.type.Actionable
Actionable.Query<Q extends Actionable.Query<Q>>
-
Nested classes/interfaces inherited from interface org.rspeer.game.adapter.type.Nameable
Nameable.Query<Q extends Nameable.Query<Q>>
-
-
Constructor Summary
Constructors Constructor Description InterfaceComponent(RSInterfaceComponent provider)
-
Method Summary
-
Methods inherited from class org.rspeer.game.adapter.Adapter
getProvider, validate
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.rspeer.game.adapter.type.Actionable
containsAction, containsAction
-
-
-
-
Constructor Detail
-
InterfaceComponent
public InterfaceComponent(RSInterfaceComponent provider)
-
-
Method Detail
-
getX
public int getX()
-
getY
public int getY()
-
isVisible
public boolean isVisible()
-
getUid
public int getUid()
-
getParent
public InterfaceComponent getParent()
-
getParentUid
public int getParentUid()
-
getMaterialId
public int getMaterialId()
-
getBorderThickness
public int getBorderThickness()
-
getSpriteId
public int getSpriteId()
-
getType
public InterfaceComponent.Type getType()
-
getContentType
public int getContentType()
-
getButtonType
public int getButtonType()
-
getForeground
public int getForeground()
-
getShadowColor
public int getShadowColor()
-
getModelId
public int getModelId()
-
getModelType
public int getModelType()
-
getWidth
public int getWidth()
-
getHeight
public int getHeight()
-
getConfig
public int getConfig()
-
transmits
public boolean transmits(Object o)
-
getText
public String getText()
-
getNext
public InterfaceComponent getNext()
-
getPrevious
public InterfaceComponent getPrevious()
-
getActions
public List<String> getActions()
- Specified by:
getActions
in interfaceActionable
-
getRawActions
public String[] getRawActions()
- Specified by:
getRawActions
in interfaceActionable
-
actionOf
public ComponentAction actionOf(String action, int itemId)
-
actionOf
public ComponentAction actionOf(String action)
- Specified by:
actionOf
in interfaceInteractable
-
isSubComponent
public boolean isSubComponent()
-
getGroupIndex
public int getGroupIndex()
-
getIndex
public int getIndex()
-
getSubComponentIndex
public int getSubComponentIndex()
-
getParentIndex
public int getParentIndex()
-
toAddress
public InterfaceAddress toAddress()
-
getFontId
public int getFontId()
-
getBounds
public Rectangle getBounds()
-
getSubComponentCount
public int getSubComponentCount()
-
getSubComponent
public InterfaceComponent getSubComponent(int index)
-
getSubComponents
public List<InterfaceComponent> getSubComponents(InterfaceComponent.TraversalOption option)
-
getSubComponents
public List<InterfaceComponent> getSubComponents()
-
querySubComponents
public ComponentQuery querySubComponents()
-
getSelectedAction
public String getSelectedAction()
-
getSpellName
public String getSpellName()
-
getToolTip
public String getToolTip()
-
getItem
public Item getItem()
-
isExplicitlyHidden
public boolean isExplicitlyHidden()
-
getItemId
public int getItemId()
-
getItemStackSize
public int getItemStackSize()
-
getSprite
public Sprite getSprite(boolean enabled)
-
setText
public void setText(String text)
-
-