C
- component typepublic abstract class AbstractComponentPreview<C extends Component> extends Object implements ComponentPreview<C>
Modifier and Type | Field and Description |
---|---|
static ImageIcon |
dialogType |
static ImageIcon |
frameType
Additional type icons.
|
static ImageIcon |
glassPaneType |
protected static String |
hiddenColor |
protected static String |
marginColor |
static ImageIcon |
opaque
Opaque icon.
|
protected static String |
paddingColor |
protected static Map<String,Icon> |
stackIconCache
Merged icons cache.
|
protected static String |
styleIdColor |
static ImageIcon |
unknownType |
protected static String |
visibleAwtColor |
protected static String |
visibleColor
Basic style guidelines.
|
static ImageIcon |
windowType |
Constructor and Description |
---|
AbstractComponentPreview() |
Modifier and Type | Method and Description |
---|---|
Icon |
getIcon(C component)
Returns icon for the specified
Component . |
protected abstract Icon |
getIconImpl(C component)
Returns actual icon for the specified component.
|
protected String |
getTitleColor(C component)
Returns main title foreground color.
|
protected String |
renderInsets(Insets insets,
String color)
Creates and returns
Insets text. |
protected String |
renderLayout(LayoutManager layout)
Creates and returns
LayoutManager text. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getText
public static final ImageIcon opaque
public static final ImageIcon frameType
public static final ImageIcon dialogType
public static final ImageIcon windowType
public static final ImageIcon glassPaneType
public static final ImageIcon unknownType
protected static final String visibleColor
protected static final String visibleAwtColor
protected static final String hiddenColor
protected static final String styleIdColor
protected static final String marginColor
protected static final String paddingColor
@NotNull public Icon getIcon(@NotNull C component)
ComponentPreview
Component
.@NotNull protected abstract Icon getIconImpl(@NotNull C component)
component
- component to provide icon for@NotNull protected String getTitleColor(@NotNull C component)
component
- inspected component@NotNull protected String renderLayout(@Nullable LayoutManager layout)
LayoutManager
text.layout
- LayoutManager
LayoutManager
textCopyright © 2020. All rights reserved.