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
PropertiesTypePropertyDescriptionjavafx.beans.property.ObjectProperty<javafx.scene.paint.Color>javafx.beans.property.BooleanPropertyjavafx.beans.property.BooleanPropertyjavafx.beans.property.BooleanPropertyjavafx.beans.property.BooleanPropertyjavafx.beans.property.BooleanPropertyjavafx.beans.property.ObjectProperty<javafx.scene.paint.Paint>javafx.beans.property.ObjectProperty<javafx.scene.paint.Paint>javafx.beans.property.DoublePropertyjavafx.beans.property.BooleanPropertyjavafx.beans.property.BooleanPropertyjavafx.beans.property.ReadOnlyLongPropertyjavafx.beans.property.BooleanPropertyjavafx.beans.property.ObjectProperty<javafx.scene.text.Font>javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>javafx.beans.property.BooleanPropertyjavafx.beans.property.BooleanPropertyjavafx.beans.property.BooleanPropertyjavafx.beans.property.BooleanPropertyjavafx.beans.property.BooleanPropertyjavafx.beans.property.ObjectProperty<javafx.scene.paint.Paint>javafx.beans.property.BooleanPropertyjavafx.beans.property.BooleanPropertyjavafx.beans.property.ObjectProperty<javafx.scene.paint.Color>javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>javafx.beans.property.BooleanPropertyjavafx.beans.property.ObjectProperty<javafx.scene.paint.Color>javafx.beans.property.BooleanPropertyjavafx.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.BooleanPropertyjavafx.beans.property.BooleanPropertyjavafx.beans.property.BooleanPropertyjavafx.beans.property.ObjectProperty<javafx.scene.paint.Color>javafx.beans.property.BooleanPropertyjavafx.beans.property.BooleanPropertyjavafx.beans.property.BooleanPropertyjavafx.beans.property.ObjectProperty<javafx.scene.paint.Color>javafx.beans.property.StringPropertyjavafx.beans.property.BooleanPropertyjavafx.beans.property.ObjectProperty<javafx.scene.paint.Color>javafx.beans.property.ObjectProperty<TickLabelLocation>javafx.beans.property.BooleanPropertyjavafx.beans.property.ObjectProperty<ZonedDateTime>javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>javafx.beans.property.StringPropertyjavafx.beans.property.BooleanPropertyProperties inherited from class javafx.scene.control.Control
contextMenu, skin, tooltipProperties inherited from class javafx.scene.layout.Region
background, border, cacheShape, centerShape, height, insets, maxHeight, maxWidth, minHeight, minWidth, opaqueInsets, padding, prefHeight, prefWidth, scaleShape, shape, snapToPixel, widthProperties inherited from class javafx.scene.Parent
needsLayoutProperties 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 -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final javafx.scene.paint.Colorstatic final javafx.scene.paint.Colorstatic final intstatic final intFields inherited from class javafx.scene.layout.Region
USE_COMPUTED_SIZE, USE_PREF_SIZEFields inherited from class javafx.scene.Node
BASELINE_OFFSET_SAME_AS_HEIGHT -
Constructor Summary
ConstructorsConstructorDescriptionClock()Clock(long epochSeconds) Clock(Clock.ClockSkinType skinType) 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) Clock(Clock.ClockSkinType skinType, ZonedDateTime time) Clock(ZonedDateTime time) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the given Alarm object from the list of alarms.voidaddArea(TimeSection AREA) Adds the given TimeSection to the list of areas.voidaddClockObserver(eu.hansolo.toolbox.evt.EvtType type, eu.hansolo.toolbox.evt.EvtObserver<MedusaEvt> observer) voidaddSection(TimeSection SECTION) Adds the given TimeSection to the list of sections.javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>javafx.beans.property.BooleanPropertyjavafx.beans.property.BooleanPropertyjavafx.beans.property.BooleanPropertyjavafx.beans.property.BooleanPropertyjavafx.beans.property.BooleanPropertyjavafx.beans.property.ObjectProperty<javafx.scene.paint.Paint>javafx.beans.property.ObjectProperty<javafx.scene.paint.Paint>javafx.beans.property.DoublePropertyjavafx.beans.property.BooleanPropertyjavafx.beans.property.BooleanPropertyvoidClears the list of alarms.voidClears the list of areasvoidClears the list of sections.protected javafx.scene.control.Skinjavafx.beans.property.ReadOnlyLongPropertyjavafx.beans.property.BooleanPropertyjavafx.beans.property.ObjectProperty<javafx.scene.text.Font>javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>javafx.beans.property.BooleanPropertyjavafx.beans.property.BooleanPropertyjavafx.beans.property.BooleanPropertyjavafx.beans.property.BooleanPropertyjavafx.beans.property.BooleanPropertyvoidfireClockEvt(MedusaEvt evt) javafx.beans.property.ObjectProperty<javafx.scene.paint.Paint>javafx.scene.paint.ColorReturns the color that will be used to colorize the alarm icon.javafx.collections.ObservableList<Alarm>Returns an observable list of Alarm objects.longReturns 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>getAreas()Returns an observable list of TimeSection objects.booleanReturns true if the areas should be drawn in the clock.javafx.scene.paint.PaintReturns the Paint object that will be used to fill the clock background.javafx.scene.paint.PaintReturns the Paint object that will be used to draw the border of the clock.doubleReturns the width in pixels that will be used to draw the border of the clock.booleanReturns 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.booleanReturns 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.longReturns the current time in epoch secondsjavafx.scene.text.FontReturns the given custom Font that can be used to render all text elements.javafx.scene.paint.ColorReturns the color that will be used to colorize the date of the clock.javafx.scene.paint.PaintReturns the Paint object that will be used to fill the foreground of the clock.javafx.scene.paint.ColorReturns the color that will be used to colorize the hour hand of the clock.javafx.scene.paint.ColorReturns the color that will be used to colorize the hour tickmarks of the clock.javafx.scene.paint.ColorReturns 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.ColorReturns the color that will be used to colorize the minute hand of the clock.javafx.scene.paint.ColorReturns the color that will be used to colorize the minute tickmarks of the clock.javafx.scene.paint.ColorReturns 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.booleanReturns true if the sections should be drawn in the clock.booleanReturns true if effects like shadows will be drawn.getText()Returns the text that was defined for the clock.javafx.scene.paint.ColorReturns the color that will be used to colorize the text of the clock.javafx.scene.paint.ColorReturns the color that will be used to colorize the ticklabels of the clock.Returns the location of the ticklabels.getTime()Returns the current time of the clock.longgetTitle()Returns the title of the clock.javafx.scene.paint.ColorReturns the color that will be used to colorize the title of the clock.javafx.beans.property.BooleanPropertyjavafx.beans.property.BooleanPropertyjavafx.beans.property.ObjectProperty<javafx.scene.paint.Color>javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>javafx.beans.property.BooleanPropertybooleanReturns true if alarms are enabled.booleanReturns true if alarm markers should be drawn.booleanReturns true if the clock hands should be animated when set to another time.booleanReturns true if the clock is in auto night mode (NOT USED AT THE MOMENT).booleanReturns true if the control uses the given customFont to render all text elements.booleanReturns true if the date of the clock will be drawn.booleanGets the value of the property dayVisible.booleanReturns true if the hour hand of the clock should move in discrete steps of 1 hour.booleanReturns true if the minute hand of the clock should move in discrete steps of 1 minute.booleanReturns true if the second hand of the clock should move in discrete steps of 1 second.booleanReturns true if areas should be highlighted in case they contain the current time.booleanReturns true if sections should be highlighted in case they contain the current time.booleanReturns true if the hour tickmarks will be drawn.booleanReturns true if the crystal effect of the LCD display will be drawn.booleanReturns true if the minute tickmarks will be drawn.booleanReturns true if the clock is in night mode (NOT USED AT THE MOMENT)booleanReturns true if the clock is running and shows the current time.booleanReturns true if the second hand of the clock will be drawn.booleanReturns true if the text of the clock will be drawn.booleanReturns true if the ticklabels will be drawn.booleanReturns true if the title of the clock will be drawn.javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>javafx.beans.property.BooleanPropertyjavafx.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.BooleanPropertyjavafx.beans.property.BooleanPropertyvoidreInit()voidremoveAlarm(Alarm ALARM) Removes the given Alarm object from the list of alarms.voidvoidremoveArea(TimeSection AREA) Removes the given TimeSection from the list of areas.voidremoveClockObserver(eu.hansolo.toolbox.evt.EvtType type, eu.hansolo.toolbox.evt.EvtObserver<MedusaEvt> observer) voidremoveSection(TimeSection SECTION) Removes the given TimeSection from the list of sections.javafx.beans.property.BooleanPropertyjavafx.beans.property.ObjectProperty<javafx.scene.paint.Color>javafx.beans.property.BooleanPropertyjavafx.beans.property.BooleanPropertyvoidsetAlarmColor(javafx.scene.paint.Color COLOR) Defines the color that will be used to colorize the alarm iconvoidSets the alarms to the given array of Alarm objects.voidSets the alarms to the given list of Alarm objects.voidsetAlarmsEnabled(boolean CHECK) Defines if alarms are enabled.voidsetAlarmsVisible(boolean VISIBLE) Defines if alarm markers should be drawn.voidsetAnimated(boolean ANIMATED) Defines if the clock hands should be animated when set to another time.voidsetAnimationDuration(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.voidsetAreas(TimeSection... AREAS) Sets the areas to the given array of TimeSection objects.voidsetAreas(List<TimeSection> AREAS) Sets the areas to the given list of TimeSection objects.voidsetAreasVisible(boolean VISIBLE) Defines if the areas should be drawn in the clock.voidsetAutoNightMode(boolean MODE) Defines if the clock is in auto night mode (NOT USED AT THE MOMENT)voidsetBackgroundPaint(javafx.scene.paint.Paint PAINT) Defines the Paint object that will be used to fill the clock background.voidsetBorderPaint(javafx.scene.paint.Paint PAINT) Defines the Paint object that will be used to draw the border of the clock.voidsetBorderWidth(double WIDTH) Defines the width in pixels that will be used to draw the border of the clock.voidsetCheckAreasForValue(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.voidsetCheckSectionsForValue(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.voidsetCustomFont(javafx.scene.text.Font FONT) Defines the custom font that can be used to render all text elements.voidsetCustomFontEnabled(boolean ENABLED) Defines if the control should use the given customFont to render all text elementsvoidsetDateColor(javafx.scene.paint.Color COLOR) Defines the color that will be used to colorize the date of the clockvoidsetDateVisible(boolean VISIBLE) Defines if the date of the clock will be drawn.voidsetDayVisible(boolean VISIBLE) Sets the value of the property dayVisible.voidsetDiscreteHours(boolean DISCRETE) Defines if the hour hand of the clock should move in discrete steps of 1 hour.voidsetDiscreteMinutes(boolean DISCRETE) Defines if the minute hand of the clock should move in discrete steps of 1 minute.voidsetDiscreteSeconds(boolean DISCRETE) Defines if the second hand of the clock should move in discrete steps of 1 second.voidsetForegroundPaint(javafx.scene.paint.Paint PAINT) Defines the Paint object that will be used to fill the foreground of the clock.voidsetHighlightAreas(boolean HIGHLIGHT) Defines if areas should be highlighted in case they contain the current time.voidsetHighlightSections(boolean HIGHLIGHT) Defines if sections should be highlighted in case they contain the current time.voidsetHourColor(javafx.scene.paint.Color COLOR) Defines the color that will be used to colorize the hour hand of the clockvoidsetHourTickMarkColor(javafx.scene.paint.Color COLOR) Defines the color that will be used to colorize the hour tickmarks of the clock.voidsetHourTickMarksVisible(boolean VISIBLE) Defines if the hour tickmarks will be drawn.voidsetKnobColor(javafx.scene.paint.Color COLOR) Defines the color that will be used to colorize the knob of the clock (if available)voidsetLcdCrystalEnabled(boolean ENABLED) Defines if the crystal effect of the LCD display will be drawn.voidsetLcdDesign(LcdDesign DESIGN) Defines the LcdDesign that will be used to visualize the LCD display.voidsetLcdFont(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.voidDefines the Locale that will be used to format the date in some ClockSkins.voidsetMinuteColor(javafx.scene.paint.Color COLOR) Defines the color that will be used to colorize the minute hand of the clock.voidsetMinuteTickMarkColor(javafx.scene.paint.Color COLOR) Defines the color that will be used to colorize the minute tickmarks of the clock.voidsetMinuteTickMarksVisible(boolean VISIBLE) Defines if the minute tickmarks will be drawn.voidsetNightMode(boolean MODE) Defines if the clock is in night mode (NOT USED AT THE MOMENT)voidsetRunning(boolean RUNNING) Defines if the clock is running.voidsetSecondColor(javafx.scene.paint.Color COLOR) Defines the color that will be used to colorize the second hand of the clockvoidsetSecondsVisible(boolean VISIBLE) Defines if the second hand of the clock will be drawn.voidsetSections(TimeSection... SECTIONS) Sets the sections to the given array of TimeSection objects.voidsetSections(List<TimeSection> SECTIONS) Sets the sections to the given list of TimeSection objects.voidsetSectionsVisible(boolean VISIBLE) Defines if the sections should be drawn in the clock.voidsetShadowsEnabled(boolean ENABLED) Defines if effects like shadows will be drawn.voidsetSkinType(Clock.ClockSkinType SKIN_TYPE) voidDefine the text for the clock.voidsetTextColor(javafx.scene.paint.Color COLOR) Defines the color that will be used to colorize the text of the clock.voidsetTextVisible(boolean VISIBLE) Defines if the text of the clock will be drawn.voidsetTickLabelColor(javafx.scene.paint.Color COLOR) Defines the color that will be used to colorize the ticklabels of the clock.voidsetTickLabelLocation(TickLabelLocation LOCATION) Defines the location of the ticklabels.voidsetTickLabelsVisible(boolean VISIBLE) Defines if the ticklabels will be drawn.voidsetTime(long EPOCH_SECONDS) voidsetTime(ZonedDateTime TIME) Defines the current time of the clock.voidsetTimeMs(long EPOCH_MILLI_SECONDS) voidDefines the title of the clock.voidsetTitleColor(javafx.scene.paint.Color COLOR) Defines the color that will be used to colorize the title of the clockvoidsetTitleVisible(boolean VISIBLE) Defines if the title of the clock will be drawn.javafx.beans.property.BooleanPropertyvoidstop()Calling this method will stop all threads.javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>javafx.beans.property.StringPropertyjavafx.beans.property.BooleanPropertyjavafx.beans.property.ObjectProperty<javafx.scene.paint.Color>javafx.beans.property.ObjectProperty<TickLabelLocation>javafx.beans.property.BooleanPropertyjavafx.beans.property.ObjectProperty<ZonedDateTime>javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>javafx.beans.property.StringPropertyjavafx.beans.property.BooleanPropertyMethods 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, tooltipPropertyMethods 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, widthPropertyMethods inherited from class javafx.scene.Parent
getChildren, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, lookup, needsLayoutProperty, requestLayout, requestParentLayout, setNeedsLayout, updateBoundsMethods 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, visiblePropertyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface javafx.css.Styleable
getStyleableNode
-
Property Details
-
time
- See Also:
-
currentTime
public javafx.beans.property.ReadOnlyLongProperty currentTimeProperty- See Also:
-
title
public javafx.beans.property.StringProperty titleProperty- See Also:
-
text
public javafx.beans.property.StringProperty textProperty- See Also:
-
checkSectionsForValue
public javafx.beans.property.BooleanProperty checkSectionsForValueProperty -
checkAreasForValue
public javafx.beans.property.BooleanProperty checkAreasForValueProperty -
sectionsVisible
public javafx.beans.property.BooleanProperty sectionsVisibleProperty -
highlightSections
public javafx.beans.property.BooleanProperty highlightSectionsProperty -
areasVisible
public javafx.beans.property.BooleanProperty areasVisibleProperty- See Also:
-
highlightAreas
public javafx.beans.property.BooleanProperty highlightAreasProperty- See Also:
-
discreteSeconds
public javafx.beans.property.BooleanProperty discreteSecondsProperty -
discreteMinutes
public javafx.beans.property.BooleanProperty discreteMinutesProperty -
discreteHours
public javafx.beans.property.BooleanProperty discreteHoursProperty- See Also:
-
secondsVisible
public javafx.beans.property.BooleanProperty secondsVisibleProperty- See Also:
-
titleVisible
public javafx.beans.property.BooleanProperty titleVisibleProperty- See Also:
-
textVisible
public javafx.beans.property.BooleanProperty textVisibleProperty- See Also:
-
dateVisible
public javafx.beans.property.BooleanProperty dateVisibleProperty- See Also:
-
dayVisible
public javafx.beans.property.BooleanProperty dayVisibleProperty- See Also:
-
nightMode
public javafx.beans.property.BooleanProperty nightModeProperty- See Also:
-
running
public javafx.beans.property.BooleanProperty runningProperty- See Also:
-
autoNightMode
public javafx.beans.property.BooleanProperty autoNightModeProperty- See Also:
-
backgroundPaint
public javafx.beans.property.ObjectProperty<javafx.scene.paint.Paint> backgroundPaintProperty -
borderPaint
public javafx.beans.property.ObjectProperty<javafx.scene.paint.Paint> borderPaintProperty- See Also:
-
borderWidth
public javafx.beans.property.DoubleProperty borderWidthProperty- See Also:
-
foregroundPaint
public javafx.beans.property.ObjectProperty<javafx.scene.paint.Paint> foregroundPaintProperty -
titleColor
public javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> titleColorProperty- See Also:
-
textColor
public javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> textColorProperty- See Also:
-
dateColor
public javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> dateColorProperty- See Also:
-
hourTickMarkColor
public javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> hourTickMarkColorProperty -
minuteTickMarkColor
public javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> minuteTickMarkColorProperty -
tickLabelColor
public javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> tickLabelColorProperty- See Also:
-
alarmColor
public javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> alarmColorProperty- See Also:
-
hourTickMarksVisible
public javafx.beans.property.BooleanProperty hourTickMarksVisibleProperty -
minuteTickMarksVisible
public javafx.beans.property.BooleanProperty minuteTickMarksVisibleProperty -
tickLabelsVisible
public javafx.beans.property.BooleanProperty tickLabelsVisibleProperty -
hourColor
public javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> hourColorProperty- See Also:
-
minuteColor
public javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> minuteColorProperty- See Also:
-
secondColor
public javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> secondColorProperty- See Also:
-
knobColor
public javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> knobColorProperty- See Also:
-
lcdDesign
- See Also:
-
alarmsEnabled
public javafx.beans.property.BooleanProperty alarmsEnabledProperty- See Also:
-
alarmsVisible
public javafx.beans.property.BooleanProperty alarmsVisibleProperty- See Also:
-
lcdCrystalEnabled
public javafx.beans.property.BooleanProperty lcdCrystalEnabledProperty -
shadowsEnabled
public javafx.beans.property.BooleanProperty shadowsEnabledProperty -
lcdFont
- See Also:
-
locale
- See Also:
-
tickLabelLocation
-
animated
public javafx.beans.property.BooleanProperty animatedProperty- See Also:
-
customFontEnabled
public javafx.beans.property.BooleanProperty customFontEnabledProperty -
customFont
public javafx.beans.property.ObjectProperty<javafx.scene.text.Font> customFontProperty- See Also:
-
-
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
-
Clock
-
Clock
public Clock(long epochSeconds) -
Clock
-
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
Returns the current time of the clock.- Returns:
- the current time of the clock
-
getTimeMs
public long getTimeMs() -
setTime
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
- 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
-
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
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
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
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() -
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() -
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
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
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
Adds the given TimeSection to the list of sections. Sections in the Medusa library usually are less eye-catching than Areas.- Parameters:
SECTION-
-
removeSection
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() -
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() -
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
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
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
Adds the given TimeSection to the list of areas. Areas in the Medusa library usually are more eye-catching than Sections.- Parameters:
AREA-
-
removeArea
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() -
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() -
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() -
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() -
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() -
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() -
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() -
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() -
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() -
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
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
Defines the LcdDesign that will be used to visualize the LCD display. This is currently only used in the LcdSkin.- Parameters:
DESIGN-
-
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
Returns an observable list of Alarm objects.- Returns:
- an observable list of Alarm objects
-
setAlarms
Sets the alarms to the given list of Alarm objects.- Parameters:
ALARMS-
-
setAlarms
Sets the alarms to the given array of Alarm objects.- Parameters:
ALARMS-
-
addAlarm
Adds the given Alarm object from the list of alarms.- Parameters:
ALARM-
-
removeAlarm
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() -
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() -
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
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
- See Also:
-
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
Defines the Locale that will be used to format the date in some ClockSkins.- Parameters:
LOCALE-
-
localeProperty
- See Also:
-
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
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
-
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() -
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:
createDefaultSkinin classjavafx.scene.control.Control
-
getUserAgentStylesheet
- Overrides:
getUserAgentStylesheetin classjavafx.scene.layout.Region
-
getSkinType
-
setSkinType
-
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
-