public class HorizontalSlider extends Slider
| Modifier and Type | Field and Description |
|---|---|
static FontIcon |
ARROW_LEFT |
static FontIcon |
ARROW_RIGHT |
ICON_FONT| Constructor and Description |
|---|
HorizontalSlider(double x,
double y,
double width,
double height,
float minValue,
float maxValue,
float stepSize) |
| Modifier and Type | Method and Description |
|---|---|
java.awt.geom.Point2D |
getRelativeSliderPosition() |
protected void |
initializeComponents()
Initialize child components.
|
void |
render(java.awt.Graphics2D g)
Renders the visual contents of this instance onto the provided graphics context.
|
void |
setValueRelativeToMousePosition() |
getButton1, getButton2, getButtonSpritesheet, getChangeConsumer, getCurrentValue, getMaxValue, getMinValue, getSliderComponent, getSliderSpritesheet, getStepSize, isDragging, onChange, setButton1, setButton2, setButtonSpritesheet, setCurrentValue, setSliderComponent, setSliderSpritesheet, setStepSizedrawTextShadow, getAppearance, getAppearanceDisabled, getAppearanceHovered, getBoundingBox, getClickConsumer, getComponentId, getComponents, getCurrentAppearance, getFont, getHeight, getHorizontalTextMargin, getHoverConsumer, getHoverSound, getLocation, getMouseDraggedConsumer, getMouseEnterConsumer, getMouseLeaveConsumer, getMouseMovedConsumer, getMousePressedConsumer, getMouseReleasedConsumer, getMouseWheelConsumer, getName, getShape, getTag, getText, getTextAlign, getTextAngle, getTextShadowColor, getTextToRender, getTextX, getTextY, getWidth, getX, getY, 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, prepare, setDimension, setEnabled, setFont, setFontSize, setForwardMouseEvents, setHeight, setHorizontalTextMargin, setHovered, setHoverSound, setLocation, setLocation, setName, setSelected, setTag, setText, setTextAlign, setTextAngle, setTextShadow, setTextShadowColor, setTextX, setTextY, setVisible, setWidth, setX, setY, suspend, toggleSelectionpublic static final FontIcon ARROW_LEFT
public static final FontIcon ARROW_RIGHT
public HorizontalSlider(double x,
double y,
double width,
double height,
float minValue,
float maxValue,
float stepSize)
public java.awt.geom.Point2D getRelativeSliderPosition()
getRelativeSliderPosition in class Sliderprotected void initializeComponents()
GuiComponentinitializeComponents in class GuiComponentpublic void render(java.awt.Graphics2D g)
IRenderable
If an Entity implements this interface, this method will be called right after the entity was rendered from the environment.
Allowing for a custom rendering mechanism.
This interface can be implemented in general by anything that should be rendered to the game's screen.
render in interface IRenderablerender in class GuiComponentg - The current graphics object onto which this instance will render its visual contents.RenderEngine.renderEntity(Graphics2D, de.gurkenlabs.litiengine.entities.IEntity)public void setValueRelativeToMousePosition()
setValueRelativeToMousePosition in class Slider