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.
        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.
        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.
        damageRegion - The region where a repaint has occurred.