Package games.stendhal.client.gui
Interface ComponentPaintCache.Cacheable
- All Known Implementing Classes:
ImageViewWindow,InternalManagedWindow,InternalWindow,SlotWindow,Spells
- Enclosing class:
- ComponentPaintCache
public static interface ComponentPaintCache.Cacheable
Interface for components that use
ComponentPaintCache.
JComponents support by default all but
paintComponent(Graphics) and paintBorder(Graphics),
which are by default protected-
Method Summary
Modifier and TypeMethodDescriptionGet the component graphics configuration.intGet the total height of the component, including borders.intgetWidth()Get the total width of the component, including borders.voidpaintBorder(Graphics g)Paint the component border.voidPaint everything, including the child components.voidPaint the component.
-
Method Details
-
getWidth
int getWidth()Get the total width of the component, including borders.- Returns:
- component width.
-
getHeight
int getHeight()Get the total height of the component, including borders.- Returns:
- component height.
-
paintComponent
Paint the component.- Parameters:
g- graphics
-
paintBorder
Paint the component border.- Parameters:
g- graphics
-
paintChildren
Paint everything, including the child components.- Parameters:
g- graphics
-
getGraphicsConfiguration
GraphicsConfiguration getGraphicsConfiguration()Get the component graphics configuration.- Returns:
- graphics configuration
-