org.stellarium.ui.components
Class Button
java.lang.Object
java.awt.event.KeyAdapter
org.stellarium.ui.components.StellariumComponent
org.stellarium.ui.components.CallbackComponent
org.stellarium.ui.components.Button
- 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:
- CheckBox,
EditBox,
FilledButton,
LabeledButton,
TexturedButton
-
public class Button
- extends CallbackComponent
Simplest button with one press Callback
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 |
Methods inherited from class org.stellarium.ui.components.CallbackComponent |
callbackOnClic,
callbackOnMove,
getActive, getFocus, getIsMouseOver, getPos, getPosx, getPosy, getSize, getSizeX, getSizeY, getVisible, mouseMoved,
setActive, setFocus, 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, keyPressed,
mouseDragged,
mouseEntered,
mouseExited,
mousePressed,
mouseReleased,
mouseWheelMoved,
reshape,
reshape,
setBaseColor,
setColorScheme,
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 |
BUTTON_HEIGHT
public static final int BUTTON_HEIGHT
- See Also:
- Constant Field
Values
hideBorder
protected boolean hideBorder
hideBorderMouseOver
protected boolean hideBorderMouseOver
hideTexture
protected boolean hideTexture
Button
public Button()
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
-
setHideBorder
public void setHideBorder(boolean _b)
-
setHideBorderMouseOver
public void setHideBorderMouseOver(boolean _b)
-
setHideTexture
public void setHideTexture(boolean _b)
-