|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The interface for needles. Those wishing to use their own needles should implement this interface. A needle points to a current value on its associated scale. The end user may choose to interact with a needle. There may be multiple needles associated with a scale.
Method Summary | |
JCAbstractNeedle.InteractionType |
getInteractionType()
Returns the interation type for this needle. |
double |
getLength()
Returns the length of this needle as a ratio of the scale's radius, width, or height (depending on the scale's type and orientation). |
com.klg.jclass.swing.gauge.JCIndicatorStyle |
getNeedleStyle()
Returns the JCIndicatorStyle for this needle. |
double |
getNeedleWidth()
Returns the width for this needle. |
boolean |
getSendEvents()
Returns a sendEvents flag; true means events will
be sent when the needle's value changes, false means don't send
the events. |
void |
removeChangeListener(ChangeListener l)
Removes listener interested in needle movements. |
void |
sendChangeEvent(ChangeEvent ev)
Broadcasts the 'needle has been moved' event to interested listeners. |
void |
setInteractionType(JCAbstractNeedle.InteractionType interactionType)
Sets the interation type for this needle. |
void |
setLength(double length)
Sets the length of this needle as a ratio of the scale's radius, width or height (depending on the scale's type and orientation). |
void |
setNeedleStyle(com.klg.jclass.swing.gauge.JCIndicatorStyle needleStyle)
Sets the JCIndicatorStyle for this needle. |
void |
setNeedleWidth(double needleWidth)
Sets the width of needle (this is actually stored in the inherited indicatorWidth property). |
void |
setSendEvents(boolean sendEvents)
Sets the sendEvents flag; true means events will
be sent when the needle's value changes, false means don't
send the events. |
Methods inherited from interface com.klg.jclass.swing.gauge.JCIndicator |
getIndicatorStyle, getIndicatorWidth, getInnerExtent, getOuterExtent, getScale, getValue, isReversed, setIndicatorStyle, setIndicatorWidth, setInnerExtent, setOuterExtent, setReversed, setValue |
Method Detail |
public JCAbstractNeedle.InteractionType getInteractionType()
JCNeedle.InteractionType
for this
needle, one of InteractionType.NONE
InteractionType.DRAG
InteractionType.CLICK
InteractionType.CLICK_DRAG
public double getLength()
public com.klg.jclass.swing.gauge.JCIndicatorStyle getNeedleStyle()
JCIndicatorStyle
for this needle.
JCIndicatorStyle
of this needlepublic double getNeedleWidth()
public boolean getSendEvents()
sendEvents
flag; true
means events will
be sent when the needle's value changes, false
means don't send
the events.
public void removeChangeListener(ChangeListener l)
l
- the listener to be removedpublic void sendChangeEvent(ChangeEvent ev)
ev
- the ChangeEvent
of interestpublic void setInteractionType(JCAbstractNeedle.InteractionType interactionType)
JCNeedle.InteractionType
for this
needle, one of InteractionType.NONE
InteractionType.DRAG
InteractionType.CLICK
InteractionType.CLICK_DRAG
interactionType
- the JCNeedle.InteractionType
for
this needlepublic void setLength(double length)
length
- the needle's length expressed as a ratiopublic void setNeedleStyle(com.klg.jclass.swing.gauge.JCIndicatorStyle needleStyle)
JCIndicatorStyle
for this needle.
needleStyle
- the JCIndicatorStyle
for this needlepublic void setNeedleWidth(double needleWidth)
indicatorWidth
property).
needleWidth
- the width of this needlepublic void setSendEvents(boolean sendEvents)
sendEvents
flag; true
means events will
be sent when the needle's value changes, false
means don't
send the events.
sendEvents
- true
means send needle's value change
events to listeners
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |