Class Clock

java.lang.Object
javafx.scene.Node
javafx.scene.Parent
javafx.scene.layout.Region
javafx.scene.control.Control
eu.hansolo.medusa.Clock
All Implemented Interfaces:
javafx.css.Styleable, javafx.event.EventTarget, javafx.scene.control.Skinnable

public class Clock extends javafx.scene.control.Control
Created by hansolo on 28.01.16.
  • Property Summary

    Properties
    Type
    Property
    Description
    javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.ObjectProperty<javafx.scene.paint.Paint>
     
    javafx.beans.property.ObjectProperty<javafx.scene.paint.Paint>
     
    javafx.beans.property.DoubleProperty
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.ReadOnlyLongProperty
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.ObjectProperty<javafx.scene.text.Font>
     
    javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.ObjectProperty<javafx.scene.paint.Paint>
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>
     
    javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.ObjectProperty<LcdDesign>
     
    javafx.beans.property.ObjectProperty<LcdFont>
     
    javafx.beans.property.ObjectProperty<Locale>
     
    javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>
     
    javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>
     
    javafx.beans.property.StringProperty
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>
     
    javafx.beans.property.ObjectProperty<TickLabelLocation>
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.ObjectProperty<ZonedDateTime>
     
    javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>
     
    javafx.beans.property.StringProperty
     
    javafx.beans.property.BooleanProperty
     

    Properties inherited from class javafx.scene.control.Control

    contextMenu, skin, tooltip

    Properties inherited from class javafx.scene.layout.Region

    background, border, cacheShape, centerShape, height, insets, maxHeight, maxWidth, minHeight, minWidth, opaqueInsets, padding, prefHeight, prefWidth, scaleShape, shape, snapToPixel, width

    Properties inherited from class javafx.scene.Parent

    needsLayout

    Properties inherited from class javafx.scene.Node

    accessibleHelp, accessibleRoleDescription, accessibleRole, accessibleText, blendMode, boundsInLocal, boundsInParent, cacheHint, cache, clip, cursor, depthTest, disabled, disable, effectiveNodeOrientation, effect, eventDispatcher, focused, focusTraversable, hover, id, inputMethodRequests, layoutBounds, layoutX, layoutY, localToParentTransform, localToSceneTransform, managed, mouseTransparent, nodeOrientation, onContextMenuRequested, onDragDetected, onDragDone, onDragDropped, onDragEntered, onDragExited, onDragOver, onInputMethodTextChanged, onKeyPressed, onKeyReleased, onKeyTyped, onMouseClicked, onMouseDragEntered, onMouseDragExited, onMouseDragged, onMouseDragOver, onMouseDragReleased, onMouseEntered, onMouseExited, onMouseMoved, onMousePressed, onMouseReleased, onRotate, onRotationFinished, onRotationStarted, onScrollFinished, onScroll, onScrollStarted, onSwipeDown, onSwipeLeft, onSwipeRight, onSwipeUp, onTouchMoved, onTouchPressed, onTouchReleased, onTouchStationary, onZoomFinished, onZoom, onZoomStarted, opacity, parent, pickOnBounds, pressed, rotate, rotationAxis, scaleX, scaleY, scaleZ, scene, style, translateX, translateY, translateZ, viewOrder, visible
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final javafx.scene.paint.Color
     
    static final javafx.scene.paint.Color
     
    static final int
     
    static final int
     

    Fields inherited from class javafx.scene.layout.Region

    USE_COMPUTED_SIZE, USE_PREF_SIZE

    Fields inherited from class javafx.scene.Node

    BASELINE_OFFSET_SAME_AS_HEIGHT
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    Clock(long epochSeconds)
     
     
    Clock(Clock.ClockSkinType skinType, int updateInterval, boolean checkSectionsForValue, boolean checkAreasForValue, boolean sectionsVisible, boolean highlightSections, boolean areasVisible, boolean highlightAreas, String text, boolean discreteSeconds, boolean discreteMinutes, boolean discreteHours, boolean secondsVisible, boolean titleVisible, boolean textVisible, boolean dateVisible, boolean dayVisible, boolean nightMode, boolean running, boolean autoNightMode, javafx.scene.paint.Color backgroundPaint, javafx.scene.paint.Color borderPaint, double borderWidth, javafx.scene.paint.Color foregroundPaint, javafx.scene.paint.Color titleColor, javafx.scene.paint.Color textColor, javafx.scene.paint.Color dateColor, javafx.scene.paint.Color hourTickMarkColor, javafx.scene.paint.Color minuteTickMarkColor, javafx.scene.paint.Color tickLabelColor, javafx.scene.paint.Color alarmColor, boolean hourTickMarksVisible, boolean minuteTickMarksVisible, boolean tickLabelsVisible, javafx.scene.paint.Color hourColor, javafx.scene.paint.Color minuteColor, javafx.scene.paint.Color secondColor, javafx.scene.paint.Color knobColor, LcdDesign lcdDesign, boolean alarmsEnabled, boolean alarmsVisible, boolean lcdCrystalEnabled, boolean shadowsEnabled, LcdFont lcdFont, Locale locale, TickLabelLocation tickLabelLocation, boolean animated, long animationDuration, boolean customFontEnabled, javafx.scene.text.Font customFont)
     
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addAlarm(Alarm ALARM)
    Adds the given Alarm object from the list of alarms.
    void
    Adds the given TimeSection to the list of areas.
    void
    addClockObserver(eu.hansolo.toolbox.evt.EvtType type, eu.hansolo.toolbox.evt.EvtObserver<MedusaEvt> observer)
     
    void
    Adds the given TimeSection to the list of sections.
    javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.ObjectProperty<javafx.scene.paint.Paint>
     
    javafx.beans.property.ObjectProperty<javafx.scene.paint.Paint>
     
    javafx.beans.property.DoubleProperty
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.BooleanProperty
     
    void
    Clears the list of alarms.
    void
    Clears the list of areas
    void
    Clears the list of sections.
    protected javafx.scene.control.Skin
     
    javafx.beans.property.ReadOnlyLongProperty
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.ObjectProperty<javafx.scene.text.Font>
     
    javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.BooleanProperty
     
    void
     
    javafx.beans.property.ObjectProperty<javafx.scene.paint.Paint>
     
    javafx.scene.paint.Color
    Returns the color that will be used to colorize the alarm icon.
    javafx.collections.ObservableList<Alarm>
    Returns an observable list of Alarm objects.
    long
    Returns the duration in milliseconds that will be used to animate the hands of the clock from the current time to the given time.
    javafx.collections.ObservableList<TimeSection>
    Returns an observable list of TimeSection objects.
    boolean
    Returns true if the areas should be drawn in the clock.
    javafx.scene.paint.Paint
    Returns the Paint object that will be used to fill the clock background.
    javafx.scene.paint.Paint
    Returns the Paint object that will be used to draw the border of the clock.
    double
    Returns the width in pixels that will be used to draw the border of the clock.
    boolean
    Returns true if the clock will check each area for the current time and the area will fire events in case the current time enters or leaves a section.
    boolean
    Returns true if the clock will check each section for the current time and the section will fire events in case the current time enters or leaves a section.
    long
    Returns the current time in epoch seconds
    javafx.scene.text.Font
    Returns the given custom Font that can be used to render all text elements.
    javafx.scene.paint.Color
    Returns the color that will be used to colorize the date of the clock.
    javafx.scene.paint.Paint
    Returns the Paint object that will be used to fill the foreground of the clock.
    javafx.scene.paint.Color
    Returns the color that will be used to colorize the hour hand of the clock.
    javafx.scene.paint.Color
    Returns the color that will be used to colorize the hour tickmarks of the clock.
    javafx.scene.paint.Color
    Returns the color that will be used to colorize the knob of the clock (if available)
    Returns the LcdDesign that will be used to visualize the LCD display.
    Returns the font that will be used to visualize the LCD if the clock has a LCD display or for the LcdClockSkin.
    Returns the Locale that will be used to format the date in some ClockSkins.
    javafx.scene.paint.Color
    Returns the color that will be used to colorize the minute hand of the clock.
    javafx.scene.paint.Color
    Returns the color that will be used to colorize the minute tickmarks of the clock.
    javafx.scene.paint.Color
    Returns the color that will be used to colorize the second hand of the clock.
    javafx.collections.ObservableList<TimeSection>
    Returns an observable list of TimeSection objects.
    boolean
    Returns true if the sections should be drawn in the clock.
    boolean
    Returns true if effects like shadows will be drawn.
     
    Returns the text that was defined for the clock.
    javafx.scene.paint.Color
    Returns the color that will be used to colorize the text of the clock.
    javafx.scene.paint.Color
    Returns the color that will be used to colorize the ticklabels of the clock.
    Returns the location of the ticklabels.
    Returns the current time of the clock.
    long
     
    Returns the title of the clock.
    javafx.scene.paint.Color
    Returns the color that will be used to colorize the title of the clock.
     
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>
     
    javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>
     
    javafx.beans.property.BooleanProperty
     
    boolean
    Returns true if alarms are enabled.
    boolean
    Returns true if alarm markers should be drawn.
    boolean
    Returns true if the clock hands should be animated when set to another time.
    boolean
    Returns true if the clock is in auto night mode (NOT USED AT THE MOMENT).
    boolean
    Returns true if the control uses the given customFont to render all text elements.
    boolean
    Returns true if the date of the clock will be drawn.
    boolean
    Gets the value of the property dayVisible.
    boolean
    Returns true if the hour hand of the clock should move in discrete steps of 1 hour.
    boolean
    Returns true if the minute hand of the clock should move in discrete steps of 1 minute.
    boolean
    Returns true if the second hand of the clock should move in discrete steps of 1 second.
    boolean
    Returns true if areas should be highlighted in case they contain the current time.
    boolean
    Returns true if sections should be highlighted in case they contain the current time.
    boolean
    Returns true if the hour tickmarks will be drawn.
    boolean
    Returns true if the crystal effect of the LCD display will be drawn.
    boolean
    Returns true if the minute tickmarks will be drawn.
    boolean
    Returns true if the clock is in night mode (NOT USED AT THE MOMENT)
    boolean
    Returns true if the clock is running and shows the current time.
    boolean
    Returns true if the second hand of the clock will be drawn.
    boolean
    Returns true if the text of the clock will be drawn.
    boolean
    Returns true if the ticklabels will be drawn.
    boolean
    Returns true if the title of the clock will be drawn.
    javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.ObjectProperty<LcdDesign>
     
    javafx.beans.property.ObjectProperty<LcdFont>
     
    javafx.beans.property.ObjectProperty<Locale>
     
    javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>
     
    javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.BooleanProperty
     
    void
     
    void
    Removes the given Alarm object from the list of alarms.
    void
     
    void
    Removes the given TimeSection from the list of areas.
    void
    removeClockObserver(eu.hansolo.toolbox.evt.EvtType type, eu.hansolo.toolbox.evt.EvtObserver<MedusaEvt> observer)
     
    void
    Removes the given TimeSection from the list of sections.
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.BooleanProperty
     
    void
    setAlarmColor(javafx.scene.paint.Color COLOR)
    Defines the color that will be used to colorize the alarm icon
    void
    setAlarms(Alarm... ALARMS)
    Sets the alarms to the given array of Alarm objects.
    void
    setAlarms(List<Alarm> ALARMS)
    Sets the alarms to the given list of Alarm objects.
    void
    setAlarmsEnabled(boolean CHECK)
    Defines if alarms are enabled.
    void
    setAlarmsVisible(boolean VISIBLE)
    Defines if alarm markers should be drawn.
    void
    setAnimated(boolean ANIMATED)
    Defines if the clock hands should be animated when set to another time.
    void
    setAnimationDuration(long ANIMATION_DURATION)
    Defines the duration in milliseconds that will be used to animate the hands of the clock from the current time to the given time.
    void
    Sets the areas to the given array of TimeSection objects.
    void
    Sets the areas to the given list of TimeSection objects.
    void
    setAreasVisible(boolean VISIBLE)
    Defines if the areas should be drawn in the clock.
    void
    setAutoNightMode(boolean MODE)
    Defines if the clock is in auto night mode (NOT USED AT THE MOMENT)
    void
    setBackgroundPaint(javafx.scene.paint.Paint PAINT)
    Defines the Paint object that will be used to fill the clock background.
    void
    setBorderPaint(javafx.scene.paint.Paint PAINT)
    Defines the Paint object that will be used to draw the border of the clock.
    void
    setBorderWidth(double WIDTH)
    Defines the width in pixels that will be used to draw the border of the clock.
    void
    setCheckAreasForValue(boolean CHECK)
    Defines if the clock will check each area for the current time and the area will fire events in case the current time enters or leaves a section.
    void
    setCheckSectionsForValue(boolean CHECK)
    Defines if the clock will check each section for the current time and the section will fire events in case the current time enters or leaves a section.
    void
    setCustomFont(javafx.scene.text.Font FONT)
    Defines the custom font that can be used to render all text elements.
    void
    setCustomFontEnabled(boolean ENABLED)
    Defines if the control should use the given customFont to render all text elements
    void
    setDateColor(javafx.scene.paint.Color COLOR)
    Defines the color that will be used to colorize the date of the clock
    void
    setDateVisible(boolean VISIBLE)
    Defines if the date of the clock will be drawn.
    void
    setDayVisible(boolean VISIBLE)
    Sets the value of the property dayVisible.
    void
    setDiscreteHours(boolean DISCRETE)
    Defines if the hour hand of the clock should move in discrete steps of 1 hour.
    void
    setDiscreteMinutes(boolean DISCRETE)
    Defines if the minute hand of the clock should move in discrete steps of 1 minute.
    void
    setDiscreteSeconds(boolean DISCRETE)
    Defines if the second hand of the clock should move in discrete steps of 1 second.
    void
    setForegroundPaint(javafx.scene.paint.Paint PAINT)
    Defines the Paint object that will be used to fill the foreground of the clock.
    void
    setHighlightAreas(boolean HIGHLIGHT)
    Defines if areas should be highlighted in case they contain the current time.
    void
    setHighlightSections(boolean HIGHLIGHT)
    Defines if sections should be highlighted in case they contain the current time.
    void
    setHourColor(javafx.scene.paint.Color COLOR)
    Defines the color that will be used to colorize the hour hand of the clock
    void
    setHourTickMarkColor(javafx.scene.paint.Color COLOR)
    Defines the color that will be used to colorize the hour tickmarks of the clock.
    void
    setHourTickMarksVisible(boolean VISIBLE)
    Defines if the hour tickmarks will be drawn.
    void
    setKnobColor(javafx.scene.paint.Color COLOR)
    Defines the color that will be used to colorize the knob of the clock (if available)
    void
    setLcdCrystalEnabled(boolean ENABLED)
    Defines if the crystal effect of the LCD display will be drawn.
    void
    Defines the LcdDesign that will be used to visualize the LCD display.
    void
    Defines the font that will be used to visualize the LCD value if the clock has a LCD display or for the LcdClockSkin.
    void
    setLocale(Locale LOCALE)
    Defines the Locale that will be used to format the date in some ClockSkins.
    void
    setMinuteColor(javafx.scene.paint.Color COLOR)
    Defines the color that will be used to colorize the minute hand of the clock.
    void
    setMinuteTickMarkColor(javafx.scene.paint.Color COLOR)
    Defines the color that will be used to colorize the minute tickmarks of the clock.
    void
    setMinuteTickMarksVisible(boolean VISIBLE)
    Defines if the minute tickmarks will be drawn.
    void
    setNightMode(boolean MODE)
    Defines if the clock is in night mode (NOT USED AT THE MOMENT)
    void
    setRunning(boolean RUNNING)
    Defines if the clock is running.
    void
    setSecondColor(javafx.scene.paint.Color COLOR)
    Defines the color that will be used to colorize the second hand of the clock
    void
    setSecondsVisible(boolean VISIBLE)
    Defines if the second hand of the clock will be drawn.
    void
    setSections(TimeSection... SECTIONS)
    Sets the sections to the given array of TimeSection objects.
    void
    Sets the sections to the given list of TimeSection objects.
    void
    setSectionsVisible(boolean VISIBLE)
    Defines if the sections should be drawn in the clock.
    void
    setShadowsEnabled(boolean ENABLED)
    Defines if effects like shadows will be drawn.
    void
     
    void
    Define the text for the clock.
    void
    setTextColor(javafx.scene.paint.Color COLOR)
    Defines the color that will be used to colorize the text of the clock.
    void
    setTextVisible(boolean VISIBLE)
    Defines if the text of the clock will be drawn.
    void
    setTickLabelColor(javafx.scene.paint.Color COLOR)
    Defines the color that will be used to colorize the ticklabels of the clock.
    void
    Defines the location of the ticklabels.
    void
    setTickLabelsVisible(boolean VISIBLE)
    Defines if the ticklabels will be drawn.
    void
    setTime(long EPOCH_SECONDS)
     
    void
    Defines the current time of the clock.
    void
    setTimeMs(long EPOCH_MILLI_SECONDS)
     
    void
    Defines the title of the clock.
    void
    setTitleColor(javafx.scene.paint.Color COLOR)
    Defines the color that will be used to colorize the title of the clock
    void
    setTitleVisible(boolean VISIBLE)
    Defines if the title of the clock will be drawn.
    javafx.beans.property.BooleanProperty
     
    void
    Calling this method will stop all threads.
    javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>
     
    javafx.beans.property.StringProperty
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>
     
    javafx.beans.property.ObjectProperty<TickLabelLocation>
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.ObjectProperty<ZonedDateTime>
     
    javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>
     
    javafx.beans.property.StringProperty
     
    javafx.beans.property.BooleanProperty
     

    Methods inherited from class javafx.scene.control.Control

    computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, contextMenuProperty, executeAccessibleAction, getBaselineOffset, getClassCssMetaData, getContextMenu, getControlCssMetaData, getCssMetaData, getInitialFocusTraversable, getSkin, getTooltip, isResizable, layoutChildren, queryAccessibleAttribute, setContextMenu, setSkin, setTooltip, skinProperty, tooltipProperty

    Methods inherited from class javafx.scene.layout.Region

    backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, getBackground, getBorder, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getWidth, heightProperty, insetsProperty, isCacheShape, isCenterShape, isScaleShape, isSnapToPixel, layoutInArea, layoutInArea, layoutInArea, layoutInArea, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, opaqueInsetsProperty, paddingProperty, positionInArea, positionInArea, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, resize, scaleShapeProperty, setBackground, setBorder, setCacheShape, setCenterShape, setHeight, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setOpaqueInsets, setPadding, setPrefHeight, setPrefSize, setPrefWidth, setScaleShape, setShape, setSnapToPixel, setWidth, shapeProperty, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, snapToPixelProperty, widthProperty

    Methods inherited from class javafx.scene.Parent

    getChildren, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, lookup, needsLayoutProperty, requestLayout, requestParentLayout, setNeedsLayout, updateBounds

    Methods inherited from class javafx.scene.Node

    accessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, fireEvent, focusedProperty, focusTraversableProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getContentBias, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInitialCursor, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, getViewOrder, hasProperties, hoverProperty, idProperty, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, mouseTransparentProperty, nodeOrientationProperty, notifyAccessibleAttributeChanged, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setAccessibleHelp, setAccessibleRole, setAccessibleRoleDescription, setAccessibleText, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setDisabled, setEffect, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setPressed, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setViewOrder, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, viewOrderProperty, visibleProperty

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface javafx.css.Styleable

    getStyleableNode
  • Property Details

  • Field Details

    • SHORT_INTERVAL

      public static final int SHORT_INTERVAL
      See Also:
    • LONG_INTERVAL

      public static final int LONG_INTERVAL
      See Also:
    • DARK_COLOR

      public static final javafx.scene.paint.Color DARK_COLOR
    • BRIGHT_COLOR

      public static final javafx.scene.paint.Color BRIGHT_COLOR
  • Constructor Details

    • Clock

      public Clock()
    • Clock

      public Clock(Clock.ClockSkinType skinType)
    • Clock

      public Clock(ZonedDateTime time)
    • Clock

      public Clock(long epochSeconds)
    • Clock

      public Clock(Clock.ClockSkinType skinType, ZonedDateTime time)
    • Clock

      public Clock(Clock.ClockSkinType skinType, int updateInterval, boolean checkSectionsForValue, boolean checkAreasForValue, boolean sectionsVisible, boolean highlightSections, boolean areasVisible, boolean highlightAreas, String text, boolean discreteSeconds, boolean discreteMinutes, boolean discreteHours, boolean secondsVisible, boolean titleVisible, boolean textVisible, boolean dateVisible, boolean dayVisible, boolean nightMode, boolean running, boolean autoNightMode, javafx.scene.paint.Color backgroundPaint, javafx.scene.paint.Color borderPaint, double borderWidth, javafx.scene.paint.Color foregroundPaint, javafx.scene.paint.Color titleColor, javafx.scene.paint.Color textColor, javafx.scene.paint.Color dateColor, javafx.scene.paint.Color hourTickMarkColor, javafx.scene.paint.Color minuteTickMarkColor, javafx.scene.paint.Color tickLabelColor, javafx.scene.paint.Color alarmColor, boolean hourTickMarksVisible, boolean minuteTickMarksVisible, boolean tickLabelsVisible, javafx.scene.paint.Color hourColor, javafx.scene.paint.Color minuteColor, javafx.scene.paint.Color secondColor, javafx.scene.paint.Color knobColor, LcdDesign lcdDesign, boolean alarmsEnabled, boolean alarmsVisible, boolean lcdCrystalEnabled, boolean shadowsEnabled, LcdFont lcdFont, Locale locale, TickLabelLocation tickLabelLocation, boolean animated, long animationDuration, boolean customFontEnabled, javafx.scene.text.Font customFont)
  • Method Details

    • reInit

      public void reInit()
    • getTime

      public ZonedDateTime getTime()
      Returns the current time of the clock.
      Returns:
      the current time of the clock
    • getTimeMs

      public long getTimeMs()
    • setTime

      public void setTime(ZonedDateTime TIME)
      Defines the current time of the clock.
      Parameters:
      TIME -
    • setTime

      public void setTime(long EPOCH_SECONDS)
    • setTimeMs

      public void setTimeMs(long EPOCH_MILLI_SECONDS)
    • timeProperty

      public javafx.beans.property.ObjectProperty<ZonedDateTime> timeProperty()
      See Also:
    • getCurrentTime

      public long getCurrentTime()
      Returns the current time in epoch seconds
      Returns:
      the current time in epoch seconds
    • currentTimeProperty

      public javafx.beans.property.ReadOnlyLongProperty currentTimeProperty()
      See Also:
    • getZoneId

      public ZoneId getZoneId()
    • getTitle

      public String getTitle()
      Returns the title of the clock. The title could be used to show for example the current city or timezone.
      Returns:
      the title of the clock
    • setTitle

      public void setTitle(String TITLE)
      Defines the title of the clock. The title could be used to show for example the current city or timezone
      Parameters:
      TITLE -
    • titleProperty

      public javafx.beans.property.StringProperty titleProperty()
      See Also:
    • getText

      public String getText()
      Returns the text that was defined for the clock. This text could be used for additional information.
      Returns:
      the text that was defined for the clock
    • setText

      public void setText(String TEXT)
      Define the text for the clock. This text could be used for additional information.
      Parameters:
      TEXT -
    • textProperty

      public javafx.beans.property.StringProperty textProperty()
      See Also:
    • getCheckSectionsForValue

      public boolean getCheckSectionsForValue()
      Returns true if the clock will check each section for the current time and the section will fire events in case the current time enters or leaves a section. This section events can be used to control something like switching on/off lights etc.
      Returns:
      true if the clock will check each section for the current time
    • setCheckSectionsForValue

      public void setCheckSectionsForValue(boolean CHECK)
      Defines if the clock will check each section for the current time and the section will fire events in case the current time enters or leaves a section. This section events can be used to control something like switching on/off lights etc.
      Parameters:
      CHECK -
    • checkSectionsForValueProperty

      public javafx.beans.property.BooleanProperty checkSectionsForValueProperty()
      See Also:
    • getCheckAreasForValue

      public boolean getCheckAreasForValue()
      Returns true if the clock will check each area for the current time and the area will fire events in case the current time enters or leaves a section. This area events can be used to control something like switching on/off lights etc.
      Returns:
      true if the clock will check each are for the current time
    • setCheckAreasForValue

      public void setCheckAreasForValue(boolean CHECK)
      Defines if the clock will check each area for the current time and the area will fire events in case the current time enters or leaves a section. This area events can be used to control something like switching on/off lights etc.
      Parameters:
      CHECK -
    • checkAreasForValueProperty

      public javafx.beans.property.BooleanProperty checkAreasForValueProperty()
      See Also:
    • getSections

      public javafx.collections.ObservableList<TimeSection> getSections()
      Returns an observable list of TimeSection objects. The sections will be used to colorize areas with a special meaning. TimeSections in the Medusa library usually are less eye-catching than Areas.
      Returns:
      an observable list of TimeSection objects
    • setSections

      public void setSections(List<TimeSection> SECTIONS)
      Sets the sections to the given list of TimeSection objects. The sections will be used to colorize areas with a special meaning. Sections in the Medusa library usually are less eye-catching than Areas.
      Parameters:
      SECTIONS -
    • setSections

      public void setSections(TimeSection... SECTIONS)
      Sets the sections to the given array of TimeSection objects. The sections will be used to colorize areas with a special meaning. Sections in the Medusa library usually are less eye-catching than Areas.
      Parameters:
      SECTIONS -
    • addSection

      public void addSection(TimeSection SECTION)
      Adds the given TimeSection to the list of sections. Sections in the Medusa library usually are less eye-catching than Areas.
      Parameters:
      SECTION -
    • removeSection

      public void removeSection(TimeSection SECTION)
      Removes the given TimeSection from the list of sections. Sections in the Medusa library usually are less eye-catching than Areas.
      Parameters:
      SECTION -
    • clearSections

      public void clearSections()
      Clears the list of sections.
    • getSectionsVisible

      public boolean getSectionsVisible()
      Returns true if the sections should be drawn in the clock.
      Returns:
      true if the sections should be drawn in the clock.
    • setSectionsVisible

      public void setSectionsVisible(boolean VISIBLE)
      Defines if the sections should be drawn in the clock.
      Parameters:
      VISIBLE -
    • sectionsVisibleProperty

      public javafx.beans.property.BooleanProperty sectionsVisibleProperty()
      See Also:
    • isHighlightSections

      public boolean isHighlightSections()
      Returns true if sections should be highlighted in case they contain the current time.
      Returns:
      true if sections should be highlighted
    • setHighlightSections

      public void setHighlightSections(boolean HIGHLIGHT)
      Defines if sections should be highlighted in case they contain the current time.
      Parameters:
      HIGHLIGHT -
    • highlightSectionsProperty

      public javafx.beans.property.BooleanProperty highlightSectionsProperty()
      See Also:
    • getAreas

      public javafx.collections.ObservableList<TimeSection> getAreas()
      Returns an observable list of TimeSection objects. The sections will be used to colorize areas with a special meaning. Areas in the Medusa library usually are more eye-catching than Sections.
      Returns:
      an observable list of TimeSection objects
    • setAreas

      public void setAreas(List<TimeSection> AREAS)
      Sets the areas to the given list of TimeSection objects. The sections will be used to colorize areas with a special meaning. Areas in the Medusa library usually are more eye-catching than Sections.
      Parameters:
      AREAS -
    • setAreas

      public void setAreas(TimeSection... AREAS)
      Sets the areas to the given array of TimeSection objects. The sections will be used to colorize areas with a special meaning. Areas in the Medusa library usually are more eye-catching than Sections.
      Parameters:
      AREAS -
    • addArea

      public void addArea(TimeSection AREA)
      Adds the given TimeSection to the list of areas. Areas in the Medusa library usually are more eye-catching than Sections.
      Parameters:
      AREA -
    • removeArea

      public void removeArea(TimeSection AREA)
      Removes the given TimeSection from the list of areas. Areas in the Medusa library usually are more eye-catching than Sections.
      Parameters:
      AREA -
    • clearAreas

      public void clearAreas()
      Clears the list of areas
    • getAreasVisible

      public boolean getAreasVisible()
      Returns true if the areas should be drawn in the clock.
      Returns:
      true if the areas should be drawn in the clock
    • setAreasVisible

      public void setAreasVisible(boolean VISIBLE)
      Defines if the areas should be drawn in the clock.
      Parameters:
      VISIBLE -
    • areasVisibleProperty

      public javafx.beans.property.BooleanProperty areasVisibleProperty()
      See Also:
    • isHighlightAreas

      public boolean isHighlightAreas()
      Returns true if areas should be highlighted in case they contain the current time.
      Returns:
      true if areas should be highlighted
    • setHighlightAreas

      public void setHighlightAreas(boolean HIGHLIGHT)
      Defines if areas should be highlighted in case they contain the current time.
      Parameters:
      HIGHLIGHT -
    • highlightAreasProperty

      public javafx.beans.property.BooleanProperty highlightAreasProperty()
      See Also:
    • isDiscreteSeconds

      public boolean isDiscreteSeconds()
      Returns true if the second hand of the clock should move in discrete steps of 1 second. Otherwise it will move continuously like in an automatic clock.
      Returns:
      true if the second hand of the clock should move in discrete steps of 1 second
    • setDiscreteSeconds

      public void setDiscreteSeconds(boolean DISCRETE)
      Defines if the second hand of the clock should move in discrete steps of 1 second. Otherwise it will move continuously like in an automatic clock.
      Parameters:
      DISCRETE -
    • discreteSecondsProperty

      public javafx.beans.property.BooleanProperty discreteSecondsProperty()
      See Also:
    • isDiscreteMinutes

      public boolean isDiscreteMinutes()
      Returns true if the minute hand of the clock should move in discrete steps of 1 minute. Otherwise it will move continuously like in an automatic clock.
      Returns:
      true if the minute hand of the clock should move in discrete steps of 1 minute
    • setDiscreteMinutes

      public void setDiscreteMinutes(boolean DISCRETE)
      Defines if the minute hand of the clock should move in discrete steps of 1 minute. Otherwise it will move continuously like in an automatic clock.
      Parameters:
      DISCRETE -
    • discreteMinutesProperty

      public javafx.beans.property.BooleanProperty discreteMinutesProperty()
      See Also:
    • isDiscreteHours

      public boolean isDiscreteHours()
      Returns true if the hour hand of the clock should move in discrete steps of 1 hour. This behavior was more or less implemented to realize the clock of clocks and should usually be false.
      Returns:
      true if the hour hand of the clock should move in discrete steps of 1 hour
    • setDiscreteHours

      public void setDiscreteHours(boolean DISCRETE)
      Defines if the hour hand of the clock should move in discrete steps of 1 hour. This behavior was more or less implemented to realize the clock of clocks and should usually be false.
      Parameters:
      DISCRETE -
    • discreteHoursProperty

      public javafx.beans.property.BooleanProperty discreteHoursProperty()
      See Also:
    • isSecondsVisible

      public boolean isSecondsVisible()
      Returns true if the second hand of the clock will be drawn.
      Returns:
      true if the second hand of the clock will be drawn.
    • setSecondsVisible

      public void setSecondsVisible(boolean VISIBLE)
      Defines if the second hand of the clock will be drawn.
      Parameters:
      VISIBLE -
    • secondsVisibleProperty

      public javafx.beans.property.BooleanProperty secondsVisibleProperty()
      See Also:
    • isTitleVisible

      public boolean isTitleVisible()
      Returns true if the title of the clock will be drawn.
      Returns:
      true if the title of the clock will be drawn
    • setTitleVisible

      public void setTitleVisible(boolean VISIBLE)
      Defines if the title of the clock will be drawn.
      Parameters:
      VISIBLE -
    • titleVisibleProperty

      public javafx.beans.property.BooleanProperty titleVisibleProperty()
      See Also:
    • isTextVisible

      public boolean isTextVisible()
      Returns true if the text of the clock will be drawn.
      Returns:
      true if the text of the clock will be drawn
    • setTextVisible

      public void setTextVisible(boolean VISIBLE)
      Defines if the text of the clock will be drawn.
      Parameters:
      VISIBLE -
    • textVisibleProperty

      public javafx.beans.property.BooleanProperty textVisibleProperty()
      See Also:
    • isDateVisible

      public boolean isDateVisible()
      Returns true if the date of the clock will be drawn.
      Returns:
      true if the date of the clock will be drawn
    • setDateVisible

      public void setDateVisible(boolean VISIBLE)
      Defines if the date of the clock will be drawn.
      Parameters:
      VISIBLE -
    • dateVisibleProperty

      public javafx.beans.property.BooleanProperty dateVisibleProperty()
      See Also:
    • isDayVisible

      public boolean isDayVisible()
      Gets the value of the property dayVisible.
      Property description:
    • setDayVisible

      public void setDayVisible(boolean VISIBLE)
      Sets the value of the property dayVisible.
      Property description:
    • dayVisibleProperty

      public javafx.beans.property.BooleanProperty dayVisibleProperty()
      See Also:
    • isNightMode

      public boolean isNightMode()
      Returns true if the clock is in night mode (NOT USED AT THE MOMENT)
      Returns:
      true if the clock is in night mode (NOT USED AT THE MOMENT)
    • setNightMode

      public void setNightMode(boolean MODE)
      Defines if the clock is in night mode (NOT USED AT THE MOMENT)
      Parameters:
      MODE -
    • nightModeProperty

      public javafx.beans.property.BooleanProperty nightModeProperty()
      See Also:
    • isRunning

      public boolean isRunning()
      Returns true if the clock is running and shows the current time. The clock will only start running if animated == false.
      Returns:
      true if the clock is running
    • setRunning

      public void setRunning(boolean RUNNING)
      Defines if the clock is running. The clock will only start running if animated == false;
      Parameters:
      RUNNING -
    • runningProperty

      public javafx.beans.property.BooleanProperty runningProperty()
      See Also:
    • isAutoNightMode

      public boolean isAutoNightMode()
      Returns true if the clock is in auto night mode (NOT USED AT THE MOMENT). The idea is that the clock can switch the colors from bright to dark automatically in dependence on the time of day.
      Returns:
      true if the clock is in auto night mode (NOT USED AT THE MOMENT)
    • setAutoNightMode

      public void setAutoNightMode(boolean MODE)
      Defines if the clock is in auto night mode (NOT USED AT THE MOMENT)
      Parameters:
      MODE -
    • autoNightModeProperty

      public javafx.beans.property.BooleanProperty autoNightModeProperty()
      See Also:
    • getBackgroundPaint

      public javafx.scene.paint.Paint getBackgroundPaint()
      Returns the Paint object that will be used to fill the clock background. This is usally a Color object.
      Returns:
      the Paint object that will be used to fill the clock background
    • setBackgroundPaint

      public void setBackgroundPaint(javafx.scene.paint.Paint PAINT)
      Defines the Paint object that will be used to fill the clock background. This is usally a Color object.
      Parameters:
      PAINT -
    • backgroundPaintProperty

      public javafx.beans.property.ObjectProperty<javafx.scene.paint.Paint> backgroundPaintProperty()
      See Also:
    • getBorderPaint

      public javafx.scene.paint.Paint getBorderPaint()
      Returns the Paint object that will be used to draw the border of the clock. Usually this is a Color object.
      Returns:
      the Paint object that will be used to draw the border of the clock
    • setBorderPaint

      public void setBorderPaint(javafx.scene.paint.Paint PAINT)
      Defines the Paint object that will be used to draw the border of the clock. Usually this is a Color object.
      Parameters:
      PAINT -
    • borderPaintProperty

      public javafx.beans.property.ObjectProperty<javafx.scene.paint.Paint> borderPaintProperty()
      See Also:
    • getBorderWidth

      public double getBorderWidth()
      Returns the width in pixels that will be used to draw the border of the clock. The value will be clamped between 0 and 50 pixels.
      Returns:
      the width in pixels that will be used to draw the border of the clock
    • setBorderWidth

      public void setBorderWidth(double WIDTH)
      Defines the width in pixels that will be used to draw the border of the clock. The value will be clamped between 0 and 50 pixels.
      Parameters:
      WIDTH -
    • borderWidthProperty

      public javafx.beans.property.DoubleProperty borderWidthProperty()
      See Also:
    • getForegroundPaint

      public javafx.scene.paint.Paint getForegroundPaint()
      Returns the Paint object that will be used to fill the foreground of the clock. This could be used to visualize glass effects etc. and is only rarely used.
      Returns:
      the Paint object that will be used to fill the foreground of the clock
    • setForegroundPaint

      public void setForegroundPaint(javafx.scene.paint.Paint PAINT)
      Defines the Paint object that will be used to fill the foreground of the clock. This could be used to visualize glass effects etc. and is only rarely used.
      Parameters:
      PAINT -
    • foregroundPaintProperty

      public javafx.beans.property.ObjectProperty<javafx.scene.paint.Paint> foregroundPaintProperty()
      See Also:
    • getTitleColor

      public javafx.scene.paint.Color getTitleColor()
      Returns the color that will be used to colorize the title of the clock.
      Returns:
      the color that will be used to colorize the title of the clock
    • setTitleColor

      public void setTitleColor(javafx.scene.paint.Color COLOR)
      Defines the color that will be used to colorize the title of the clock
      Parameters:
      COLOR -
    • titleColorProperty

      public javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> titleColorProperty()
      See Also:
    • getTextColor

      public javafx.scene.paint.Color getTextColor()
      Returns the color that will be used to colorize the text of the clock.
      Returns:
      the color that will be used to colorize the text of the clock
    • setTextColor

      public void setTextColor(javafx.scene.paint.Color COLOR)
      Defines the color that will be used to colorize the text of the clock.
      Parameters:
      COLOR -
    • textColorProperty

      public javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> textColorProperty()
      See Also:
    • getDateColor

      public javafx.scene.paint.Color getDateColor()
      Returns the color that will be used to colorize the date of the clock.
      Returns:
      the color that will be used to colorize the date of the clock
    • setDateColor

      public void setDateColor(javafx.scene.paint.Color COLOR)
      Defines the color that will be used to colorize the date of the clock
      Parameters:
      COLOR -
    • dateColorProperty

      public javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> dateColorProperty()
      See Also:
    • getHourTickMarkColor

      public javafx.scene.paint.Color getHourTickMarkColor()
      Returns the color that will be used to colorize the hour tickmarks of the clock.
      Returns:
      the color that will be used to colorize the hour tickmarks of the clock
    • setHourTickMarkColor

      public void setHourTickMarkColor(javafx.scene.paint.Color COLOR)
      Defines the color that will be used to colorize the hour tickmarks of the clock.
      Parameters:
      COLOR -
    • hourTickMarkColorProperty

      public javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> hourTickMarkColorProperty()
      See Also:
    • getMinuteTickMarkColor

      public javafx.scene.paint.Color getMinuteTickMarkColor()
      Returns the color that will be used to colorize the minute tickmarks of the clock.
      Returns:
      the color that will be used to colorize the minute tickmarks of the clock
    • setMinuteTickMarkColor

      public void setMinuteTickMarkColor(javafx.scene.paint.Color COLOR)
      Defines the color that will be used to colorize the minute tickmarks of the clock.
      Parameters:
      COLOR -
    • minuteTickMarkColorProperty

      public javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> minuteTickMarkColorProperty()
      See Also:
    • getTickLabelColor

      public javafx.scene.paint.Color getTickLabelColor()
      Returns the color that will be used to colorize the ticklabels of the clock.
      Returns:
      the color that will be used to colorize the ticklabels of the clock
    • setTickLabelColor

      public void setTickLabelColor(javafx.scene.paint.Color COLOR)
      Defines the color that will be used to colorize the ticklabels of the clock.
      Parameters:
      COLOR -
    • tickLabelColorProperty

      public javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> tickLabelColorProperty()
      See Also:
    • getAlarmColor

      public javafx.scene.paint.Color getAlarmColor()
      Returns the color that will be used to colorize the alarm icon.
      Returns:
      the color that will be used to colorize the alarm icon
    • setAlarmColor

      public void setAlarmColor(javafx.scene.paint.Color COLOR)
      Defines the color that will be used to colorize the alarm icon
      Parameters:
      COLOR -
    • alarmColorProperty

      public javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> alarmColorProperty()
      See Also:
    • isHourTickMarksVisible

      public boolean isHourTickMarksVisible()
      Returns true if the hour tickmarks will be drawn.
      Returns:
      true if the hour tickmarks will be drawn
    • setHourTickMarksVisible

      public void setHourTickMarksVisible(boolean VISIBLE)
      Defines if the hour tickmarks will be drawn.
      Parameters:
      VISIBLE -
    • hourTickMarksVisibleProperty

      public javafx.beans.property.BooleanProperty hourTickMarksVisibleProperty()
      See Also:
    • isMinuteTickMarksVisible

      public boolean isMinuteTickMarksVisible()
      Returns true if the minute tickmarks will be drawn.
      Returns:
      true if the minute tickmarks will be drawn
    • setMinuteTickMarksVisible

      public void setMinuteTickMarksVisible(boolean VISIBLE)
      Defines if the minute tickmarks will be drawn.
      Parameters:
      VISIBLE -
    • minuteTickMarksVisibleProperty

      public javafx.beans.property.BooleanProperty minuteTickMarksVisibleProperty()
      See Also:
    • isTickLabelsVisible

      public boolean isTickLabelsVisible()
      Returns true if the ticklabels will be drawn.
      Returns:
      true if the ticklabels will be drawn
    • setTickLabelsVisible

      public void setTickLabelsVisible(boolean VISIBLE)
      Defines if the ticklabels will be drawn.
      Parameters:
      VISIBLE -
    • tickLabelsVisibleProperty

      public javafx.beans.property.BooleanProperty tickLabelsVisibleProperty()
      See Also:
    • getHourColor

      public javafx.scene.paint.Color getHourColor()
      Returns the color that will be used to colorize the hour hand of the clock.
      Returns:
      the color that will be used to colorize the hour hand of the clock
    • setHourColor

      public void setHourColor(javafx.scene.paint.Color COLOR)
      Defines the color that will be used to colorize the hour hand of the clock
      Parameters:
      COLOR -
    • hourColorProperty

      public javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> hourColorProperty()
      See Also:
    • getMinuteColor

      public javafx.scene.paint.Color getMinuteColor()
      Returns the color that will be used to colorize the minute hand of the clock.
      Returns:
      the color that will be used to colorize the minute hand of the clock
    • setMinuteColor

      public void setMinuteColor(javafx.scene.paint.Color COLOR)
      Defines the color that will be used to colorize the minute hand of the clock.
      Parameters:
      COLOR -
    • minuteColorProperty

      public javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> minuteColorProperty()
      See Also:
    • getSecondColor

      public javafx.scene.paint.Color getSecondColor()
      Returns the color that will be used to colorize the second hand of the clock.
      Returns:
      the color that will be used to colorize the second hand of the clock
    • setSecondColor

      public void setSecondColor(javafx.scene.paint.Color COLOR)
      Defines the color that will be used to colorize the second hand of the clock
      Parameters:
      COLOR -
    • secondColorProperty

      public javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> secondColorProperty()
      See Also:
    • getKnobColor

      public javafx.scene.paint.Color getKnobColor()
      Returns the color that will be used to colorize the knob of the clock (if available)
      Returns:
      the color that will be used to colorize the knob of the clock (if available)
    • setKnobColor

      public void setKnobColor(javafx.scene.paint.Color COLOR)
      Defines the color that will be used to colorize the knob of the clock (if available)
      Parameters:
      COLOR -
    • knobColorProperty

      public javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> knobColorProperty()
      See Also:
    • getLcdDesign

      public LcdDesign getLcdDesign()
      Returns the LcdDesign that will be used to visualize the LCD display. This is currently only used in the LcdSkin.
      Returns:
      the LcdDesign that will be used to visualize th LCD display
    • setLcdDesign

      public void setLcdDesign(LcdDesign DESIGN)
      Defines the LcdDesign that will be used to visualize the LCD display. This is currently only used in the LcdSkin.
      Parameters:
      DESIGN -
    • lcdDesignProperty

      public javafx.beans.property.ObjectProperty<LcdDesign> lcdDesignProperty()
      See Also:
    • isAlarmsEnabled

      public boolean isAlarmsEnabled()
      Returns true if alarms are enabled. If false then no alarms will be triggered
      Returns:
      true if alarms are enabled
    • setAlarmsEnabled

      public void setAlarmsEnabled(boolean CHECK)
      Defines if alarms are enabled. If false then no alarms will be triggered.
      Parameters:
      CHECK -
    • alarmsEnabledProperty

      public javafx.beans.property.BooleanProperty alarmsEnabledProperty()
      See Also:
    • isAlarmsVisible

      public boolean isAlarmsVisible()
      Returns true if alarm markers should be drawn.
      Returns:
      true if alarm markers should be drawn
    • setAlarmsVisible

      public void setAlarmsVisible(boolean VISIBLE)
      Defines if alarm markers should be drawn.
      Parameters:
      VISIBLE -
    • alarmsVisibleProperty

      public javafx.beans.property.BooleanProperty alarmsVisibleProperty()
      See Also:
    • getAlarms

      public javafx.collections.ObservableList<Alarm> getAlarms()
      Returns an observable list of Alarm objects.
      Returns:
      an observable list of Alarm objects
    • setAlarms

      public void setAlarms(List<Alarm> ALARMS)
      Sets the alarms to the given list of Alarm objects.
      Parameters:
      ALARMS -
    • setAlarms

      public void setAlarms(Alarm... ALARMS)
      Sets the alarms to the given array of Alarm objects.
      Parameters:
      ALARMS -
    • addAlarm

      public void addAlarm(Alarm ALARM)
      Adds the given Alarm object from the list of alarms.
      Parameters:
      ALARM -
    • removeAlarm

      public void removeAlarm(Alarm ALARM)
      Removes the given Alarm object from the list of alarms.
      Parameters:
      ALARM -
    • clearAlarms

      public void clearAlarms()
      Clears the list of alarms.
    • isLcdCrystalEnabled

      public boolean isLcdCrystalEnabled()
      Returns true if the crystal effect of the LCD display will be drawn. This feature could decrease the performance if you run it on embedded devices because it will calculate a bitmap image where each pixel will be calculated.
      Returns:
      true if the crystal effect of the LCD display will be drawn
    • setLcdCrystalEnabled

      public void setLcdCrystalEnabled(boolean ENABLED)
      Defines if the crystal effect of the LCD display will be drawn. This feature could decrease the performance if you run it on embedded devices because it will calculate a bitmap image where each pixel will be calculated.
      Parameters:
      ENABLED -
    • lcdCrystalEnabledProperty

      public javafx.beans.property.BooleanProperty lcdCrystalEnabledProperty()
      See Also:
    • getShadowsEnabled

      public boolean getShadowsEnabled()
      Returns true if effects like shadows will be drawn.
      Returns:
      true if effects like shadows will be drawn
    • setShadowsEnabled

      public void setShadowsEnabled(boolean ENABLED)
      Defines if effects like shadows will be drawn.
      Parameters:
      ENABLED -
    • shadowsEnabledProperty

      public javafx.beans.property.BooleanProperty shadowsEnabledProperty()
      See Also:
    • getLcdFont

      public LcdFont getLcdFont()
      Returns the font that will be used to visualize the LCD if the clock has a LCD display or for the LcdClockSkin. The values are STANDARD, LCD, SLIM, DIGITAL_BOLD, ELEKTRA
      Returns:
      the font that will be used to visualize the LCD
    • setLcdFont

      public void setLcdFont(LcdFont FONT)
      Defines the font that will be used to visualize the LCD value if the clock has a LCD display or for the LcdClockSkin. The values are STANDARD, LCD, SLIM, DIGITAL_BOLD, ELEKTRA
      Parameters:
      FONT -
    • lcdFontProperty

      public javafx.beans.property.ObjectProperty<LcdFont> lcdFontProperty()
      See Also:
    • getLocale

      public Locale getLocale()
      Returns the Locale that will be used to format the date in some ClockSkins.
      Returns:
      the Locale that will be used to format the date
    • setLocale

      public void setLocale(Locale LOCALE)
      Defines the Locale that will be used to format the date in some ClockSkins.
      Parameters:
      LOCALE -
    • localeProperty

      public javafx.beans.property.ObjectProperty<Locale> localeProperty()
      See Also:
    • getTickLabelLocation

      public TickLabelLocation getTickLabelLocation()
      Returns the location of the ticklabels. The values are INSIDE and OUTSIDE. The location of the ticklabels has an influence on the size of the tickmarks and length of the hands. (NOT USED AT THE MOMENT)
      Returns:
      the location of the ticklabels
    • setTickLabelLocation

      public void setTickLabelLocation(TickLabelLocation LOCATION)
      Defines the location of the ticklabels. The values are INSIDE and OUTSIDE. The location of the ticklabels has an influence on the size of the tickmarks and length of the hands. (NOT USED AT THE MOMENT)
      Parameters:
      LOCATION -
    • tickLabelLocationProperty

      public javafx.beans.property.ObjectProperty<TickLabelLocation> tickLabelLocationProperty()
      See Also:
    • isAnimated

      public boolean isAnimated()
      Returns true if the clock hands should be animated when set to another time. This could be used to visualize the movement of the clock hands when the time changes. If set to true the clock can not be started with setRunning(true).
      Returns:
      true if the clock hands should be animated when set to another time
    • setAnimated

      public void setAnimated(boolean ANIMATED)
      Defines if the clock hands should be animated when set to another time. This could be used to visualize the movement of the clock hands when the time changes. If set to true the clock can not be started with setRunning(true).
      Parameters:
      ANIMATED -
    • animatedProperty

      public javafx.beans.property.BooleanProperty animatedProperty()
      See Also:
    • getAnimationDuration

      public long getAnimationDuration()
      Returns the duration in milliseconds that will be used to animate the hands of the clock from the current time to the given time. This will only be used if animated == true. This value will be clamped in the range of 10ms - 10s.
      Returns:
      the duration in milliseconds that will be used to animate the clock hands
    • setAnimationDuration

      public void setAnimationDuration(long ANIMATION_DURATION)
      Defines the duration in milliseconds that will be used to animate the hands of the clock from the current time to the given time. This will only be used if animated == true. This value will be clamped in the range of 10ms - 10s.
      Parameters:
      ANIMATION_DURATION -
    • isCustomFontEnabled

      public boolean isCustomFontEnabled()
      Returns true if the control uses the given customFont to render all text elements.
      Returns:
      true if the control uses the given customFont
    • setCustomFontEnabled

      public void setCustomFontEnabled(boolean ENABLED)
      Defines if the control should use the given customFont to render all text elements
      Parameters:
      ENABLED -
    • customFontEnabledProperty

      public javafx.beans.property.BooleanProperty customFontEnabledProperty()
      See Also:
    • getCustomFont

      public javafx.scene.text.Font getCustomFont()
      Returns the given custom Font that can be used to render all text elements. To enable the custom font one has to set customFontEnabled = true
      Returns:
      the given custom Font
    • setCustomFont

      public void setCustomFont(javafx.scene.text.Font FONT)
      Defines the custom font that can be used to render all text elements. To enable the custom font one has to set customFontEnabled = true
      Parameters:
      FONT -
    • customFontProperty

      public javafx.beans.property.ObjectProperty<javafx.scene.text.Font> customFontProperty()
      See Also:
    • stop

      public void stop()
      Calling this method will stop all threads. This is needed when using JavaFX on mobile devices when the device goes to sleep mode.
    • createDefaultSkin

      protected javafx.scene.control.Skin createDefaultSkin()
      Overrides:
      createDefaultSkin in class javafx.scene.control.Control
    • getUserAgentStylesheet

      public String getUserAgentStylesheet()
      Overrides:
      getUserAgentStylesheet in class javafx.scene.layout.Region
    • getSkinType

      public Clock.ClockSkinType getSkinType()
    • setSkinType

      public void setSkinType(Clock.ClockSkinType SKIN_TYPE)
    • addClockObserver

      public void addClockObserver(eu.hansolo.toolbox.evt.EvtType type, eu.hansolo.toolbox.evt.EvtObserver<MedusaEvt> observer)
    • removeClockObserver

      public void removeClockObserver(eu.hansolo.toolbox.evt.EvtType type, eu.hansolo.toolbox.evt.EvtObserver<MedusaEvt> observer)
    • removeAllObservers

      public void removeAllObservers()
    • fireClockEvt

      public void fireClockEvt(MedusaEvt evt)