Class Distribution.TraitCommand

Object
TraitCommand
All Implemented Interfaces:
Scheduler.ScheduledCommand, Command
Enclosing class:
Distribution

public class Distribution.TraitCommand extends Object implements Command
Command to toggle the inclusion of a trait on the phase plane axis.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) int
    The axis that this command affects.
    (package private) int
    The index of the trait to show on the axis.
    (package private) ContextMenuCheckBoxItem[]
    The list of traits to toggle.
    static final int
    The index of the horizontal axis.
    static final int
    The index of the vertical axis.
  • Constructor Summary

    Constructors
    Constructor
    Description
    TraitCommand(ContextMenuCheckBoxItem[] traitItems, int idx, int axis)
    Construct a new command to toggle the inclusion of a trait on either one of the phase plane axis.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • X_AXIS

      public static final int X_AXIS
      The index of the horizontal axis.
      See Also:
    • Y_AXIS

      public static final int Y_AXIS
      The index of the vertical axis.
      See Also:
    • idx

      int idx
      The index of the trait to show on the axis.
    • axis

      int axis
      The axis that this command affects.
    • traitItems

      The list of traits to toggle.
  • Constructor Details

    • TraitCommand

      public TraitCommand(ContextMenuCheckBoxItem[] traitItems, int idx, int axis)
      Construct a new command to toggle the inclusion of a trait on either one of the phase plane axis.
      Parameters:
      traitItems - the list of traits to toggle
      idx - the index of the trait to show/hide on the axis
      axis - the index of the axis
  • Method Details