Package io.github.qishr.cascara.ui.control
Class LcdScreen
java.lang.Object
javafx.scene.Node
javafx.scene.Parent
javafx.scene.layout.Region
javafx.scene.control.Control
io.github.qishr.cascara.ui.control.LcdScreen
public class LcdScreen
extends Control
Constructor Summary
| Constructor | Description |
|---|---|
| LcdScreen() |
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
| public final ObjectProperty<ColorDefinition> | colorDefinitionProperty() | |
| public final ColorDefinition | getColorDefinition() | |
| public final void | setColorDefinition(ColorDefinition definition) | |
| public final ObjectProperty<Insets> | screenPaddingProperty() | |
| public final Insets | getScreenPadding() | |
| public final void | setScreenPadding(Insets padding) | |
| public final void | setScreenPadding(double value) | |
| public final ObjectProperty<Color> | colorProperty() | |
| public final Color | getColor() | |
| public final void | setColor(Color c) | |
| public final DoubleProperty | displayValueProperty() | |
| public final double | getDisplayValue() | |
| public OnPasteHandler | getOnPaste() | |
| public void | setOnPaste(OnPasteHandler onPaste) | |
| public void | onPaste(String value) | |
| public void | showValue(double value) | Temporarily displays the given number for the default duration (1 second). |
| public void | showValue(double value, Duration duration) | Temporarily displays the given number for a configurable duration. |
| public double | computeMinWidth(double height) | |
| public double | computeMinHeight(double width) | |
| public double | computePrefWidth(double height) | |
| public double | computePrefHeight(double width) | |
| public double | computeMaxWidth(double height) | |
| public double | computeMaxHeight(double width) | |
| protected Skin<LcdScreen> | createDefaultSkin() | |
| public static java.util.List<javafx.css.CssMetaData extends Styleable, ?> | getClassCssMetaData() | |
| public java.util.List<javafx.css.CssMetaData extends Styleable, ?> | getControlCssMetaData() |
Method Details
colorDefinitionProperty
public final ObjectProperty<ColorDefinition> colorDefinitionProperty()
getColorDefinition
public final ColorDefinition getColorDefinition()
setColorDefinition
public final void setColorDefinition(ColorDefinition definition)
screenPaddingProperty
public final ObjectProperty<Insets> screenPaddingProperty()
getScreenPadding
public final Insets getScreenPadding()
setScreenPadding
public final void setScreenPadding(Insets padding)
setScreenPadding
public final void setScreenPadding(double value)
colorProperty
public final ObjectProperty<Color> colorProperty()
getColor
public final Color getColor()
setColor
public final void setColor(Color c)
displayValueProperty
public final DoubleProperty displayValueProperty()
getDisplayValue
public final double getDisplayValue()
getOnPaste
public OnPasteHandler getOnPaste()
setOnPaste
public void setOnPaste(OnPasteHandler onPaste)
onPaste
public void onPaste(String value)
showValue
public void showValue(double value)
Temporarily displays the given number for the default duration (1 second).The display returns to the background color's hex code automatically.
Parameters:
value - The double value to display.
showValue
public void showValue(double value, Duration duration)
Temporarily displays the given number for a configurable duration.
Parameters:
value - The double value to display.
duration - The duration to show the number before returning to the default hex display.
A value of Duration.INDEFINITE will display the value until it's explicitly changed again.
computeMinWidth
public double computeMinWidth(double height)
computeMinHeight
public double computeMinHeight(double width)
computePrefWidth
public double computePrefWidth(double height)
computePrefHeight
public double computePrefHeight(double width)
computeMaxWidth
public double computeMaxWidth(double height)
computeMaxHeight
public double computeMaxHeight(double width)
createDefaultSkin
protected Skin<LcdScreen> createDefaultSkin()
getClassCssMetaData
public static java.util.List<javafx.css.CssMetaData extends Styleable, ?> getClassCssMetaData()
getControlCssMetaData
public java.util.List<javafx.css.CssMetaData extends Styleable, ?> getControlCssMetaData()