Methods Summary |
---|
public java.awt.Insets | getDialInsets()return dialInsets;
|
public int | getMaximum()return model.getMaximum();
|
public int | getMinimum()return model.getMinimum();
|
public javax.swing.BoundedRangeModel | getModel()
return model;
|
public java.lang.String | getUIClassID()
return JogShuttleUI.UI_CLASS_ID;
|
public int | getValue()return model.getValue();
|
public int | getValuePerRevolution()return valuePerRevolution;
|
protected void | init(javax.swing.BoundedRangeModel m)
setModel(m);
valuePerRevolution = m.getMaximum() - m.getMinimum();
setMinimumSize(new Dimension(80, 80));
setPreferredSize(new Dimension(80, 80));
updateUI();
|
public void | resetToMaximum()model.setValue(model.getMaximum());
|
public void | resetToMinimum()model.setValue(model.getMinimum());
|
public void | setDialInsets(java.awt.Insets i)dialInsets = i;
|
public void | setDialInsets(int top, int left, int bottom, int right)
dialInsets = new Insets(top, left, bottom, right);
|
public void | setMaximum(int m)
int old = getMaximum();
if (m != old) {
model.setMaximum(m);
firePropertyChange("maximum", old, m);
}
|
public void | setMinimum(int m)
int old = getMinimum();
if (m != old) {
model.setMinimum(m);
firePropertyChange("minimum", old, m);
}
|
public void | setModel(javax.swing.BoundedRangeModel m)
BoundedRangeModel old = model;
if (old != null)
old.removeChangeListener(this);
if (m == null)
model = new DefaultBoundedRangeModel();
else
model = m;
model.addChangeListener(this);
firePropertyChange("model", old, model);
|
public void | setUI(JogShuttleUI ui)super.setUI(ui);
|
public void | setValue(int v)
int old = getValue();
if (v != old) {
model.setValue(v);
firePropertyChange("value", old, v);
}
|
public void | setValuePerRevolution(int v)
int old = getValuePerRevolution();
if (v != old) {
valuePerRevolution = v;
firePropertyChange("valuePerRevolution", old, v);
}
repaint();
|
public void | stateChanged(javax.swing.event.ChangeEvent e)repaint();
|
public void | updateUI()
setUI((JogShuttleUI)UIManager.getUI(this));
invalidate();
|