Class Zone

java.lang.Object
com.mojang.jtracy.Zone
All Implemented Interfaces:
AutoCloseable

public class Zone extends Object implements AutoCloseable
  • Method Details

    • addText

      public Zone addText(String text)
      Associate some text with this zone. Multiple texts can be added to the same zone.
      Parameters:
      text - Text to associate
      Returns:
      This zone, for builder-style creation
    • setColor

      public Zone setColor(int color)
      Associate a specific color with this zone.

      Color should be in 0xRRGGBB style. A value of 0 means "no color", rather than black. Use (e.g.) 0x000001 for black. Only one color may be attached to the zone.

      Parameters:
      color - Color to associate
      Returns:
      This zone, for builder-style creation
    • addValue

      public Zone addValue(long value)
      Adds a value to this zone. Multiple values may be added to a zone.

      This is similar to adding a text with the specific value, but is optimised for numbers.

      Parameters:
      value - Value to associate
      Returns:
      This zone, for builder-style creation
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable