Package de.gurkenlabs.litiengine.gui
Class ImageComponentList
java.lang.Object
de.gurkenlabs.litiengine.gui.GuiComponent
de.gurkenlabs.litiengine.gui.ImageComponentList
- All Implemented Interfaces:
IRenderable
,Tweenable
,MouseListener
,MouseMotionListener
,MouseWheelListener
,EventListener
- Direct Known Subclasses:
Menu
-
Field Summary
Fields inherited from class de.gurkenlabs.litiengine.gui.GuiComponent
ICON_FONT
-
Constructor Summary
ConstructorsConstructorDescriptionImageComponentList
(double x, double y, double width, double height, int rows, int columns, List<Image> images, Spritesheet background) -
Method Summary
Modifier and TypeMethodDescriptionprotected ImageComponent
createNewEntry
(double x, double y, double width, double height, Spritesheet spritesheet, String text, Image image) int
double
double
int
getRows()
void
prepare()
Prepare the GuiComponent and all its child Components (Makes the GuiComponent visible and adds mouse listeners.).void
setColumnWidth
(double columnWidth) void
setRowHeight
(double rowHeight) void
setXOffset
(double xOffset) void
setYOffset
(double yOffset) Methods inherited from class de.gurkenlabs.litiengine.gui.GuiComponent
addRenderedListener, addRenderListener, getAppearance, getAppearanceDisabled, getAppearanceHovered, getBoundingBox, getCenterX, getCenterY, getClickConsumer, getComponentId, getComponents, getCurrentAppearance, getFont, getHeight, getHoverConsumer, getHoverSound, getLocation, getMouseDraggedConsumer, getMouseEnterConsumer, getMouseLeaveConsumer, getMouseMovedConsumer, getMousePressedConsumer, getMouseReleasedConsumer, getMouseWheelConsumer, getName, getShape, getTag, getText, getTextAlign, getTextAngle, getTextShadowColor, getTextShadowRadius, getTextToRender, getTextValign, getTextX, getTextY, getTweenValues, getWidth, getX, getY, hasAutomaticLineBreaks, hasTextAntialiasing, hasTextShadow, initializeComponents, isEnabled, isForwardMouseEvents, isHovered, isPressed, isSelected, isSuspended, isVisible, mouseClicked, mouseDragged, mouseEntered, mouseEventShouldBeForwarded, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, onClicked, onHovered, onMouseDragged, onMouseEnter, onMouseLeave, onMouseMoved, onMousePressed, onMouseReleased, onMouseWheelScrolled, onTextChanged, removeListener, removeListener, render, setAutomaticLineBreaks, setDimension, setEnabled, setFont, setFontSize, setForwardMouseEvents, setHeight, setHovered, setHoverSound, setLocation, setLocation, setName, setSelected, setTag, setText, setTextAlign, setTextAngle, setTextAntialiasing, setTextShadow, setTextShadowColor, setTextShadowRadius, setTextValign, setTextX, setTextY, setTweenValues, setVisible, setWidth, setX, setY, suspend, toggleSelection, toggleSuspension
-
Constructor Details
-
ImageComponentList
public ImageComponentList(double x, double y, double width, double height, int rows, int columns, List<Image> images, Spritesheet background)
-
-
Method Details
-
getBackground
-
getCellComponents
-
getColumns
public int getColumns() -
getImages
-
getRows
public int getRows() -
prepare
public void prepare()Description copied from class:GuiComponent
Prepare the GuiComponent and all its child Components (Makes the GuiComponent visible and adds mouse listeners.). This is, for example, done right before switching to a new screen.- Overrides:
prepare
in classGuiComponent
-
getRowHeight
public double getRowHeight() -
setRowHeight
public void setRowHeight(double rowHeight) -
getColumnWidth
public double getColumnWidth() -
setColumnWidth
public void setColumnWidth(double columnWidth) -
setXOffset
public void setXOffset(double xOffset) -
setYOffset
public void setYOffset(double yOffset) -
createNewEntry
protected ImageComponent createNewEntry(double x, double y, double width, double height, Spritesheet spritesheet, String text, Image image)
-