Class PlotItem

java.lang.Object
eu.hansolo.fx.charts.data.PlotItem
All Implemented Interfaces:
Item, Comparable<PlotItem>

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

  • Constructor Details

    • PlotItem

      public PlotItem()
    • PlotItem

      public PlotItem(boolean IS_EMPTY)
    • PlotItem

      public PlotItem(String NAME, double VALUE)
    • PlotItem

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

      public PlotItem(String NAME, javafx.scene.paint.Color COLOR)
    • PlotItem

      public PlotItem(String NAME, javafx.scene.paint.Color COLOR, boolean IS_EMPTY)
    • PlotItem

      public PlotItem(String NAME, javafx.scene.paint.Color COLOR, int LEVEL)
    • PlotItem

      public PlotItem(String NAME, javafx.scene.paint.Color COLOR, int LEVEL, boolean IS_EMPTY)
    • PlotItem

      public PlotItem(String NAME, double VALUE, javafx.scene.paint.Color COLOR)
    • PlotItem

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

      public PlotItem(String NAME, double VALUE, javafx.scene.paint.Color COLOR, int LEVEL)
    • PlotItem

      public PlotItem(String NAME, double VALUE, javafx.scene.paint.Color COLOR, int LEVEL, boolean IS_EMPTY)
    • PlotItem

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

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

      public PlotItem(String NAME, double VALUE, String DESCRIPTION, javafx.scene.paint.Color FILL, int LEVEL)
    • PlotItem

      public PlotItem(String NAME, double VALUE, String DESCRIPTION, javafx.scene.paint.Color FILL, int LEVEL, boolean IS_EMPTY)
  • Method Details

    • 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:
    • 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:
    • 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:
    • 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:
    • getConnectionFill

      public javafx.scene.paint.Color getConnectionFill()
      Gets the value of the property connectionFill.
      Property description:
    • connectionFillProperty

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

      public javafx.scene.paint.Color getTextColor()
      Gets the value of the property textColor.
      Property description:
    • setTextColor

      public void setTextColor(javafx.scene.paint.Color TEXT_COLOR)
      Sets the value of the property textColor.
      Property description:
    • textColorProperty

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

      public javafx.scene.text.Font getFont()
      Gets the value of the property font.
      Property description:
    • setFont

      public void setFont(javafx.scene.text.Font FONT)
      Sets the value of the property font.
      Property description:
    • fontProperty

      public javafx.beans.property.ObjectProperty<javafx.scene.text.Font> fontProperty()
      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:
    • isEmptyItem

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

      public void setIsEmpty(boolean isEmpty)
    • isEmptyProperty

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

      public Position getVerticalTextPosition()
      Gets the value of the property verticalTextPosition.
      Property description:
    • setVerticalTextPosition

      public void setVerticalTextPosition(Position verticalTextPosition)
      Sets the value of the property verticalTextPosition.
      Property description:
    • verticalTextPositionProperty

      public javafx.beans.property.ObjectProperty<Position> verticalTextPositionProperty()
      See Also:
    • getSumOfIncoming

      public double getSumOfIncoming()
    • getSumOfOutgoing

      public double getSumOfOutgoing()
    • getMaxSum

      public double getMaxSum()
    • getOutgoing

      public Map<PlotItem,Double> getOutgoing()
    • setOutgoing

      public void setOutgoing(Map<PlotItem,Double> OUTGOING)
    • addToOutgoing

      public void addToOutgoing(PlotItem ITEM, double VALUE)
    • removeFromOutgoing

      public void removeFromOutgoing(PlotItem ITEM)
    • clearOutgoing

      public void clearOutgoing()
    • hasOutgoing

      public boolean hasOutgoing()
    • getIncoming

      public Map<PlotItem,Double> getIncoming()
    • setIncoming

      protected void setIncoming(Map<PlotItem,Double> INCOMING)
    • addToIncoming

      protected void addToIncoming(PlotItem ITEM, double VALUE)
    • removeFromIncoming

      protected void removeFromIncoming(PlotItem ITEM)
    • clearIncoming

      protected void clearIncoming()
    • hasIncoming

      public boolean hasIncoming()
    • getIncomingValueFrom

      public double getIncomingValueFrom(PlotItem INCOMING_ITEM)
    • getOutgoingValueTo

      public double getOutgoingValueTo(PlotItem OUTGOING_ITEM)
    • isRoot

      public boolean isRoot()
    • isLeaf

      public boolean isLeaf()
    • getLevel

      public int getLevel()
    • setLevel

      public void setLevel(int LEVEL)
    • getCluster

      public Cluster getCluster()
    • setCluster

      public void setCluster(Cluster CLUSTER)
    • sortOutgoingByGivenList

      public void sortOutgoingByGivenList(List<PlotItem> LIST_WITH_SORTED_ITEMS)
    • sortIncomingByGivenList

      public void sortIncomingByGivenList(List<PlotItem> LIST_WITH_SORTED_ITEMS)
    • compareTo

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

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

      public int hashCode()
      Overrides:
      hashCode 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)