|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--com.klg.jclass.swing.gauge.JCAbstractIndicator | +--com.klg.jclass.swing.gauge.JCAbstractNeedle | +--com.klg.jclass.swing.gauge.JCCircularNeedle
A needle points to values on its scale. There may be multiple needles associated with a scale.
JCIndicatorStyle
,
Serialized FormNested Class Summary |
Nested classes inherited from class com.klg.jclass.swing.gauge.JCAbstractNeedle |
JCAbstractNeedle.InteractionType |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
Fields inherited from class com.klg.jclass.swing.gauge.JCAbstractNeedle |
changeEvent, changeListeners, interactionType, sendEvents |
Fields inherited from class com.klg.jclass.swing.gauge.JCAbstractIndicator |
indicatorStyle, indicatorWidth, inner_extent, outer_extent, reversed, scale, value |
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 | |
JCCircularNeedle(Color foreground,
double needleWidth,
com.klg.jclass.swing.gauge.JCCircularScale scale,
boolean visible,
double inner_extent,
double outer_extent,
com.klg.jclass.swing.gauge.JCIndicatorStyle needleStyle,
double value)
Creates a needle. |
|
JCCircularNeedle(Color foreground,
double needleWidth,
com.klg.jclass.swing.gauge.JCCircularScale scale,
JCAbstractNeedle.InteractionType interactionType,
boolean visible,
double length,
com.klg.jclass.swing.gauge.JCIndicatorStyle needleStyle,
double value)
Deprecated. Beginning with JClass 5, the length parameter has
been replaced with inner_extent and outer_extent . |
|
JCCircularNeedle(com.klg.jclass.swing.gauge.JCCircularScale scale)
Creates a needle. |
Method Summary | |
protected com.klg.jclass.swing.gauge.JCCircularScale |
getCircularScale()
Returns the circular scale associated with this needle. |
void |
paint(Graphics g)
This routine draws the circular needle object on the screen. |
Methods inherited from class com.klg.jclass.swing.gauge.JCAbstractNeedle |
addChangeListener, getInteractionType, getLength, getNeedleStyle, getNeedleWidth, getPreferredSize, getSendEvents, removeChangeListener, sendChangeEvent, setInteractionType, setLength, setNeedleStyle, setNeedleWidth, setSendEvents, setValue |
Methods inherited from class com.klg.jclass.swing.gauge.JCAbstractIndicator |
getIndicatorStyle, getIndicatorWidth, getInnerExtent, getOuterExtent, getScale, getValue, isReversed, redraw, setIndicatorStyle, setIndicatorWidth, setInnerExtent, setOuterExtent, setReversed, setScale |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.klg.jclass.swing.gauge.JCIndicator |
getIndicatorStyle, getIndicatorWidth, getInnerExtent, getOuterExtent, getScale, getValue, isReversed, setIndicatorStyle, setIndicatorWidth, setInnerExtent, setOuterExtent, setReversed |
Constructor Detail |
public JCCircularNeedle(com.klg.jclass.swing.gauge.JCCircularScale scale)
scale
- The associated circular scalepublic JCCircularNeedle(Color foreground, double needleWidth, com.klg.jclass.swing.gauge.JCCircularScale scale, boolean visible, double inner_extent, double outer_extent, com.klg.jclass.swing.gauge.JCIndicatorStyle needleStyle, double value)
foreground
- the needle's colorneedleWidth
- the needle's width in pixelsscale
- the associated circular scalevisible
- a Boolean that controls the visibility of the needleinner_extent
- the needle's inner extent, expressed as a ratio of its length to
the relevant dimension (radius, width/length) of the associated circular scaleouter_extent
- the needle's outer extent, expressed as a ratio of its length to
the relevant dimension (radius, width/length) of the associated circular scaleneedleStyle
- needle styles are kept in JCIndicatorStyle
;
user-defined needle styles may be passed to
JCIndicatorStyle
's constructorvalue
- the needle's value; the needle points to this value on its
associated scalepublic JCCircularNeedle(Color foreground, double needleWidth, com.klg.jclass.swing.gauge.JCCircularScale scale, JCAbstractNeedle.InteractionType interactionType, boolean visible, double length, com.klg.jclass.swing.gauge.JCIndicatorStyle needleStyle, double value)
length
parameter has
been replaced with inner_extent
and outer_extent
.
foreground
- the needle's colorneedleWidth
- the needle's width in pixelsscale
- the associated circular scaleinteractionType
- the interaction type;
CLICK
, CLICK_DRAG
, or NONE
visible
- a Boolean that controls the visibility of the needlelength
- the needle's length, expressed as a ratio of its length to
the relevant dimension (radius, width/length) of the associated scaleneedleStyle
- needle styles are kept in JCIndicatorStyle
;
user-defined needle styles may be passed to
JCIndicatorStyle
's constructorvalue
- the needle's value; the needle points to this value on its
associated scaleMethod Detail |
protected com.klg.jclass.swing.gauge.JCCircularScale getCircularScale()
public void paint(Graphics g)
paint
in class JCAbstractNeedle
g
-
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |