|
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.JCLinearNeedle
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 | |
JCLinearNeedle(Color foreground,
double needleWidth,
com.klg.jclass.swing.gauge.JCLinearScale scale,
JCAbstractNeedle.InteractionType interactionType,
boolean visible,
double inner_extent,
double outer_extent,
com.klg.jclass.swing.gauge.JCIndicatorStyle needleStyle,
double value)
Creates a needle. |
|
JCLinearNeedle(Color foreground,
double needleWidth,
com.klg.jclass.swing.gauge.JCLinearScale scale,
JCAbstractNeedle.InteractionType interactionType,
boolean visible,
double length,
com.klg.jclass.swing.gauge.JCIndicatorStyle needleStyle,
double value)
Creates a needle. |
|
JCLinearNeedle(com.klg.jclass.swing.gauge.JCLinearScale scale)
Creates a needle. |
Method Summary | |
protected com.klg.jclass.swing.gauge.JCLinearScale |
getLinearScale()
Returns the linear scale associated with this needle. |
void |
paint(Graphics g)
This routine draws the linear 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 JCLinearNeedle(com.klg.jclass.swing.gauge.JCLinearScale scale)
scale
- the associated linear scalepublic JCLinearNeedle(Color foreground, double needleWidth, com.klg.jclass.swing.gauge.JCLinearScale scale, JCAbstractNeedle.InteractionType interactionType, 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 scaleinteractionType
- the needle's interaction typevisible
- Aa boolean that controls the visibility of the needleinner_extent
- the needle's inner extent, expressed as a ratio
of its length in pixels to the width/height
of the associated linear scaleouter_extent
- the needle's outer extent, expressed as a ratio
of its length in pixels to the width/height
of the associated linear 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 JCLinearNeedle(Color foreground, double needleWidth, com.klg.jclass.swing.gauge.JCLinearScale scale, JCAbstractNeedle.InteractionType interactionType, boolean visible, double length, com.klg.jclass.swing.gauge.JCIndicatorStyle needleStyle, double value)
foreground
- the needle's colorneedleWidth
- the needle's width in pixelsscale
- the associated circular scaleinteractionType
- the needle's interaction type.visible
- a boolean that controls the visibility of the needlelength
- the needle's length, expressed as a ratio
of its length in pixels to the width/height
of the associated linear 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.JCLinearScale getLinearScale()
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 |