| java.lang.Object com.sun.svg.component.SVGProgressBar
SVGProgressBar | public class SVGProgressBar (Code) | | The SVGProgressBar class is a primitive component which can be attached to
SVG markup which follows the expected structure for a progress bar.
The expected structure for the progress bar is that there is a background
element which defines the maximum size for the progress indicator and there
is a progress indicator which should be scaled, along the horizontal axis,
to reflect the progress value. The code also expects a text indicator to display
the value as |
Method Summary | |
public void | hookSkin(Document doc) Hooks the input skin to this user interface component. | public void | setProgress(float pos) Parameters: pos - the desired thumb position in the [0, 1] interval. |
BACKGROUND_SUFFIX | final static String BACKGROUND_SUFFIX(Code) | | |
idPrefix | protected String idPrefix(Code) | | The prefix used for all the elements in the scroll bar component.
|
maxScale | protected float maxScale(Code) | | The max scale for the progress bar along the y-axis
|
minScale | protected float minScale(Code) | | The min scale of the progress bar along the x-axis
|
pos | protected float pos(Code) | | The current progress bar position in the [0,1] range.
|
progress | protected SVGLocatableElement progress(Code) | | The progress bar progress indicator
|
progressBBox | protected SVGRect progressBBox(Code) | | The progress indicator's bounding box.
|
progressTxf | protected SVGMatrix progressTxf(Code) | | The progress's initial transform.
|
svg | protected SVGSVGElement svg(Code) | | The document's root svg element.
|
text | protected SVGElement text(Code) | | The progress bar's text display.
|
SVGProgressBar | public SVGProgressBar(String idPrefix)(Code) | | Parameters: idPrefix - - the progress bar group identifier. |
hookSkin | public void hookSkin(Document doc)(Code) | | Hooks the input skin to this user interface component.
Parameters: doc - - the new Document skin containing the associated progressbar elements. |
setProgress | public void setProgress(float pos)(Code) | | Parameters: pos - the desired thumb position in the [0, 1] interval. If the value is out of range, itis clipped to the valid range. |
|
|