Interface Resizable

  • All Implemented Interfaces:

    
    public interface Resizable
    
                        

    Used by classes that depend on dimensional values to lay themselves out and draw. Consideration should be given to synchronizing with any draw routines that also exist within the class.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract void layout(@NonNull() DisplayDimensions dims) Called when a change to the class' dimensions is made.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • layout

         abstract void layout(@NonNull() DisplayDimensions dims)

        Called when a change to the class' dimensions is made. This method is responsible for cascading calls to update for any logical children of this class, for example the Plot class is responsible for updating the LayoutManager. Note that while dims is marked final in this interface, the compiler will not enforce it. Implementors of this method should take care not to make changes to dims as this will affect parent Resizables in likely undesired ways.