Class TileSkin

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 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

      protected CtxBounds 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

      protected String formatString
    • decimalFormat

      protected DecimalFormat decimalFormat
    • tickLabelFormatString

      protected String tickLabelFormatString
    • locale

      protected Locale locale
    • sections

      protected List<Section> sections
    • sectionsVisible

      protected boolean sectionsVisible
    • textSize

      protected Tile.TextSize textSize
    • shadow

      protected javafx.scene.effect.DropShadow shadow
    • sizeListener

      protected javafx.beans.InvalidationListener sizeListener
    • tileEventListener

      protected TileEventListener tileEventListener
    • currentValueListener

      protected javafx.beans.InvalidationListener currentValueListener
    • timeListener

      protected javafx.beans.InvalidationListener timeListener
    • tile

      protected Tile tile
  • Constructor Details

    • TileSkin

      public TileSkin(Tile TILE)
  • 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:
      computeMinWidth in class javafx.scene.control.SkinBase<Tile>
    • computeMinHeight

      protected double computeMinHeight(double WIDTH, double TOP, double RIGHT, double BOTTOM, double LEFT)
      Overrides:
      computeMinHeight in class javafx.scene.control.SkinBase<Tile>
    • computePrefWidth

      protected double computePrefWidth(double HEIGHT, double TOP, double RIGHT, double BOTTOM, double LEFT)
      Overrides:
      computePrefWidth in class javafx.scene.control.SkinBase<Tile>
    • computePrefHeight

      protected double computePrefHeight(double WIDTH, double TOP, double RIGHT, double BOTTOM, double LEFT)
      Overrides:
      computePrefHeight in class javafx.scene.control.SkinBase<Tile>
    • computeMaxWidth

      protected double computeMaxWidth(double HEIGHT, double TOP, double RIGHT, double BOTTOM, double LEFT)
      Overrides:
      computeMaxWidth in class javafx.scene.control.SkinBase<Tile>
    • computeMaxHeight

      protected double computeMaxHeight(double WIDTH, double TOP, double RIGHT, double BOTTOM, double LEFT)
      Overrides:
      computeMaxHeight in class javafx.scene.control.SkinBase<Tile>
    • getPane

      protected javafx.scene.layout.Pane getPane()
    • handleEvents

      protected void handleEvents(String EVENT_TYPE)
    • handleCurrentValue

      protected void handleCurrentValue(double VALUE)
    • getContentBounds

      public CtxBounds 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

      public void setOnContentBoundsChanged(BoundsEventListener LISTENER)
      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

      public void removeOnContentBoundsChanged(BoundsEventListener LISTENER)
    • getNotifyRegion

      public NotifyRegion getNotifyRegion()
    • getInfoRegion

      public InfoRegion getInfoRegion()
    • getLowerRightRegion

      public LowerRightRegion getLowerRightRegion()
    • dispose

      public void dispose()
      Specified by:
      dispose in interface javafx.scene.control.Skin<Tile>
      Overrides:
      dispose in class javafx.scene.control.SkinBase<Tile>
    • resizeDynamicText

      protected void resizeDynamicText()
    • resizeStaticText

      protected void resizeStaticText()
    • resize

      protected void resize()
    • redraw

      protected void redraw()