Package com.androidplot.ui
Interface Resizable
-
- All Implemented Interfaces:
public interface ResizableUsed 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.
-
-
Method Summary
Modifier and Type Method Description abstract voidlayout(@NonNull() DisplayDimensions dims)Called when a change to the class' dimensions is made. -
-
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.
-
-
-
-