Class Debugger

  • All Implemented Interfaces:

    
    public final class Debugger
    
                        

    the debug utilities for PolyUI.

    Contains various methods for performance monitoring, debugging component, printing state and more.

    Since:

    1.1.7

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      Debugger(PolyUI polyUI)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Integer getFps()
      final Double getLongestFrame()
      final Double getShortestFrame()
      final Double getAvgFrame()
      final Unit takeReadings()
      final Unit render()
      final String debugString() return a string of this PolyUI instance's components and children in a list, like this:
      PolyUI(800.0 x 800.0) with 0 components and 2 layouts:
        PixelLayout@5bcab519 [Draggable](20.0x570.0, 540.0 x 150.0)
      	 Text@6eebc39e(40.0x570.0, 520.0x32.0)
      	 Block@2f686d1f(40.0x600.0, 120.0x120.0)
      	 Block@7085bdee(220.0x600.0, 120.0x120.0)
      	 Image@6fd02e5(400.0x600.0, 120.0x120.0 (auto))
      	 ... 2 more
        FlexLayout@73846619 [Scrollable](20.0x30.0, 693.73267 x 409.47168, buffered, needsRedraw)
      	 Block@32e6e9c3(20.0x30.0, 61.111263x42.21167)
      	 Block@5056dfcb(86.11127x30.0, 40.909004x76.32132)
      	 Block@6574b225(132.02026x30.0, 52.75415x52.59597)
      	 Block@2669b199(189.77441x30.0, 76.59671x45.275665)
      final Unit openDebugWindow(Component d)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Debugger

        Debugger(PolyUI polyUI)
    • Method Detail

      • debugString

         final String debugString()

        return a string of this PolyUI instance's components and children in a list, like this:

        PolyUI(800.0 x 800.0) with 0 components and 2 layouts:
          PixelLayout@5bcab519 [Draggable](20.0x570.0, 540.0 x 150.0)
        	 Text@6eebc39e(40.0x570.0, 520.0x32.0)
        	 Block@2f686d1f(40.0x600.0, 120.0x120.0)
        	 Block@7085bdee(220.0x600.0, 120.0x120.0)
        	 Image@6fd02e5(400.0x600.0, 120.0x120.0 (auto))
        	 ... 2 more
          FlexLayout@73846619 [Scrollable](20.0x30.0, 693.73267 x 409.47168, buffered, needsRedraw)
        	 Block@32e6e9c3(20.0x30.0, 61.111263x42.21167)
        	 Block@5056dfcb(86.11127x30.0, 40.909004x76.32132)
        	 Block@6574b225(132.02026x30.0, 52.75415x52.59597)
        	 Block@2669b199(189.77441x30.0, 76.59671x45.275665)