|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlu.tudor.santec.jtimechooser.TimeUnit
public class TimeUnit
| Field Summary | |
|---|---|
static int |
NO_TIME_UNIT_SELECTED
|
| Constructor Summary | |
|---|---|
TimeUnit(TimeChooserModel model)
|
|
| Method Summary | |
|---|---|
void |
decreaseRounds()
Decreases the number of rounds by 1. |
int |
getMaxValue()
If this value is crossed, the rounds shall be increased. |
int |
getPixelPerHour()
|
int |
getPixelPerMinute()
|
int |
getPixelPerSecond()
|
int |
getPixelPerUnit()
|
int |
getRounds()
When the users drags the mouse and increases or decreases the value of the time unit, the value of the next upper time unit will be changed, if the min or max value is crossed. |
int |
getScrollAmountPerUnit()
|
int |
getScrollsPerHour()
|
int |
getScrollsPerMinute()
|
int |
getScrollsPerSecond()
|
int |
getTimeUnit()
|
int |
getValue()
|
void |
increaseRounds()
Increases the number of rounds by 1. |
boolean |
isTimeUnitValid()
|
void |
reset()
Resets the data. |
void |
setPixelPerHour(int pixelPerHour)
Sets how many pixels must be dragged to change the hours by 1. |
void |
setPixelPerMinute(int pixelPerMinute)
Sets how many pixels must be dragged to change the minutes by 1. |
void |
setPixelPerSecond(int pixelPerSecond)
Sets how many pixels must be dragged to change the seconds by 1. |
void |
setScrollsPerHour(int scrollsPerHour)
|
void |
setScrollsPerMinute(int scrollsPerMinute)
|
void |
setScrollsPerSecond(int scrollsPerSecond)
|
void |
setTimeUnit(int caretPosition)
The caret position is crucial for which time unit is set. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int NO_TIME_UNIT_SELECTED
| Constructor Detail |
|---|
public TimeUnit(TimeChooserModel model)
chooser - The JTimeChooser this TimeUnit keeps the data for.| Method Detail |
|---|
public void reset()
public int getTimeUnit()
public void setTimeUnit(int caretPosition)
caretPosition - the caret position of the JTimeChooser text field.public boolean isTimeUnitValid()
public int getValue()
public int getRounds()
public void increaseRounds()
public void decreaseRounds()
public int getMaxValue()
public int getPixelPerUnit()
public int getScrollAmountPerUnit()
public int getPixelPerHour()
public void setPixelPerHour(int pixelPerHour)
pixelPerHour - public int getPixelPerMinute()
public void setPixelPerMinute(int pixelPerMinute)
pixelPerMinute - public int getPixelPerSecond()
public void setPixelPerSecond(int pixelPerSecond)
pixelPerSecond - public int getScrollsPerHour()
public void setScrollsPerHour(int scrollsPerHour)
scrollsPerHour - The value the hours are in- / decreased,
if the mouse wheel is rotated.public int getScrollsPerMinute()
public void setScrollsPerMinute(int scrollsPerMinute)
scrollsPerMinute - The value the minutes are in- / decreased,
if the mouse wheel is rotated.public int getScrollsPerSecond()
public void setScrollsPerSecond(int scrollsPerSecond)
scrollsPerSecond - The value the seconds are in- / decreased,
if the mouse wheel is rotated.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||