Interface SizeAgent

  • All Superinterfaces:
    Agent, OperationAgent

    public interface SizeAgent
    extends OperationAgent

    The agent of sizing operation. Only Window and Panel support this operation.

    Author:
    pao
    • Method Detail

      • maximize

        void maximize​(boolean maximized)
        To maximize a component's size. If the component isn't maximizable, it will throw exception.
        Parameters:
        maximized - true indicated maximization.
      • minimize

        void minimize​(boolean minimized)
        To minimized component's size. If the component isn't minimizable, it will throw exception.
        Parameters:
        minimized - true indicated minimization.
      • resize

        void resize​(int width,
                    int height)
        To resize a component. If a components doesn't set its width or height, we will set width to 200px and height to 100px.
        Parameters:
        width - new width or specify -1 if no change.
        height - new height or specify -1 if no change.