public class ScrollArea extends Container
VScrollContainer or
VScrollContainer but keeps the relative x and y positions of the items. Scrollbars are
only displayed if items overflow the size of the ScrollArea.Control.Constants, Control.ImageMode, Control.Predicate, Control.Predicate1<T>, Control.Predicate2<T,U>, Control.RenderingMethod, Control.Setter<T>FONT_SIZE, LINE_HEIGHT, TEXT_ALIGN, TEXT_ALIGN_Y, TEXT_COLORALL, ANCHOR_INACTIVE, AUTOSIZE_BOTH, AUTOSIZE_HEIGHT, AUTOSIZE_NONE, AUTOSIZE_WIDTH, BACKGROUND_COLOR, BACKGROUND_COLORS, BORDER, BORDER_COLOR, BORDER_RADIUS, BORDER_WIDTH, BUFFERED_RENDERING, COLORS, defaultRenderingMethod, FILL, FIT, FIT_INSIDE, FOREGROUND_COLOR, HOVER_COLOR, MARGIN, MARGIN_BOTTOM, MARGIN_LEFT, MARGIN_RIGHT, MARGIN_TOP, name, OPACITY, PADDING, PADDING_BOTTOM, PADDING_LEFT, PADDING_RIGHT, PADDING_TOP, PERCENTAGE_MODE, PIXEL_MODE, PRESSED_COLOR, SPACING, TEXT_PROPERTIES, UNBUFFERED_RENDERING| Constructor and Description |
|---|
ScrollArea() |
ScrollArea(int width,
int height) |
| Modifier and Type | Method and Description |
|---|---|
int |
getFullScrollHeight() |
int |
getFullScrollWidth() |
int |
getScrollPositionX() |
int |
getScrollPositionY() |
int |
getScrollSpeedX() |
int |
getScrollSpeedY() |
boolean |
isSlimScrollHandle() |
void |
setScrollPositionX(int scrollPositionX)
Set horizontal scroll position in pixel from left.
|
void |
setScrollPositionY(int scrollPositionY)
Set vertical scroll position in pixel from top.
|
void |
setScrollSpeedX(int scrollSpeedX)
Amount of pixels to scroll for each step with the mouse wheel in horizontal direction.
|
void |
setScrollSpeedY(int scrollSpeedY)
Amount of pixels to scroll for each step with the mouse wheel in vertical direction.
|
void |
setSlimScrollHandle(boolean slim_scrollhandle)
Enable a slim (mobile phone like) scroll handle instead of the standard one.
|
add, clear, fitContent, getItem, getItems, getNumItems, indexOf, insert, remove, remove, sortItems, traceAbsoluteCoordinates, traceRelativeCoordinatescopyStyle, getFont, getFontSize, getLineHeight, getText, getTextAlign, getTextAlignY, getTextColor, isBold, isItalic, isStrikethrough, isUnderlined, setBold, setFont, setFontSize, setForegroundColor, setItalic, setLineHeight, setLineHeightPercent, setStrikethrough, setText, setText, setTextAlign, setTextAlignY, setTextColor, setUnderlinedaddAutoAnchors, animate, blur, copyStyle, doForAll, fillParent, fillParent, fillParent, fillParentHeight, fillParentHeight, fillParentWidth, fillParentWidth, focus, forceRepaint, getAnchorMode, getAnchorValue, getAvailableHeight, getAvailableWidth, getBackgroundColor, getBorderColor, getBorderRadius, getBorderWidth, getCursor, getForegroundColor, getHeight, getHoverColor, getImage, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOffsetXToParent, getOffsetXToWindow, getOffsetYToParent, getOffsetYToWindow, getOpacity, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getParent, getPressedColor, getVersionString, getWidth, getX, getY, getZ, isEnabled, isFocusable, isFocused, isPropagationStopped, isVisible, noAutosize, relativeCoordsAreWithin, removeAnchor, removeBoxShadow, removeFocusListener, removeMouseListener, removeResizeListener, setAnchor, setAnchors, setAutosizing, setBackgroundColor, setBorder, setBorder, setBorderColor, setBorderRadius, setBorderWidth, setBoxShadow, setCursor, setEnabled, setFixedSize, setFocusListener, setFocusListener, setFocusListener, setFocusListener, setGradient, setHeight, setHeight, setHoverColor, setImage, setImageMode, setMargin, setMargin, setMargin, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setMouseListener, setMouseListener, setMouseListener, setMouseListener, setOpacity, setOpacity, setPadding, setPadding, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setPercentageAnchor, setPercentageAnchors, setPixelAnchor, setPixelAnchors, setPosition, setPressedColor, setResizeListener, setResizeListener, setResizeListener, setResizeListener, setSize, setVisibility, setVisible, setWidth, setWidth, setX, setY, setZ, stopPropagation, unfocuspublic ScrollArea()
public ScrollArea(int width,
int height)
public void setScrollSpeedX(int scrollSpeedX)
scrollSpeedX - scrollSpeedXpublic void setScrollSpeedY(int scrollSpeedY)
scrollSpeedY - scrollSpeedYpublic void setScrollPositionX(int scrollPositionX)
scrollPositionX - scrollPositionXpublic void setScrollPositionY(int scrollPositionY)
scrollPositionY - scrollPositionYpublic void setSlimScrollHandle(boolean slim_scrollhandle)
slim_scrollhandle - slim_scrollhandlepublic int getScrollSpeedX()
public int getScrollSpeedY()
public int getFullScrollWidth()
public int getFullScrollHeight()
public boolean isSlimScrollHandle()
public int getScrollPositionX()
public int getScrollPositionY()
Processing Library guiSET by Mc Zen. (c) 2021