Top Fields Constructors Methods
impl.com.calendarfx.view

public Class TimeScaleViewSkin<T extends TimeScaleView>

extends DayViewBaseSkin<T extends TimeScaleView>
Class Inheritance
Known Direct Subclasses
impl.com.calendarfx.view.WeekTimeScaleViewSkin
Imports
com.calendarfx.util.ViewHelper, com.calendarfx.view.TimeScaleView, javafx.animation.FadeTransition, javafx.beans.value.ChangeListener, javafx.geometry.BoundingBox, .Bounds, .Pos, javafx.scene.control.Label, .OverrunStyle, javafx.scene.shape.Rectangle, javafx.util.Duration, java.time.Instant, .LocalTime, .ZonedDateTime, java.time.temporal.ChronoUnit, java.util.ArrayList, .List

Field Summary

Modifier and TypeField and Description
private final Label
private static final String
private static final String
private final List<Label>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected double
computeMinWidth(double
The height of the Skin, in case this value might dictate the minimum width.
height
,
double
the pixel snapped top inset
topInset
,
double
the pixel snapped right inset
rightInset
,
double
the pixel snapped bottom inset
bottomInset
,
double
the pixel snapped left inset
leftInset
)

Overrides javafx.scene.control.SkinBase.computeMinWidth.

Computes the minimum allowable width of the Skin, based on the provided height.

protected double
computePrefWidth(double
the height that should be used if preferred width depends on it
height
,
double
the pixel snapped top inset
topInset
,
double
the pixel snapped right inset
rightInset
,
double
the pixel snapped bottom inset
bottomInset
,
double
the pixel snapped left inset
leftInset
)

Overrides javafx.scene.control.SkinBase.computePrefWidth.

Calculates the preferred width of this SkinBase.

private Label
protected boolean
protected void
layoutChildren(double
the x position
contentX
,
double
the y position
contentY
,
double
the width
contentWidth
,
double
the height
contentHeight
)

Overrides javafx.scene.control.SkinBase.layoutChildren.

Called during the layout pass of the scenegraph.

private void
layoutChildrenInfiniteScrolling(double contentX, double contentY, double contentWidth, double contentHeight)

private void
layoutChildrenStatic(double contentX, double contentY, double contentWidth, double contentHeight)

private void
placeLabel(Label label, LocalTime time, double contentX, double contentY, double contentWidth, double contentHeight)

protected void
private void
private void
Inherited from impl.com.calendarfx.view.DayViewBaseSkin:
computeMaxHeightcomputeMinHeightcomputePrefHeight

Field Detail

currentTimeLabelback to summary
private final Label currentTimeLabel
EARLY_HOUR_LABELback to summary
private static final String EARLY_HOUR_LABEL
LATE_HOUR_LABELback to summary
private static final String LATE_HOUR_LABEL
timeLabelsback to summary
private final List<Label> timeLabels

Constructor Detail

TimeScaleViewSkinback to summary
public TimeScaleViewSkin(T view)

Method Detail

computeMinWidthback to summary
protected double computeMinWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)

Overrides javafx.scene.control.SkinBase.computeMinWidth.

Doc from javafx.scene.control.SkinBase.computeMinWidth.

Computes the minimum allowable width of the Skin, based on the provided height.

Parameters
height:double

The height of the Skin, in case this value might dictate the minimum width.

topInset:double

the pixel snapped top inset

rightInset:double

the pixel snapped right inset

bottomInset:double

the pixel snapped bottom inset

leftInset:double

the pixel snapped left inset

Returns:double

A double representing the minimum width of this Skin.

Annotations
@Override
computePrefWidthback to summary
protected double computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)

Overrides javafx.scene.control.SkinBase.computePrefWidth.

Doc from javafx.scene.control.SkinBase.computePrefWidth.

Calculates the preferred width of this SkinBase. The default implementation calculates this width as the width of the area occupied by its managed children when they are positioned at their current positions at their preferred widths.

Parameters
height:double

the height that should be used if preferred width depends on it

topInset:double

the pixel snapped top inset

rightInset:double

the pixel snapped right inset

bottomInset:double

the pixel snapped bottom inset

leftInset:double

the pixel snapped left inset

Returns:double

the calculated preferred width

Annotations
@Override
createTimeLabelback to summary
private Label createTimeLabel()
isShowingTimeMarkerback to summary
protected boolean isShowingTimeMarker()
layoutChildrenback to summary
protected void layoutChildren(double contentX, double contentY, double contentWidth, double contentHeight)

Overrides javafx.scene.control.SkinBase.layoutChildren.

Doc from javafx.scene.control.SkinBase.layoutChildren.

Called during the layout pass of the scenegraph.

Parameters
contentX:double

the x position

contentY:double

the y position

contentWidth:double

the width

contentHeight:double

the height

Annotations
@Override
layoutChildrenInfiniteScrollingback to summary
private void layoutChildrenInfiniteScrolling(double contentX, double contentY, double contentWidth, double contentHeight)
layoutChildrenStaticback to summary
private void layoutChildrenStatic(double contentX, double contentY, double contentWidth, double contentHeight)
placeLabelback to summary
private void placeLabel(Label label, LocalTime time, double contentX, double contentY, double contentWidth, double contentHeight)
setupCurrentTimeMarkerSupportback to summary
protected void setupCurrentTimeMarkerSupport()
updateCurrentTimeMarkerVisibilityback to summary
private void updateCurrentTimeMarkerVisibility()
updateShowMarkersback to summary
private void updateShowMarkers()