Klasse DatelineCell<T extends TemporalUnit>

Typparameter:
T - the type of the temporal unit, e.g. ChronoUnit / SimpleUnit
Alle implementierten Schnittstellen:
Styleable, EventTarget
Bekannte direkte Unterklassen:
ChronoUnitDatelineCell, SimpleUnitDatelineCell

public abstract class DatelineCell<T extends TemporalUnit> extends Region
Each row / scale in the Dateline consists of several cells. A cell is a region with a child node of type Text.

Dateline Cell
Seit:
1.0
  • Konstruktordetails

    • DatelineCell

      protected DatelineCell()
      Constructs a new dateline cell.
  • Methodendetails

    • update

      public void update(Instant startTime, Instant endTime, Resolution<T> resolution, Dateline dateline, Resolution.Position position)
      Updates the cell to represent the given interval and scale position.
      Parameter:
      startTime - the interval start time
      endTime - the interval end time
      resolution - the resolution shown by the cell
      dateline - the owning dateline
      position - the scale position of the cell
    • layoutChildren

      protected void layoutChildren()
      Lays out the cell label within the available bounds.
      Setzt außer Kraft:
      layoutChildren in Klasse Parent
    • computePrefWidth

      protected double computePrefWidth(double height)
      Computes the preferred width of the cell.
      Setzt außer Kraft:
      computePrefWidth in Klasse Region
      Parameter:
      height - the available height
      Gibt zurück:
      the preferred width
    • computePrefHeight

      protected double computePrefHeight(double width)
      Computes the preferred height of the cell.
      Setzt außer Kraft:
      computePrefHeight in Klasse Region
      Parameter:
      width - the available width
      Gibt zurück:
      the preferred height
    • setText

      protected void setText(String txt)
      Sets the text shown by the cell.
      Parameter:
      txt - the text to display
    • getResolution

      public final Resolution<T> getResolution()
      Returns the resolution currently shown by the cell.
      Gibt zurück:
      the displayed resolution
    • getDateline

      public final Dateline getDateline()
      Returns the dateline that owns the cell.
      Gibt zurück:
      the owning dateline
    • getStartTime

      public final Instant getStartTime()
      Returns the start time shown by the cell.
      Gibt zurück:
      the interval start time
    • getEndTime

      public final Instant getEndTime()
      Returns the end time shown by the cell.
      Gibt zurück:
      the interval end time
    • getInterval

      public final TimeInterval getInterval()
      Returns the time interval represented by the cell.
      Gibt zurück:
      the represented time interval
    • getScalePosition

      public final Resolution.Position getScalePosition()
      Returns the scale position represented by the cell.
      Gibt zurück:
      the scale position