|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
PIRL.Viewers.Percent_Bar
public class Percent_Bar
A Percent_Bar provides a bar chart component that is sized to be some percentage of the width or height of its display area.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static int |
BOTTOM
|
static Color |
DEFAULT_COLOR
|
static int |
DEFAULT_ORIENTATION
|
static String |
ID
Class identification name with source code version and date. |
static int |
LEFT
|
static int |
RIGHT
|
static int |
TOP
|
| 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 | |
|---|---|
Percent_Bar()
|
|
Percent_Bar(double percent,
int orientation,
Color color)
Construct a Percent_Bar. |
|
| Method Summary | |
|---|---|
String |
getUIClassID()
Get the ComponentUI class identification for this component. |
int |
Orientation()
|
Percent_Bar |
Orientation(int orientation)
|
double |
Percent()
|
Percent_Bar |
Percent(double percent)
|
void |
setUI(Percent_BarUI UI)
Set the graphical user interface (UI) delegate for the component. |
void |
updateUI()
Set the user interface delegate to the ComponentUI found by the UIManger for this component. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String ID
public static final int TOP
public static final int LEFT
public static final int BOTTOM
public static final int RIGHT
public static final int DEFAULT_ORIENTATION
public static final Color DEFAULT_COLOR
| Constructor Detail |
|---|
public Percent_Bar(double percent,
int orientation,
Color color)
percent - The percentage of the display width or height
occupied by the bar.orientation - Either VERTICAL or HORIZONTAL.color - The Color of the bar.public Percent_Bar()
| Method Detail |
|---|
public Percent_Bar Percent(double percent)
public double Percent()
public Percent_Bar Orientation(int orientation)
public int Orientation()
public void setUI(Percent_BarUI UI)
UI - A Percent_BarUI object that will paint the component
and handle other user interface events.JComponent.setUI(ComponentUI)public void updateUI()
This component is invalidated.
updateUI in class JComponentgetUIClassID()public String getUIClassID()
getUIClassID in class JComponent
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||