Package diva.canvas

Interface CanvasComponent

    • Method Detail

      • getParent

        CanvasComponent getParent()
        Return the parent of this component. Return null if the component does not have a parent.
        Returns:
        The parent of this component.
      • getTransformContext

        TransformContext getTransformContext()
        Return the transform context of the component. If the component has its own transform context, this method should return it, otherwise it should return the transform context of its parent.
        Returns:
        The transform context of this component.
      • repaint

        void repaint()
        Schedule a repaint of the component. This should be called after performing modifications on the component.
      • repaint

        void repaint​(DamageRegion damageRegion)
        Accept notification that a repaint has occurred somewhere in the tree below this component. The component must clear any cached data that depends on its children and forward the notification upwards.
        Parameters:
        damageRegion - The region where a repaint has occurred.