java.lang.Object
javafx.scene.control.SkinBase<Tile>
eu.hansolo.tilesfx.skins.TileSkin
- All Implemented Interfaces:
javafx.scene.control.Skin<Tile>
- Direct Known Subclasses:
BarChartTileSkin,BarGaugeTileSkin,CalendarTileSkin,CharacterTileSkin,CircularProgressTileSkin,ClockTileSkin,ClusterMonitorTileSkin,ColorTileSkin,CountdownTimerTileSkin,CountryTileSkin,CustomScrollableTileSkin,CustomTileSkin,CycleStepTileSkin,DateTileSkin,DonutChartTileSkin,FireSmokeTileSkin,FlipTileSkin,FluidTileSkin,Gauge2TileSkin,GaugeSparkLineTileSkin,GaugeTileSkin,HighLowTileSkin,ImageCounterTileSkin,ImageTileSkin,LeaderBoardTileSkin,LedTileSkin,MapTileSkin,MatrixIconTileSkin,MatrixTileSkin,NumberTileSkin,PercentageTileSkin,PlusMinusTileSkin,RadarChartTileSkin,RadarNodeChartTileSkin,RadialChartTileSkin,RadialDistributionTileSkin,RadialPercentageTileSkin,SliderTileSkin,SmoothAreaChartTileSkin,SmoothedChartTileSkin,SparkLineTileSkin,SpinnerTileSkin,StatusTileSkin,StockTileSkin,SunburstChartTileSkin,SwitchSliderTileSkin,SwitchTileSkin,TestTileSkin,TextTileSkin,TimelineTileSkin,TimerControlTileSkin,TimeTileSkin,TurnoverTileSkin,WorldMapTileSkin
public class TileSkin
extends javafx.scene.control.SkinBase<Tile>
implements javafx.scene.control.Skin<Tile>
Created by hansolo on 19.12.16.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected doubleprotected doubleprotected CtxBoundsprotected doubleprotected doubleprotected javafx.beans.InvalidationListenerprotected DecimalFormatprotected doubleprotected Stringprotected doubleprotected booleanprotected doubleprotected Localeprotected static final doubleprotected static final doubleprotected doubleprotected static final doubleprotected static final doubleprotected doubleprotected javafx.scene.layout.Paneprotected static final doubleprotected static final doubleprotected doubleprotected booleanprotected javafx.scene.effect.DropShadowprotected doubleprotected javafx.beans.InvalidationListenerprotected doubleprotected Tile.TextSizeprotected doubleprotected Stringprotected Tileprotected TileEventListenerprotected javafx.beans.InvalidationListenerprotected double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected doublecomputeMaxHeight(double WIDTH, double TOP, double RIGHT, double BOTTOM, double LEFT) protected doublecomputeMaxWidth(double HEIGHT, double TOP, double RIGHT, double BOTTOM, double LEFT) protected doublecomputeMinHeight(double WIDTH, double TOP, double RIGHT, double BOTTOM, double LEFT) protected doublecomputeMinWidth(double HEIGHT, double TOP, double RIGHT, double BOTTOM, double LEFT) protected doublecomputePrefHeight(double WIDTH, double TOP, double RIGHT, double BOTTOM, double LEFT) protected doublecomputePrefWidth(double HEIGHT, double TOP, double RIGHT, double BOTTOM, double LEFT) voiddispose()Returns the bounds of the content area.protected javafx.scene.layout.PanegetPane()protected voidhandleCurrentValue(double VALUE) protected voidhandleEvents(String EVENT_TYPE) protected voidprotected voidredraw()protected voidvoidprotected voidresize()protected voidprotected voidvoidsetOnContentBoundsChanged(BoundsEventListener LISTENER) Adds a listener to the content bounds area.Methods inherited from class javafx.scene.control.SkinBase
computeBaselineOffset, consumeMouseEvents, executeAccessibleAction, getChildren, getClassCssMetaData, getCssMetaData, getNode, getSkinnable, layoutChildren, layoutInArea, layoutInArea, layoutInArea, positionInArea, positionInArea, pseudoClassStateChanged, queryAccessibleAttribute, registerChangeListener, registerInvalidationListener, registerListChangeListener, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, unregisterChangeListeners, unregisterInvalidationListeners, unregisterListChangeListenersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javafx.scene.control.Skin
getNode, getSkinnable
-
Field Details
-
PREFERRED_WIDTH
protected static final double PREFERRED_WIDTH- See Also:
-
PREFERRED_HEIGHT
protected static final double PREFERRED_HEIGHT- See Also:
-
MINIMUM_WIDTH
protected static final double MINIMUM_WIDTH- See Also:
-
MINIMUM_HEIGHT
protected static final double MINIMUM_HEIGHT- See Also:
-
MAXIMUM_WIDTH
protected static final double MAXIMUM_WIDTH- See Also:
-
MAXIMUM_HEIGHT
protected static final double MAXIMUM_HEIGHT- See Also:
-
width
protected double width -
height
protected double height -
size
protected double size -
inset
protected double inset -
doubleInset
protected double doubleInset -
contentBounds
-
contentCenterX
protected double contentCenterX -
contentCenterY
protected double contentCenterY -
pane
protected javafx.scene.layout.Pane pane -
minValue
protected double minValue -
maxValue
protected double maxValue -
range
protected double range -
threshold
protected double threshold -
stepSize
protected double stepSize -
angleRange
protected double angleRange -
angleStep
protected double angleStep -
highlightSections
protected boolean highlightSections -
formatString
-
decimalFormat
-
tickLabelFormatString
-
locale
-
sections
-
sectionsVisible
protected boolean sectionsVisible -
textSize
-
shadow
protected javafx.scene.effect.DropShadow shadow -
sizeListener
protected javafx.beans.InvalidationListener sizeListener -
tileEventListener
-
currentValueListener
protected javafx.beans.InvalidationListener currentValueListener -
timeListener
protected javafx.beans.InvalidationListener timeListener -
tile
-
-
Constructor Details
-
TileSkin
-
-
Method Details
-
initGraphics
protected void initGraphics() -
registerListeners
protected void registerListeners() -
computeMinWidth
protected double computeMinWidth(double HEIGHT, double TOP, double RIGHT, double BOTTOM, double LEFT) - Overrides:
computeMinWidthin classjavafx.scene.control.SkinBase<Tile>
-
computeMinHeight
protected double computeMinHeight(double WIDTH, double TOP, double RIGHT, double BOTTOM, double LEFT) - Overrides:
computeMinHeightin classjavafx.scene.control.SkinBase<Tile>
-
computePrefWidth
protected double computePrefWidth(double HEIGHT, double TOP, double RIGHT, double BOTTOM, double LEFT) - Overrides:
computePrefWidthin classjavafx.scene.control.SkinBase<Tile>
-
computePrefHeight
protected double computePrefHeight(double WIDTH, double TOP, double RIGHT, double BOTTOM, double LEFT) - Overrides:
computePrefHeightin classjavafx.scene.control.SkinBase<Tile>
-
computeMaxWidth
protected double computeMaxWidth(double HEIGHT, double TOP, double RIGHT, double BOTTOM, double LEFT) - Overrides:
computeMaxWidthin classjavafx.scene.control.SkinBase<Tile>
-
computeMaxHeight
protected double computeMaxHeight(double WIDTH, double TOP, double RIGHT, double BOTTOM, double LEFT) - Overrides:
computeMaxHeightin classjavafx.scene.control.SkinBase<Tile>
-
getPane
protected javafx.scene.layout.Pane getPane() -
handleEvents
-
handleCurrentValue
protected void handleCurrentValue(double VALUE) -
getContentBounds
Returns the bounds of the content area. Keep in mind that the skin property of the Tile has to be set before you can get the content bounds. As long as getSkin() == null you get null as return value here.- Returns:
- the bounds of the content area.
-
setOnContentBoundsChanged
Adds a listener to the content bounds area. Keep in mind that you can only add a listener to the bounds if the skin property is set in the control. -
removeOnContentBoundsChanged
-
getNotifyRegion
-
getInfoRegion
-
getLowerRightRegion
-
dispose
public void dispose() -
resizeDynamicText
protected void resizeDynamicText() -
resizeStaticText
protected void resizeStaticText() -
resize
protected void resize() -
redraw
protected void redraw()
-