Class DistributionsEditor.BurstRenderer

java.lang.Object
common.editors.DistributionsEditor.BurstRenderer
Enclosing class:
DistributionsEditor

protected class DistributionsEditor.BurstRenderer extends Object
Class encapsulation methods to render Burst parameters
Author:
Peter Parapatics, Federico Dal Castello
  • Constructor Details

    • BurstRenderer

      public BurstRenderer()
  • Method Details

    • addInterval

      protected void addInterval(String name, JPanel panel)
      Renders the border and the position of the given panel and adds it to the scrolled panel
      Parameters:
      name - The name of the Interval
      panel - The panel which will contain the interval
    • addDistribution

      protected void addDistribution(String name, int key, JPanel intervalPanel)
      Adds a distribution to the given panel
      Parameters:
      name - the name to be displayed on the label before the distribution
      key - to which parameter number in the Burst Distribution this nested distribution corresponds
      intervalPanel - the panel to which the distribution should be added
    • addProbability

      protected void addProbability(Container intervalPanel, boolean intervalA)
      Add a probability to an interval Panel If the probability is for interval B the value is displayed as 1-probability
      Parameters:
      intervalPanel - the intervalPanel
      intervalA - if the probability is for interval A or B
    • addRoundRobin

      protected void addRoundRobin(Container intervalPanel)
      Adds a Round-Robin checkbox to an interval panel
      Parameters:
      intervalPanel - the interval panel