Interface GlimpseTarget

    • Method Detail

      • isVisible

        boolean isVisible()
        If true, the GlimpseTarget should be drawn on the screen and mouse events should be dispatched for it. Otherwise it is invisible and mouse events should not fire for the GlimpseTarget or its children.
      • isEventConsumer

        boolean isEventConsumer()
        Sets whether this GlimpseTarget hides events from GlimpseTargets under it. This value does not determine whether or not the GlimpseTarget will generate GlimpseMouseEvents (see {@link #isEventGenerator()).
        Returns:
        whether this target hides events from targets under it
      • setEventConsumer

        void setEventConsumer​(boolean consume)
        Set whether or not this GlimpseTarget will consume or pass through mouse events.
        Parameters:
        consume -
      • isEventGenerator

        boolean isEventGenerator()
        Sets whether this GlimpseTarget generates GlimpseMouseEvents. This value does not determine whether or not GlimpseTargets underneath this GlimpseTarget will also generate GlimpseMouseEvents (see isEventConsumer()).
        Returns:
        whether this target will generate GlimpseMouseEvents
      • setEventGenerator

        void setEventGenerator​(boolean generate)
        Set whether or not this GlimpseTarget will generate GlimpseMouseEvents.
        Parameters:
        generate -
      • addLayout

        void addLayout​(GlimpseLayout layout)
        Adds a sub-layout to this GlimpseTarget which will only paint in a region of this GlimpseTarget based on its layout constraints. This same GlimpseLayout may be a child of any number of different GlimpseTargets.
        Parameters:
        layout -
      • addLayout

        void addLayout​(GlimpseLayout layout,
                       int zOrder)
      • setZOrder

        void setZOrder​(GlimpseLayout layout,
                       int zOrder)
      • removeLayout

        void removeLayout​(GlimpseLayout layout)
        Removes a previously added layout from this GlimpseTarget.
        Parameters:
        layout -
      • removeAllLayouts

        void removeAllLayouts()
        Clears the canvas, removing all attached GlimpseLayouts.
      • getTargetChildren

        List<GlimpseTarget> getTargetChildren()
        Returns:
        the list of children added through addLayout( GlimpseLayout ).
      • getTargetBounds

        GlimpseBounds getTargetBounds​(GlimpseTargetStack stack)
        Returns the cached or calculated bounds of this GlimpseTarget for a particular context.
        Parameters:
        stack -
        Returns:
        the bounds for the given stack
      • setLookAndFeel

        void setLookAndFeel​(LookAndFeel laf)
        Sets the LookAndFeel for this GlimpseTarget and all child GlimpseTargets.