Class ProxyItem
java.lang.Object
de.rcblum.stream.deck.items.AbstractStreamItem
de.rcblum.stream.deck.items.FolderItem
de.rcblum.stream.deck.items.ProxyItem
- All Implemented Interfaces:
StreamKeyListener, StreamItem
-
Field Summary
Fields inherited from class AbstractStreamItem
animation, buttonCount, img, parent, rawImg, rowCount, text, textPosFields inherited from interface StreamItem
TEXT_POS_BOTTOM, TEXT_POS_CENTER, TEXT_POS_TOP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the animation of the item.intgetChild(int i) intgetChildId(StreamItem item) Returns the Index of the childReturns an array with the children of this item.Returns the parent of the item.intvoidsetButtonCount(int buttonCount) voidSets the icon for the item.voidsetParent(StreamItem parent) voidsetRowCount(int rowCount) voidSets the text to be displayed of the item.voidsetTextLine1(String text, int fontSize) voidsetTextLine2(String text, int fontSize) voidsetTextLine3(String text, int fontSize) voidsetTextPosition(int textPos) Position of the displayed text.Methods inherited from class FolderItem
getChildCount, getIcon, onKeyEvent, setFolderNameMethods inherited from class AbstractStreamItem
addIconUpdateListener, fireIconUpdate, getColumnCount, getDialListeners, getText, getTouchScreenImage, getTouchScreenListeners, hasAnimation, hasDialListeners, hasTouchScreenImage, hasTouchScreenListeners, removeIconUpdateListener, setAnimation, setIconPackage, setTextMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface StreamItem
isLeaf
-
Constructor Details
-
ProxyItem
-
-
Method Details
-
getChild
- Specified by:
getChildin interfaceStreamItem- Overrides:
getChildin classFolderItem
-
getAnimation
Description copied from interface:StreamItemReturns the animation of the item.- Specified by:
getAnimationin interfaceStreamItem- Overrides:
getAnimationin classAbstractStreamItem- Returns:
- Animation in form of the
AnimationStack,nullif the item has no no animation
-
getChildId
Description copied from interface:StreamItemReturns the Index of the child- Specified by:
getChildIdin interfaceStreamItem- Overrides:
getChildIdin classFolderItem- Parameters:
item- Child to be identified- Returns:
- Index of the child or -1 if its not a child.
-
getChildren
Description copied from interface:StreamItemReturns an array with the children of this item. If the item has a parent, the parent must be the 5th item (StreamItem.getChildren()[4] ) in the array.- Specified by:
getChildrenin interfaceStreamItem- Overrides:
getChildrenin classFolderItem- Returns:
- Children of this item, or null, if not a folder
-
getParent
Description copied from interface:StreamItemReturns the parent of the item.- Specified by:
getParentin interfaceStreamItem- Overrides:
getParentin classAbstractStreamItem- Returns:
- StreamItem that is the parent of this item,
nullif the StreamItem has nor parent.
-
setParent
- Specified by:
setParentin interfaceStreamItem- Overrides:
setParentin classAbstractStreamItem
-
getButtonCount
public int getButtonCount()- Specified by:
getButtonCountin interfaceStreamItem- Overrides:
getButtonCountin classAbstractStreamItem
-
setButtonCount
public void setButtonCount(int buttonCount) - Specified by:
setButtonCountin interfaceStreamItem- Overrides:
setButtonCountin classAbstractStreamItem
-
getRowCount
public int getRowCount()- Specified by:
getRowCountin interfaceStreamItem- Overrides:
getRowCountin classAbstractStreamItem
-
setRowCount
public void setRowCount(int rowCount) - Specified by:
setRowCountin interfaceStreamItem- Overrides:
setRowCountin classAbstractStreamItem
-
setIcon
Description copied from interface:StreamItemSets the icon for the item.- Specified by:
setIconin interfaceStreamItem- Overrides:
setIconin classAbstractStreamItem- Parameters:
icon- New icon for the item.
-
setText
Description copied from interface:StreamItemSets the text to be displayed of the item.- Specified by:
setTextin interfaceStreamItem- Overrides:
setTextin classAbstractStreamItem- Parameters:
text- Text to be displayed
-
setTextPosition
public void setTextPosition(int textPos) Description copied from interface:StreamItemPosition of the displayed text.- Specified by:
setTextPositionin interfaceStreamItem- Overrides:
setTextPositionin classAbstractStreamItem- Parameters:
textPos- Position of the text (Top -StreamItem.TEXT_POS_TOP, center-StreamItem.TEXT_POS_CENTER, bottom,StreamItem.TEXT_POS_BOTTOM)
-
setTextLine1
-
setTextLine2
-
setTextLine3
-