Search in sources :

Example 1 with TagDecorator

use of org.apache.pivot.wtk.effects.TagDecorator in project pivot by apache.

the class TagDecoratorTest method startup.

@Override
public void startup(final Display display, final Map<String, String> properties) throws Exception {
    frame = new Frame();
    frame.setTitle("Tag Decorator Test");
    frame.setPreferredSize(480, 360);
    Image tag = Image.load(getClass().getResource("go-home.png"));
    frame.getDecorators().add(new TagDecorator(tag, HorizontalAlignment.RIGHT, VerticalAlignment.TOP, 10, -10));
    frame.open(display);
}
Also used : Frame(org.apache.pivot.wtk.Frame) TagDecorator(org.apache.pivot.wtk.effects.TagDecorator) Image(org.apache.pivot.wtk.media.Image)

Aggregations

Frame (org.apache.pivot.wtk.Frame)1 TagDecorator (org.apache.pivot.wtk.effects.TagDecorator)1 Image (org.apache.pivot.wtk.media.Image)1