use of org.apache.pivot.wtk.effects.DropShadowDecorator in project pivot by apache.
the class TerraPaletteSkin method install.
@Override
public void install(Component component) {
super.install(component);
Palette palette = (Palette) component;
palette.add(titleBarTablePane);
if (!themeIsFlat()) {
// Attach the drop-shadow decorator
dropShadowDecorator = new DropShadowDecorator();
palette.getDecorators().add(dropShadowDecorator);
}
palette.add(resizeHandle);
titleChanged(palette, null);
}
use of org.apache.pivot.wtk.effects.DropShadowDecorator in project pivot by apache.
the class FakeWindowSkin method install.
@Override
public void install(Component component) {
super.install(component);
FakeWindow window = (FakeWindow) component;
window.getWindowListeners().add(this);
FakeWindow frame = (FakeWindow) getComponent();
// Attach the drop-shadow decorator
dropShadowDecorator = new DropShadowDecorator();
frame.getDecorators().add(dropShadowDecorator);
frame.add(titleBarTablePane);
// Create the frame buttons
minimizeButton = new FrameButton(minimizeImage);
maximizeButton = new FrameButton(maximizeImage);
closeButton = new FrameButton(closeImage);
buttonBoxPane.add(minimizeButton);
buttonBoxPane.add(maximizeButton);
buttonBoxPane.add(closeButton);
iconAdded(frame, null);
titleChanged(frame, null);
}
Aggregations