Class ClockSkinBase

java.lang.Object
javafx.scene.control.SkinBase<Clock>
eu.hansolo.medusa.skins.ClockSkinBase
All Implemented Interfaces:
javafx.scene.control.Skin<Clock>
Direct Known Subclasses:
ClockSkin, DBClockSkin, DesignClockSkin, DigitalClockSkin, FatClockSkin, IndustrialClockSkin, LcdClockSkin, MinimalClockSkin, MorphingClockSkin, PearClockSkin, PlainClockSkin, RoundLcdClockSkin, SlimClockSkin, TextClockSkin, TileClockSkin

public abstract class ClockSkinBase extends javafx.scene.control.SkinBase<Clock> implements javafx.scene.control.Skin<Clock>
Created by hansolo on 20.01.17.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected javafx.collections.ListChangeListener<Alarm>
     
    protected Clock
     
    protected javafx.beans.InvalidationListener
     
    protected static final double
     
    protected static final double
     
    protected static final double
     
    protected static final double
     
    protected eu.hansolo.toolbox.evt.EvtObserver<MedusaEvt>
     
    protected static final double
     
    protected static final double
     
    protected javafx.beans.InvalidationListener
     
    protected javafx.beans.InvalidationListener
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected double
    computeMaxHeight(double WIDTH, double TOP, double RIGHT, double BOTTOM, double LEFT)
     
    protected double
    computeMaxWidth(double HEIGHT, double TOP, double RIGHT, double BOTTOM, double LEFT)
     
    protected double
    computeMinHeight(double WIDTH, double TOP, double RIGHT, double BOTTOM, double LEFT)
     
    protected double
    computeMinWidth(double HEIGHT, double TOP, double RIGHT, double BOTTOM, double LEFT)
     
    protected double
    computePrefHeight(double WIDTH, double TOP, double RIGHT, double BOTTOM, double LEFT)
     
    protected double
    computePrefWidth(double HEIGHT, double TOP, double RIGHT, double BOTTOM, double LEFT)
     
    void
     
    protected void
    handleEvents(String EVENT_TYPE)
     
    protected abstract void
     
    protected abstract void
     
    protected void
     
    protected abstract void
     
    abstract void
     
    abstract void
     

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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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:
    • clock

      protected Clock clock
    • sizeListener

      protected javafx.beans.InvalidationListener sizeListener
    • observer

      protected eu.hansolo.toolbox.evt.EvtObserver<MedusaEvt> observer
    • currentTimeListener

      protected javafx.beans.InvalidationListener currentTimeListener
    • timeListener

      protected javafx.beans.InvalidationListener timeListener
    • alarmListener

      protected javafx.collections.ListChangeListener<Alarm> alarmListener
  • Constructor Details

    • ClockSkinBase

      public ClockSkinBase(Clock CLOCK)
  • Method Details

    • initGraphics

      protected abstract 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<Clock>
    • computeMinHeight

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

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

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

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

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

      protected void handleEvents(String EVENT_TYPE)
    • dispose

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

      public abstract void updateTime(ZonedDateTime TIME)
    • updateAlarms

      public abstract void updateAlarms()
    • resize

      protected abstract void resize()
    • redraw

      protected abstract void redraw()