|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
cz.cuni.jagrlib.gui.ParamGUI
public abstract class ParamGUI
Abstract class that cares about visual representation of parameter.
Nested Class Summary | |
---|---|
static interface |
ParamGUI.ParamEdit
Manipulator for special parameters. |
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
InfoParam |
info
Information about parameter. |
protected ParamGUI.ParamEdit |
manipulator
The actual manipulator. |
static int |
PARAM_LINE_HEIGHT
Standard value for parameter height in pixels (one line). |
static int |
paramLineHeight
Default parameter height in pixels (one line). |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
ParamGUI()
Default constructor. |
Method Summary | |
---|---|
protected JPanel |
getPanelValue()
Gets panel for descendant. |
abstract Object |
getValue()
Gets parameter value. |
void |
initParam()
Parameter initialization. |
int |
paramLines()
Returns visual parameter height in lines. |
void |
setInfo(InfoParam ip)
Sets info parameter. |
void |
setListeners(MouseAdapter mouseClick,
MouseMotionAdapter mouseMove)
Set Listeners for mouse click and move. |
void |
setManipulator()
Sets manipulator of special parameter. |
abstract Object |
setValue(Object _newValue)
Sets parameter value. |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int PARAM_LINE_HEIGHT
public static int paramLineHeight
public InfoParam info
protected ParamGUI.ParamEdit manipulator
Constructor Detail |
---|
public ParamGUI()
Method Detail |
---|
public abstract Object setValue(Object _newValue)
_newValue
- New value.
public abstract Object getValue()
public void setInfo(InfoParam ip)
ip
- Information about parameter.public void initParam()
protected JPanel getPanelValue()
public void setManipulator()
public void setListeners(MouseAdapter mouseClick, MouseMotionAdapter mouseMove)
mouseClick
- listeners for mouse click.mouseMove
- listeners for mose move.public int paramLines()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |