Class RampEntry

java.lang.Object
com.ardor3d.extension.effect.particle.RampEntry
All Implemented Interfaces:
Savable

public class RampEntry extends Object implements Savable
RampEntry defines an entry for a ParticleAppearanceRamp.
See Also:
  • Field Details

    • DEFAULT_OFFSET

      public static final double DEFAULT_OFFSET
      See Also:
    • DEFAULT_SIZE

      public static final double DEFAULT_SIZE
      See Also:
    • DEFAULT_SPIN

      public static final double DEFAULT_SPIN
      See Also:
    • DEFAULT_MASS

      public static final double DEFAULT_MASS
      See Also:
    • DEFAULT_COLOR

      public static final ColorRGBA DEFAULT_COLOR
    • _offset

      protected double _offset
    • _color

      protected ColorRGBA _color
    • _size

      protected double _size
    • _spin

      protected double _spin
    • _mass

      protected double _mass
  • Constructor Details

    • RampEntry

      public RampEntry()
    • RampEntry

      public RampEntry(double offset)
      Construct new addition to color ramp
      Parameters:
      offset - amount of time (as a percent of total lifetime) between the last appearance and this one.
  • Method Details

    • getColor

      public ReadOnlyColorRGBA getColor()
    • setColor

      public void setColor(ReadOnlyColorRGBA color)
    • hasColorSet

      public boolean hasColorSet()
    • getSize

      public double getSize()
    • setSize

      public void setSize(double size)
    • hasSizeSet

      public boolean hasSizeSet()
    • getSpin

      public double getSpin()
    • setSpin

      public void setSpin(double spin)
    • hasSpinSet

      public boolean hasSpinSet()
    • getMass

      public double getMass()
    • setMass

      public void setMass(double mass)
    • hasMassSet

      public boolean hasMassSet()
    • getOffset

      public double getOffset()
    • setOffset

      public void setOffset(double offset)
    • getClassTag

      public Class<? extends RampEntry> getClassTag()
      Specified by:
      getClassTag in interface Savable
    • read

      public void read(InputCapsule capsule) throws IOException
      Specified by:
      read in interface Savable
      Throws:
      IOException
    • write

      public void write(OutputCapsule capsule) throws IOException
      Specified by:
      write in interface Savable
      Throws:
      IOException
    • toString

      public String toString()
      Overrides:
      toString in class Object