public class Label extends Button implements IScrollable
Widget.NotifyEvent| Modifier and Type | Method and Description |
|---|---|
float[] |
getColor() |
float[] |
getColorFocus() |
float[] |
getColorOver() |
float[] |
getColorPress() |
java.lang.String |
getFontName() |
int |
getFontSize() |
int |
getStepForHorizontalScrolling() |
int |
getStepForVerticalScrolling() |
java.lang.String |
getText() |
Anchor |
getTextAnchor() |
<O> O |
getTextObject() |
boolean |
isAlignOnBaseLine() |
boolean |
isFitToContents() |
void |
setAlignOnBaseLine(boolean alignOnBaseLine) |
void |
setColor(Color4 color) |
void |
setColorFocus(Color4 colorFocus) |
void |
setColorOver(Color4 colorOver) |
void |
setColorPress(Color4 colorPress) |
void |
setFitToContents(boolean fitToContents) |
void |
setFontName(java.lang.String fontName) |
void |
setFontSize(int fontSize) |
void |
setText(java.lang.String text) |
void |
setTextAnchor(Anchor textAnchor) |
void |
setTextObject(java.lang.Object object) |
void |
update(UI ui,
long timePassedMS)
Widget update. |
addActionListener, removeActionListeneraddAnimator, addFocusListener, addKeyListener, addMouseFocusListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, find, find, focusTraversal, forceSize, getBackground, getBackgroundBorder, getBackgroundColor, getBackgroundFocus, getBackgroundOver, getBackgroundPress, getBorderSize, getConstraint, getDisableFade, getHeight, getHeightOnScreen, getInsets, getInsetsBottom, getInsetsHeight, getInsetsLeft, getInsetsRight, getInsetsTop, getInsetsWidth, getLocation, getLocationAnchor, getLocationOnScreen, getLocationRef, getLocationRef2, getLocationRefAnchor, getLocationX, getLocationXOnScreen, getLocationY, getLocationYOnScreen, getMaxHeight, getMaxWidth, getMenuPopup, getMinHeight, getMinHeightWidget, getMinWidth, getMinWidthWidget, getName, getOpacity, getParent, getPopup, getRoot, getStyle, getTooltip, getViewport, getViewportInternal, getWidth, getWidthOnScreen, hasFocus, isAutoPackHeight, isAutoPackWidth, isEnabled, isEnabledHerited, isEventsOnExternalDrag, isExternalDrag, isFocusable, isMouseDown, isMouseOver, isMouseOverOrDown, isOver, isVisible, isVisibleAndEnabledHerited, isVisibleHerited, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, refreshFocus, removeAnimator, removeFocusListener, removeKeyListener, removeMouseFocusListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, render, requestFocus, setAutoPack, setAutoPackHeight, setAutoPackWidth, setBackground, setBackgroundBorder, setBackgroundColor, setBackgroundFocus, setBackgroundOver, setBackgroundPress, setBorderSize, setCatchAllEvents, setDisableFade, setEnabled, setEventsOnExternalDrag, setExternalDrag, setFocusable, setFocusOwner, setInsets, setInsets, setLocation, setLocation, setLocationAnchor, setLocationAndAnchorInViewport, setLocationRef, setLocationRef2, setLocationRefAnchor, setMaxSize, setMaxSize, setMenuPopup, setMinSize, setMinSize, setName, setOpacity, setPopup, setSize, setSize, setStyle, setTooltip, setVisible, toString, uiFireActionpublic void update(UI ui, long timePassedMS)
WidgetWidget update. Occures before rendering to compute current states and absolute positioning.public final int getStepForHorizontalScrolling()
getStepForHorizontalScrolling in interface IScrollablepublic final int getStepForVerticalScrolling()
getStepForVerticalScrolling in interface IScrollablepublic final void setText(java.lang.String text)
text - text to be drawn into the componentpublic final java.lang.String getText()
public final void setTextObject(java.lang.Object object)
object - text to be drawn into the componentpublic final <O> O getTextObject()
public final void setAlignOnBaseLine(boolean alignOnBaseLine)
alignOnBaseLine - text anchor of this Labelpublic final boolean isAlignOnBaseLine()
Labelpublic final void setTextAnchor(Anchor textAnchor)
public final Anchor getTextAnchor()
public final void setColor(Color4 color)
color - the color of the textpublic final float[] getColor()
public final void setColorOver(Color4 colorOver)
colorOver - the color of the text when the mouse is over this Label.public final float[] getColorOver()
public final void setColorFocus(Color4 colorFocus)
public final float[] getColorFocus()
public final void setColorPress(Color4 colorPress)
colorPress - the color of the text when the mouse is pressed.public final float[] getColorPress()
public final void setFitToContents(boolean fitToContents)
public final boolean isFitToContents()
public void setFontName(java.lang.String fontName)
fontName - a fontpublic final java.lang.String getFontName()
public final int getFontSize()
Label, or -1 for defaultpublic final void setFontSize(int fontSize)
fotnSize - the new font size in pixels of this Label, or -1 for defaultBonzai Engine 1.3.4 11/12/2015 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2015 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com