- java.lang.Object
-
- be.yildizgames.common.util.BaseRegisterable
-
- be.yildizgames.module.graphic.gui.View
-
- be.yildizgames.module.graphic.gui.SimpleView
-
- All Implemented Interfaces:
be.yildizgames.common.util.Registerable,Visible,Comparable<View>
public class SimpleView extends View
Basic implementation of a View.- Author:
- Grégory Van den Borre
-
-
Constructor Summary
Constructors Constructor Description SimpleView(Container container, Zorder z, GuiEventManager eventManager, be.yildizgames.module.window.ScreenSize size)Full constructor.SimpleView(Container container, Zorder z, be.yildizgames.module.window.ScreenSize size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidsetActiveImpl(boolean active)Implementation specific set active.protected voidsetVisibleImpl(boolean show)Set specific implementation when setVisible is called.-
Methods inherited from class be.yildizgames.module.graphic.gui.View
addKeyboardListener, addMouseDragListener, addMouseLeftClickListener, addMouseMoveListener, addMouseReleaseListener, addMouseRightClickListener, addMouseWheelListener, compareTo, contains, contains, delete, disableHighlight, equals, get, getContainer, getFocus, hashCode, hide, isActive, isVisible, setActive, setBackground, setFocus, setPosition, setPosition, setVisible, show, toString
-
-
-
-
Constructor Detail
-
SimpleView
public SimpleView(Container container, Zorder z, GuiEventManager eventManager, be.yildizgames.module.window.ScreenSize size)
Full constructor.- Parameters:
container- Wrapped container.z- Z value.eventManager- Associated event manager.
-
-
Method Detail
-
setVisibleImpl
protected final void setVisibleImpl(boolean show)
Description copied from class:ViewSet specific implementation when setVisible is called.- Specified by:
setVisibleImplin classView- Parameters:
show-trueif the view is set to visible,falseif it is hidden.
-
setActiveImpl
protected final void setActiveImpl(boolean active)
Description copied from class:ViewImplementation specific set active.- Specified by:
setActiveImplin classView- Parameters:
active- Active state.
-
-