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
FieldsModifier and TypeFieldDescriptionprotected javafx.collections.ListChangeListener<Alarm>protected Clockprotected javafx.beans.InvalidationListenerprotected static final doubleprotected static final doubleprotected static final doubleprotected static final doubleprotected eu.hansolo.toolbox.evt.EvtObserver<MedusaEvt>protected static final doubleprotected static final doubleprotected javafx.beans.InvalidationListenerprotected javafx.beans.InvalidationListener -
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()protected voidhandleEvents(String EVENT_TYPE) protected abstract voidprotected abstract voidredraw()protected voidprotected abstract voidresize()abstract voidabstract voidupdateTime(ZonedDateTime TIME) 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:
-
clock
-
sizeListener
protected javafx.beans.InvalidationListener sizeListener -
observer
-
currentTimeListener
protected javafx.beans.InvalidationListener currentTimeListener -
timeListener
protected javafx.beans.InvalidationListener timeListener -
alarmListener
-
-
Constructor Details
-
ClockSkinBase
-
-
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:
computeMinWidthin classjavafx.scene.control.SkinBase<Clock>
-
computeMinHeight
protected double computeMinHeight(double WIDTH, double TOP, double RIGHT, double BOTTOM, double LEFT) - Overrides:
computeMinHeightin classjavafx.scene.control.SkinBase<Clock>
-
computePrefWidth
protected double computePrefWidth(double HEIGHT, double TOP, double RIGHT, double BOTTOM, double LEFT) - Overrides:
computePrefWidthin classjavafx.scene.control.SkinBase<Clock>
-
computePrefHeight
protected double computePrefHeight(double WIDTH, double TOP, double RIGHT, double BOTTOM, double LEFT) - Overrides:
computePrefHeightin classjavafx.scene.control.SkinBase<Clock>
-
computeMaxWidth
protected double computeMaxWidth(double HEIGHT, double TOP, double RIGHT, double BOTTOM, double LEFT) - Overrides:
computeMaxWidthin classjavafx.scene.control.SkinBase<Clock>
-
computeMaxHeight
protected double computeMaxHeight(double WIDTH, double TOP, double RIGHT, double BOTTOM, double LEFT) - Overrides:
computeMaxHeightin classjavafx.scene.control.SkinBase<Clock>
-
handleEvents
-
dispose
public void dispose() -
updateTime
-
updateAlarms
public abstract void updateAlarms() -
resize
protected abstract void resize() -
redraw
protected abstract void redraw()
-