org.stellarium.ui.components
Class StdWin

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
                  extended by org.stellarium.ui.components.FramedContainer
                      extended by org.stellarium.ui.components.StdWin
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:
StdBtWin, StdDlgWin

public class StdWin
extends FramedContainer

Standard window widget


Nested Class Summary
 
Nested classes/interfaces inherited from class org.stellarium.ui.components.StellariumComponent
StellariumComponent.S_GUI_VALUE
 
Field Summary
protected  boolean dragging
           
protected  STexture headerTex
           
protected  Vector2i oldpos
           
protected  StelLabel titleLabel
           
 
Fields inherited from class org.stellarium.ui.components.FramedContainer
frameSize, inside
 
Fields inherited from class org.stellarium.ui.components.StelContainer
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
StdWin(java.lang.String someTitle, STexture someHeaderTex, SFontIfc someFont, int headerSize)
           
 
Method Summary
 void draw()
           
(package private)  java.lang.String getTitle()
           
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mouseMoved(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
(package private)  void setTitle(java.lang.String someTitle)
           
 
Methods inherited from class org.stellarium.ui.components.FramedContainer
addComponent, getSize, getSizeX, getSizeY, reshape, reshape, setFrameSize, setSize, setSize
 
Methods inherited from class org.stellarium.ui.components.StelContainer
Filleddraw, keyPressed, removeAllComponents, removeComponent, setColorScheme, setFocus
 
Methods inherited from class org.stellarium.ui.components.CallbackComponent
callbackOnClic, callbackOnMove, getActive, getFocus, getIsMouseOver, getPos, getPosx, getPosy, getVisible, setActive, setFont, setOnMouseInOutCallback, setOnPressCallback, setPos, setPos, setPosx, setPosy, 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, mouseWheelMoved, 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

titleLabel

protected StelLabel titleLabel

headerTex

protected STexture headerTex

dragging

protected boolean dragging

oldpos

protected Vector2i oldpos
Constructor Detail

StdWin

public StdWin(java.lang.String someTitle,
              STexture someHeaderTex,
              SFontIfc someFont,
              int headerSize)
Method Detail

setTitle

void setTitle(java.lang.String someTitle)

draw

public void draw()
Overrides:
draw in class FramedContainer

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Specified by:
mouseReleased in interface java.awt.event.MouseListener
Overrides:
mouseReleased 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 StelContainer

mouseMoved

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

getTitle

java.lang.String getTitle()