All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ardor3d.extension.ui.backdrop.EmptyBackdrop Maven / Gradle / Ivy

There is a newer version: 1.0.0
Show newest version
/**
 * Copyright (c) 2008-2012 Ardor Labs, Inc.
 *
 * This file is part of Ardor3D.
 *
 * Ardor3D is free software: you can redistribute it and/or modify it 
 * under the terms of its license which may be found in the accompanying
 * LICENSE file or at .
 */

package com.ardor3d.extension.ui.backdrop;

import com.ardor3d.extension.ui.UIComponent;
import com.ardor3d.renderer.Renderer;

/**
 * A simple backdrop that does not alter the content area.
 */
public class EmptyBackdrop extends UIBackdrop {
    public EmptyBackdrop() {}

    @Override
    public void draw(final Renderer renderer, final UIComponent comp) {
        // We did not affect the content area, so set it as "virgin"
        comp.setVirginContentArea(true);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy