Class ChartItem

java.lang.Object
eu.hansolo.fx.charts.data.ChartItem
All Implemented Interfaces:
Item, Comparable<ChartItem>
Direct Known Subclasses:
CandleChartItem, GraphNode

public class ChartItem extends Object implements Item, Comparable<ChartItem>
  • Property Details

  • Field Details

    • UPDATE_EVENT

      protected final ChartEvt UPDATE_EVENT
    • FINISHED_EVENT

      protected final ChartEvt FINISHED_EVENT
    • SELECTED_EVENT

      protected final ChartEvt SELECTED_EVENT
    • observers

      protected Map<eu.hansolo.toolbox.evt.EvtType,List<eu.hansolo.toolbox.evt.EvtObserver<ChartEvt>>> observers
  • Constructor Details

    • ChartItem

      public ChartItem()
    • ChartItem

      public ChartItem(boolean IS_EMPTY)
    • ChartItem

      public ChartItem(String NAME)
    • ChartItem

      public ChartItem(String NAME, boolean IS_EMPTY)
    • ChartItem

      public ChartItem(double VALUE)
    • ChartItem

      public ChartItem(double VALUE, boolean IS_EMPTY)
    • ChartItem

      public ChartItem(double VALUE, Instant TIMESTAMP)
    • ChartItem

      public ChartItem(double VALUE, Instant TIMESTAMP, boolean IS_EMPTY)
    • ChartItem

      public ChartItem(double VALUE, javafx.scene.paint.Color FILL_COLOR)
    • ChartItem

      public ChartItem(double VALUE, javafx.scene.paint.Color FILL_COLOR, boolean IS_EMPTY)
    • ChartItem

      public ChartItem(String NAME, javafx.scene.paint.Color FILL_COLOR)
    • ChartItem

      public ChartItem(String NAME, javafx.scene.paint.Color FILL_COLOR, boolean IS_EMPTY)
    • ChartItem

      public ChartItem(String NAME, double VALUE)
    • ChartItem

      public ChartItem(String NAME, double VALUE, boolean IS_EMPTY)
    • ChartItem

      public ChartItem(String NAME, double VALUE, Instant TIMESTAMP)
    • ChartItem

      public ChartItem(String NAME, double VALUE, Instant TIMESTAMP, boolean IS_EMPTY)
    • ChartItem

      public ChartItem(String NAME, double VALUE, javafx.scene.paint.Color FILL)
    • ChartItem

      public ChartItem(String NAME, double VALUE, javafx.scene.paint.Color FILL, boolean IS_EMPTY)
    • ChartItem

      public ChartItem(String NAME, double VALUE, javafx.scene.paint.Color FILL, javafx.scene.paint.Color TEXT_FILL)
    • ChartItem

      public ChartItem(String NAME, double VALUE, javafx.scene.paint.Color FILL, javafx.scene.paint.Color TEXT_FILL, boolean IS_EMPTY)
    • ChartItem

      public ChartItem(String NAME, double VALUE, javafx.scene.paint.Color FILL, Instant TIMESTAMP)
    • ChartItem

      public ChartItem(String NAME, double VALUE, javafx.scene.paint.Color FILL, Instant TIMESTAMP, boolean IS_EMPTY)
    • ChartItem

      public ChartItem(String NAME, double VALUE, javafx.scene.paint.Color FILL, javafx.scene.paint.Color TEXT_FILL, Instant TIMESTAMP)
    • ChartItem

      public ChartItem(String NAME, double VALUE, javafx.scene.paint.Color FILL, javafx.scene.paint.Color TEXT_FILL, Instant TIMESTAMP, boolean IS_EMPTY)
    • ChartItem

      public ChartItem(String NAME, double VALUE, javafx.scene.paint.Color FILL, Instant TIMESTAMP, boolean ANIMATED, long ANIMATION_DURATION)
    • ChartItem

      public ChartItem(String NAME, double VALUE, javafx.scene.paint.Color FILL, Instant TIMESTAMP, boolean ANIMATED, long ANIMATION_DURATION, boolean IS_EMPTY)
    • ChartItem

      public ChartItem(String NAME, double VALUE, javafx.scene.paint.Color FILL, javafx.scene.paint.Color TEXT_FILL, Instant TIMESTAMP, boolean ANIMATED, long ANIMATION_DURATION)
    • ChartItem

      public ChartItem(String NAME, double VALUE, javafx.scene.paint.Color FILL, javafx.scene.paint.Color TEXT_FILL, Instant TIMESTAMP, boolean ANIMATED, long ANIMATION_DURATION, boolean IS_EMPTY)
    • ChartItem

      public ChartItem(String NAME, double VALUE, javafx.scene.paint.Color FILL, javafx.scene.paint.Color STROKE, javafx.scene.paint.Color TEXT_FILL, Instant TIMESTAMP, boolean ANIMATED, long ANIMATION_DURATION)
    • ChartItem

      public ChartItem(String NAME, double VALUE, javafx.scene.paint.Color FILL, javafx.scene.paint.Color STROKE, javafx.scene.paint.Color TEXT_FILL, Instant TIMESTAMP, boolean ANIMATED, long ANIMATION_DURATION, boolean IS_EMPTY)
    • ChartItem

      public ChartItem(String NAME, double VALUE, javafx.scene.paint.Color FILL, javafx.scene.paint.Color STROKE, javafx.scene.paint.Color TEXT_FILL, Instant TIMESTAMP, boolean ANIMATED, long ANIMATION_DURATION, boolean IS_EMPTY, Metadata METADATA)
  • Method Details

    • getIndex

      public int getIndex()
      Gets the value of the property index.
      Property description:
    • setIndex

      public void setIndex(int index)
      Sets the value of the property index.
      Property description:
    • indexProperty

      public javafx.beans.property.IntegerProperty indexProperty()
      See Also:
    • getName

      public String getName()
      Gets the value of the property name.
      Specified by:
      getName in interface Item
      Property description:
    • setName

      public void setName(String NAME)
      Sets the value of the property name.
      Property description:
    • nameProperty

      public javafx.beans.property.StringProperty nameProperty()
      See Also:
    • getUnit

      public String getUnit()
      Gets the value of the property unit.
      Property description:
    • setUnit

      public void setUnit(String UNIT)
      Sets the value of the property unit.
      Property description:
    • unitProperty

      public javafx.beans.property.StringProperty unitProperty()
      See Also:
    • getDescription

      public String getDescription()
      Gets the value of the property description.
      Property description:
    • setDescription

      public void setDescription(String DESCRIPTION)
      Sets the value of the property description.
      Property description:
    • descriptionProperty

      public javafx.beans.property.StringProperty descriptionProperty()
      See Also:
    • getCategory

      public Category getCategory()
      Gets the value of the property category.
      Property description:
    • setCategory

      public void setCategory(Category CATEGORY)
      Sets the value of the property category.
      Property description:
    • categoryProperty

      public javafx.beans.property.ObjectProperty<Category> categoryProperty()
      See Also:
    • getValue

      public double getValue()
      Gets the value of the property value.
      Property description:
    • setValue

      public void setValue(double VALUE)
      Sets the value of the property value.
      Property description:
    • valueProperty

      public javafx.beans.property.DoubleProperty valueProperty()
      See Also:
    • getOldValue

      public double getOldValue()
    • getFill

      public javafx.scene.paint.Color getFill()
      Gets the value of the property fill.
      Specified by:
      getFill in interface Item
      Property description:
    • setFill

      public void setFill(javafx.scene.paint.Color FILL)
      Sets the value of the property fill.
      Property description:
    • fillProperty

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

      public javafx.scene.paint.Color getStroke()
      Gets the value of the property stroke.
      Specified by:
      getStroke in interface Item
      Property description:
    • setStroke

      public void setStroke(javafx.scene.paint.Color STROKE)
      Sets the value of the property stroke.
      Property description:
    • strokeProperty

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

      public javafx.scene.paint.Color getTextFill()
      Gets the value of the property textFill.
      Property description:
    • setTextFill

      public void setTextFill(javafx.scene.paint.Color COLOR)
      Sets the value of the property textFill.
      Property description:
    • textFillProperty

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

      public Symbol getSymbol()
      Gets the value of the property symbol.
      Specified by:
      getSymbol in interface Item
      Property description:
    • setSymbol

      public void setSymbol(Symbol SYMBOL)
      Sets the value of the property symbol.
      Specified by:
      setSymbol in interface Item
      Property description:
    • symbolProperty

      public javafx.beans.property.ObjectProperty<Symbol> symbolProperty()
      See Also:
    • getTimestamp

      public Instant getTimestamp()
      Gets the value of the property timestamp.
      Property description:
    • setTimestamp

      public void setTimestamp(ZonedDateTime TIMESTAMP)
      Sets the value of the property timestamp.
      Property description:
    • setTimestamp

      public void setTimestamp(long TIMESTAMP_EPOCH_SECOND)
    • setTimestamp

      public void setTimestamp(Instant TIMESTAMP)
    • timestampProperty

      public javafx.beans.property.ObjectProperty<Instant> timestampProperty()
      See Also:
    • getTimestampAdDateTime

      public ZonedDateTime getTimestampAdDateTime()
    • getTimestampAsDateTime

      public ZonedDateTime getTimestampAsDateTime(ZoneId ZONE_ID)
    • getTimestampAsLocalDate

      public LocalDate getTimestampAsLocalDate()
    • getTimestampAsLocalDate

      public LocalDate getTimestampAsLocalDate(ZoneId ZONE_ID)
    • isAnimated

      public boolean isAnimated()
      Gets the value of the property animated.
      Property description:
    • setAnimated

      public void setAnimated(boolean ANIMATED)
      Sets the value of the property animated.
      Property description:
    • animatedProperty

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

      public double getX()
      Gets the value of the property x.
      Property description:
    • setX

      public void setX(double X)
      Sets the value of the property x.
      Property description:
    • xProperty

      public javafx.beans.property.DoubleProperty xProperty()
      See Also:
    • getY

      public double getY()
      Gets the value of the property y.
      Property description:
    • setY

      public void setY(double Y)
      Sets the value of the property y.
      Property description:
    • yProperty

      public javafx.beans.property.DoubleProperty yProperty()
      See Also:
    • isEmptyItem

      public boolean isEmptyItem()
      Specified by:
      isEmptyItem in interface Item
    • setIsEmpty

      public void setIsEmpty(boolean isEmpty)
    • isEmptyProperty

      public javafx.beans.property.BooleanProperty isEmptyProperty()
    • isSelected

      public boolean isSelected()
      Gets the value of the property selected.
      Property description:
    • setSelected

      public void setSelected(boolean selected)
      Sets the value of the property selected.
      Property description:
    • selectedProperty

      public javafx.beans.property.BooleanProperty selectedProperty()
      See Also:
    • getMetadata

      public Metadata getMetadata()
      Gets the value of the property metadata.
      Property description:
    • setMetadata

      public void setMetadata(Metadata metadata)
      Sets the value of the property metadata.
      Property description:
    • metadataProperty

      public javafx.beans.property.ObjectProperty<Metadata> metadataProperty()
      See Also:
    • getAnimationDuration

      public long getAnimationDuration()
    • setAnimationDuration

      public void setAnimationDuration(long DURATION)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • compareTo

      public int compareTo(ChartItem ITEM)
      Specified by:
      compareTo in interface Comparable<ChartItem>
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • addChartEvtObserver

      public void addChartEvtObserver(eu.hansolo.toolbox.evt.EvtType type, eu.hansolo.toolbox.evt.EvtObserver<ChartEvt> observer)
    • removeChartEvtObserver

      public void removeChartEvtObserver(eu.hansolo.toolbox.evt.EvtType type, eu.hansolo.toolbox.evt.EvtObserver<ChartEvt> observer)
    • removeAllChartEvtObservers

      public void removeAllChartEvtObservers()
    • fireChartEvt

      public void fireChartEvt(ChartEvt evt)