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.int
Get the total height of the component, including borders.int
getWidth()
Get the total width of the component, including borders.void
paintBorder(Graphics g)
Paint the component border.void
Paint everything, including the child components.void
Paint 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
-