public interface ControlThemeAdapter
Control
s. The theme adapter provides a control
with information on characteristics of its representation which depend on the
current theme.Modifier and Type | Method and Description |
---|---|
Color |
getBackground(Control control)
Returns the default background color that the specified control will use if
no user-defined background color has been set using
Control.setBackground(Color) . |
BoxDimensions |
getBorder(Control control)
Returns the border of the specified control.
|
Font |
getFont(Control control)
Returns the default font that the specified control will use to paint
textual information when no user-defined font has been set using
Control.setFont(Font) . |
Color |
getForeground(Control control)
Returns the default foreground color that the specified control will use to
draw if no user defined foreground color has been set using
Control.setForeground(Color) . |
BoxDimensions |
getPadding(Control control)
Returns the padding of the specified control.
|
BoxDimensions getBorder(Control control)
control
- the control whose border is requestedBoxDimensions getPadding(Control control)
control
- the control whose padding is requestedColor getForeground(Control control)
Control.setForeground(Color)
.control
- the control whose foreground color is requestedColor getBackground(Control control)
Control.setBackground(Color)
.control
- the control whose background color is requestedFont getFont(Control control)
Control.setFont(Font)
.control
- the control whose font is requested
Copyright (c) EclipseSource and others 2002, 2020.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0