org.stellarium.ui.components
Class StelContainer

java.lang.Object
  extended by java.awt.event.KeyAdapter
      extended by org.stellarium.ui.components.StellariumComponent
          extended by org.stellarium.ui.components.CallbackComponent
              extended by org.stellarium.ui.components.StelContainer
All Implemented Interfaces:
java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.util.EventListener
Direct Known Subclasses:
FilledContainer, FloatIncDec, FramedContainer, IntIncDec, LabeledCheckBox, TabContainer, TextLabel, TimeItem, TimeZoneItem

public class StelContainer
extends CallbackComponent

Manages hierarchical components : send signals ad actions to childrens


Nested Class Summary
 
Nested classes/interfaces inherited from class org.stellarium.ui.components.StellariumComponent
StellariumComponent.S_GUI_VALUE
 
Field Summary
(package private)  java.util.LinkedList<StellariumComponent> childs
           
 
Fields inherited from class org.stellarium.ui.components.CallbackComponent
isMouseOver, onMouseInOutCallback, onPressCallback
 
Fields inherited from class org.stellarium.ui.components.StellariumComponent
active, defaultPainter, desktop, focus, focusing, guiBaseColor, guiColorSchemeMember, guiTextColor, moveToFront, needNewTopEdit, painter, pos, scissor, size, type, visible
 
Constructor Summary
StelContainer()
           
StelContainer(boolean isDesktop)
           
 
Method Summary
 void addComponent(StellariumComponent c)
           
 void draw()
           
(package private)  void Filleddraw()
          Container filled with a texture and with an edge
 void keyPressed(java.awt.event.KeyEvent e)
           
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mouseMoved(java.awt.event.MouseEvent e)
           
 void removeAllComponents()
           
 void removeComponent(StellariumComponent c)
           
 void setColorScheme(SColor _baseColor, SColor _textColor)
           
 void setFocus(boolean _focus)
           
 
Methods inherited from class org.stellarium.ui.components.CallbackComponent
callbackOnClic, callbackOnMove, getActive, getFocus, getIsMouseOver, getPos, getPosx, getPosy, getSize, getSizeX, getSizeY, getVisible, setActive, setFont, setOnMouseInOutCallback, setOnPressCallback, setPos, setPos, setPosx, setPosy, setSize, setSize, setSizeX, setSizey, setTexture, setVisible
 
Methods inherited from class org.stellarium.ui.components.StellariumComponent
deleteScissor, disableScissor, enableScissor, getFont, getNeedNewEdit, getType, inFront, initScissor, isIn, mouseDragged, mouseEntered, mouseExited, mousePressed, mouseReleased, mouseWheelMoved, reshape, reshape, setBaseColor, setDefaultPainter, setGUIColorSchemeMember, setInFront, setNeedNewEdit, setOpaque, setPainter, setTextColor
 
Methods inherited from class java.awt.event.KeyAdapter
keyReleased, keyTyped
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

childs

java.util.LinkedList<StellariumComponent> childs
Constructor Detail

StelContainer

public StelContainer(boolean isDesktop)

StelContainer

public StelContainer()
Method Detail

addComponent

public void addComponent(StellariumComponent c)

removeComponent

public void removeComponent(StellariumComponent c)

removeAllComponents

public void removeAllComponents()

setFocus

public void setFocus(boolean _focus)
Overrides:
setFocus in class CallbackComponent

setColorScheme

public void setColorScheme(SColor _baseColor,
                           SColor _textColor)
Overrides:
setColorScheme in class StellariumComponent

draw

public void draw()
Specified by:
draw in class StellariumComponent

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Specified by:
mouseClicked in interface java.awt.event.MouseListener
Overrides:
mouseClicked in class CallbackComponent

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent e)
Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener
Overrides:
mouseMoved in class CallbackComponent

keyPressed

public void keyPressed(java.awt.event.KeyEvent e)
Specified by:
keyPressed in interface java.awt.event.KeyListener
Overrides:
keyPressed in class StellariumComponent

Filleddraw

void Filleddraw()
Container filled with a texture and with an edge