|
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.JCLinearIndicator
An indicator points to values on its scale. There may be multiple indicators associated with a scale.
JCIndicatorStyle
,
Serialized FormNested Class Summary |
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.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 | |
JCLinearIndicator(Color foreground,
double indicatorWidth,
com.klg.jclass.swing.gauge.JCLinearScale scale,
boolean visible,
double inner_extent,
double outer_extent,
com.klg.jclass.swing.gauge.JCIndicatorStyle indicatorStyle,
double value)
Creates an indicator. |
|
JCLinearIndicator(com.klg.jclass.swing.gauge.JCLinearScale scale)
Creates an indicator. |
Method Summary | |
protected com.klg.jclass.swing.gauge.JCLinearScale |
getLinearScale()
Returns the linear scale associated with this indicator. |
void |
paint(Graphics g)
This routine draws the linear indicator object on the screen. |
Methods inherited from class com.klg.jclass.swing.gauge.JCAbstractIndicator |
getIndicatorStyle, getIndicatorWidth, getInnerExtent, getOuterExtent, getPreferredSize, getScale, getValue, isReversed, redraw, setIndicatorStyle, setIndicatorWidth, setInnerExtent, setOuterExtent, setReversed, setScale, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public JCLinearIndicator(com.klg.jclass.swing.gauge.JCLinearScale scale)
scale
- the associated linear scalepublic JCLinearIndicator(Color foreground, double indicatorWidth, com.klg.jclass.swing.gauge.JCLinearScale scale, boolean visible, double inner_extent, double outer_extent, com.klg.jclass.swing.gauge.JCIndicatorStyle indicatorStyle, double value)
foreground
- the indicator's colorindicatorWidth
- the indicator's width in pixelsscale
- the associated linear scalevisible
- a boolean that controls the visibility of the indicatorinner_extent
- the indicator's inner_extent
, expressed as
a ratio of its length to the width or height of the associated linear
scaleouter_extent
- the indicator's outer_extent
, expressed as
a ratio of its length to the width or height of the associated linear
scaleindicatorStyle
- indicator styles are kept in
JCIndicatorStyle
; user-defined indicator styles may be
passed to JCIndicatorStyle
's constructorvalue
- the indicator's value; the indicator 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 JCAbstractIndicator
g
- The graphics object with which to draw
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |