Class StockEventsSettings

java.lang.Object
io.jmix.charts.model.AbstractChartObject
io.jmix.charts.model.stock.StockEventsSettings
All Implemented Interfaces:
Serializable

public class StockEventsSettings extends AbstractChartObject
Defines set of properties for all StockEvents.
See documentation for properties of StockEventsSettings JS object.
http://docs.amcharts.com/3/javascriptstockchart/StockEventsSettings
See Also:
  • Constructor Details

    • StockEventsSettings

      public StockEventsSettings()
  • Method Details

    • getBackgroundAlpha

      public Double getBackgroundAlpha()
      Returns:
      opacity of bullet background
    • setBackgroundAlpha

      @StudioProperty(defaultValue="1") @Max(1L) @Min(0L) public @Max(1L) @Min(0L) StockEventsSettings setBackgroundAlpha(Double backgroundAlpha)
      Sets opacity of bullet background. If not set the default value is 1.
      Parameters:
      backgroundAlpha - opacity
      Returns:
      stock event settings
    • getBackgroundColor

      public Color getBackgroundColor()
      Returns:
      color of bullet background
    • setBackgroundColor

      @StudioProperty(type=OPTIONS, defaultValue="#DADADA") public StockEventsSettings setBackgroundColor(Color backgroundColor)
      Sets color of bullet background. If not set the default value is #DADADA.
      Parameters:
      backgroundColor - color
      Returns:
      stock event settings
    • getBalloonColor

      public Color getBalloonColor()
      Returns:
      color for a roll-over balloon
    • setBalloonColor

      @StudioProperty(type=OPTIONS, defaultValue="#CC0000") public StockEventsSettings setBalloonColor(Color balloonColor)
      Sets color for a roll-over balloon. If not set the default value is #CC0000.
      Parameters:
      balloonColor - balloon color
      Returns:
      stock event settings
    • getBorderAlpha

      public Double getBorderAlpha()
      Returns:
      opacity of bullet border
    • setBorderAlpha

      @StudioProperty(defaultValue="1") @Max(1L) @Min(0L) public @Max(1L) @Min(0L) StockEventsSettings setBorderAlpha(Double borderAlpha)
      Sets opacity of bullet border. If not set the default value is 1.
      Parameters:
      borderAlpha - opacity
      Returns:
      stock event settings
    • getBorderColor

      public Color getBorderColor()
      Returns:
      bullet border color
    • setBorderColor

      @StudioProperty(type=OPTIONS, defaultValue="#888888") public StockEventsSettings setBorderColor(Color borderColor)
      Sets bullet border color. If not set the default value is #888888.
      Parameters:
      borderColor - color
      Returns:
      stock event settings
    • getRollOverColor

      public Color getRollOverColor()
      Returns:
      roll-over background color
    • setRollOverColor

      @StudioProperty(type=OPTIONS, defaultValue="#CC0000") public StockEventsSettings setRollOverColor(Color rollOverColor)
      Sets roll-over background color. If not set the default value is #CC0000.
      Parameters:
      rollOverColor - color
      Returns:
      stock event settings
    • getShowAt

      public String getShowAt()
      Returns:
      showAt string
    • setShowAt

      @StudioProperty(type=OPTIONS, options={"open","close","low","high"}, defaultValue="close") public StockEventsSettings setShowAt(String showAt)
      Allows placing event bullets at "open", "close", "low", "high" values. If not set the default value is "close".
      Parameters:
      showAt - showAt string
      Returns:
      stock event settings
    • getType

      public StockEventType getType()
      Returns:
      type of bullet
    • setType

      Sets type of bullet. If not set the default value is SIGN.
      Parameters:
      type - type
      Returns:
      stock event settings