Interface Visual

    • Method Detail

      • getWidth

        int getWidth()
        Returns the visual's width.
        Returns:
        Current width of this visual.
      • getHeight

        int getHeight()
        Returns the visual's height.
        Returns:
        Current height of this visual.
      • getSize

        default Dimensions getSize()
        Default method to return the visual's complete size via a Dimensions object. Note that if the width and height calculations for a particular object are lengthy and could be better done together rather than separately, that component should be free to override this default implementation.
        Returns:
        The visual's complete size.
      • getBaseline

        int getBaseline()
        Returns the visual's baseline.
        Returns:
        The baseline relative to the origin of the visual, or -1 if this visual does not have a baseline.
      • paint

        void paint​(java.awt.Graphics2D graphics)
        Paints the visual.
        Parameters:
        graphics - The graphics context in which to paint the visual.