Search in sources :

Example 6 with DropShadowDecorator

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);
}
Also used : Palette(org.apache.pivot.wtk.Palette) DropShadowDecorator(org.apache.pivot.wtk.effects.DropShadowDecorator)

Example 7 with DropShadowDecorator

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);
}
Also used : FrameButton(org.apache.pivot.wtk.skin.terra.TerraFrameSkin.FrameButton) DropShadowDecorator(org.apache.pivot.wtk.effects.DropShadowDecorator)

Aggregations

DropShadowDecorator (org.apache.pivot.wtk.effects.DropShadowDecorator)7 Button (org.apache.pivot.wtk.Button)1 ButtonPressListener (org.apache.pivot.wtk.ButtonPressListener)1 Frame (org.apache.pivot.wtk.Frame)1 Menu (org.apache.pivot.wtk.Menu)1 MenuPopup (org.apache.pivot.wtk.MenuPopup)1 Palette (org.apache.pivot.wtk.Palette)1 PushButton (org.apache.pivot.wtk.PushButton)1 Sheet (org.apache.pivot.wtk.Sheet)1 SuggestionPopup (org.apache.pivot.wtk.SuggestionPopup)1 Tooltip (org.apache.pivot.wtk.Tooltip)1 FrameButton (org.apache.pivot.wtk.skin.terra.TerraFrameSkin.FrameButton)1