1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package org.openzen.drawablegui;
-
- import live.ImmutableLiveObject;
- import live.LiveObject;
-
- /**
- *
- * @author Hoofdgebruiker
- */
- public class DEmptyView implements DComponent {
- public static final DEmptyView INSTANCE = new DEmptyView();
-
- private static final LiveObject<DSizing> DIMENSION = new ImmutableLiveObject(DSizing.EMPTY);
-
- private DEmptyView() {}
-
- @Override
- public void mount(DComponentContext parent) {
-
- }
-
- @Override
- public void unmount() {
-
- }
-
- @Override
- public LiveObject<DSizing> getSizing() {
- return DIMENSION;
- }
-
- @Override
- public DIRectangle getBounds() {
- return DIRectangle.EMPTY;
- }
-
- @Override
- public int getBaselineY() {
- return -1;
- }
-
- @Override
- public void setBounds(DIRectangle bounds) {
-
- }
-
- @Override
- public void close() {
- // nothing to clean up
- }
- }
|