|
||||||||||
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.alee.extended.progress.WebStepProgress
public class WebStepProgress
User: mgarin Date: 14.01.13 Time: 13:52
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
---|---|
static int |
PROGRESS_SELECTION
|
static int |
STEP_SELECTION
|
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 javax.swing.SwingConstants |
---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
WebStepProgress()
|
|
WebStepProgress(java.awt.Component... steps)
|
|
WebStepProgress(int steps)
|
|
WebStepProgress(java.util.List<StepData> steps)
|
|
WebStepProgress(StepData... steps)
|
|
WebStepProgress(java.lang.String... steps)
|
Method Summary | |
---|---|
void |
addSteps(java.awt.Component... steps)
|
void |
addSteps(java.util.List<StepData> steps)
|
void |
addSteps(java.lang.String... steps)
|
static java.util.List<StepData> |
createDefaultData(int stepsAmount)
|
static java.util.List<StepData> |
createSteps(java.awt.Component[] steps)
|
static java.util.List<StepData> |
createSteps(java.lang.String[] steps)
Additional useful methods |
int |
getFillPathSize()
|
int |
getLabelsPosition()
Step labels positioning |
java.awt.Insets |
getMargin()
Component global margin |
int |
getMinimumHeight()
Returns component minimum height. |
int |
getMinimumWidth()
Returns component minimum width. |
int |
getOrientation()
Step progress bar orientation |
int |
getPathSize()
Progress path sizes |
int |
getPreferredHeight()
Returns component preferred height. |
java.awt.Dimension |
getPreferredSize()
Returns component preferred size. |
int |
getPreferredWidth()
Returns component preferred width. |
float |
getProgress()
Progress operations |
int |
getSelectedStep()
Step operations |
int |
getSelectionMode()
|
int |
getShadeWidth()
Shade width |
int |
getSpacing()
Spacing between labels and progress |
StepData |
getStep(int index)
|
int |
getStepCircleAt(java.awt.Point point)
|
int |
getStepControlFillRound()
|
int |
getStepControlFillSize()
|
int |
getStepControlRound()
|
int |
getStepControlSize()
Step control sizes |
java.util.List<StepData> |
getSteps()
|
int |
getStepsAmount()
Steps modification methods |
float |
getTotalProgress()
Total progress change |
float |
getTotalProgressAt(java.awt.Point point)
|
boolean |
isSelectionEnabled()
Selection |
boolean |
isShowLabels()
Show step labels |
protected void |
paintComponent(java.awt.Graphics g)
Custom painting method |
java.awt.Shape |
provideShape()
Basic component shape |
void |
removeStep(int index)
|
void |
removeStep(StepData stepData)
|
void |
setFillPathSize(int fillPathSize)
|
void |
setLabelsPosition(int labelsPosition)
|
void |
setMargin(java.awt.Insets margin)
|
void |
setMargin(int spacing)
|
void |
setMargin(int top,
int left,
int bottom,
int right)
|
WebStepProgress |
setMinimumHeight(int minimumHeight)
Sets component minimum height. |
WebStepProgress |
setMinimumWidth(int minimumWidth)
Sets component minimum width. |
void |
setOrientation(int orientation)
|
void |
setPathSize(int pathSize)
|
WebStepProgress |
setPreferredHeight(int preferredHeight)
Sets component preferred height. |
WebStepProgress |
setPreferredWidth(int preferredWidth)
Sets component preferred width. |
void |
setProgress(float progress)
|
void |
setSelectedStep(int selectedStep)
|
void |
setSelectionEnabled(boolean selectionEnabled)
|
void |
setSelectionMode(int selectionMode)
|
void |
setShadeWidth(int shadeWidth)
|
void |
setShowLabels(boolean showLabels)
|
void |
setSpacing(int spacing)
|
void |
setStepControlFillRound(int stepControlFillRound)
|
void |
setStepControlFillSize(int stepControlFillSize)
|
void |
setStepControlRound(int stepControlRound)
|
void |
setStepControlSize(int stepControlSize)
|
void |
setSteps(java.awt.Component... steps)
|
void |
setSteps(java.util.List<StepData> steps)
|
void |
setSteps(java.lang.String... steps)
|
void |
setStepsAmount(int stepsAmount)
|
void |
setTotalProgress(float totalProgress)
|
protected void |
updateBorderShape()
Shapes cache update methods |
protected void |
updateFillShape()
|
protected void |
updateShapes()
|
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int STEP_SELECTION
public static final int PROGRESS_SELECTION
Constructor Detail |
---|
public WebStepProgress()
public WebStepProgress(int steps)
public WebStepProgress(java.lang.String... steps)
public WebStepProgress(java.awt.Component... steps)
public WebStepProgress(StepData... steps)
public WebStepProgress(java.util.List<StepData> steps)
Method Detail |
---|
public java.awt.Insets getMargin()
public void setMargin(java.awt.Insets margin)
public void setMargin(int top, int left, int bottom, int right)
public void setMargin(int spacing)
public int getShadeWidth()
public void setShadeWidth(int shadeWidth)
public int getStepControlSize()
public void setStepControlSize(int stepControlSize)
public int getStepControlRound()
public void setStepControlRound(int stepControlRound)
public int getStepControlFillSize()
public void setStepControlFillSize(int stepControlFillSize)
public int getStepControlFillRound()
public void setStepControlFillRound(int stepControlFillRound)
public int getPathSize()
public void setPathSize(int pathSize)
public int getFillPathSize()
public void setFillPathSize(int fillPathSize)
public boolean isShowLabels()
public void setShowLabels(boolean showLabels)
public int getOrientation()
public void setOrientation(int orientation)
public int getLabelsPosition()
public void setLabelsPosition(int labelsPosition)
public int getSpacing()
public void setSpacing(int spacing)
public boolean isSelectionEnabled()
public void setSelectionEnabled(boolean selectionEnabled)
public int getSelectionMode()
public void setSelectionMode(int selectionMode)
public int getStepsAmount()
public java.util.List<StepData> getSteps()
public StepData getStep(int index)
public void setSteps(java.lang.String... steps)
public void setSteps(java.awt.Component... steps)
public void setSteps(java.util.List<StepData> steps)
public void addSteps(java.lang.String... steps)
public void addSteps(java.awt.Component... steps)
public void addSteps(java.util.List<StepData> steps)
public void removeStep(int index)
public void removeStep(StepData stepData)
public void setStepsAmount(int stepsAmount)
public int getSelectedStep()
public void setSelectedStep(int selectedStep)
public float getProgress()
public void setProgress(float progress)
public float getTotalProgress()
public float getTotalProgressAt(java.awt.Point point)
public void setTotalProgress(float totalProgress)
protected void paintComponent(java.awt.Graphics g)
paintComponent
in class javax.swing.JComponent
public java.awt.Shape provideShape()
provideShape
in interface ShapeProvider
protected void updateBorderShape()
protected void updateFillShape()
protected void updateShapes()
public int getStepCircleAt(java.awt.Point point)
public int getPreferredWidth()
getPreferredWidth
in interface SizeMethods<WebStepProgress>
public WebStepProgress setPreferredWidth(int preferredWidth)
setPreferredWidth
in interface SizeMethods<WebStepProgress>
preferredWidth
- new component preferred width
public int getPreferredHeight()
getPreferredHeight
in interface SizeMethods<WebStepProgress>
public WebStepProgress setPreferredHeight(int preferredHeight)
setPreferredHeight
in interface SizeMethods<WebStepProgress>
preferredHeight
- new component preferred height
public int getMinimumWidth()
getMinimumWidth
in interface SizeMethods<WebStepProgress>
public WebStepProgress setMinimumWidth(int minimumWidth)
setMinimumWidth
in interface SizeMethods<WebStepProgress>
minimumWidth
- new component minimum width
public int getMinimumHeight()
getMinimumHeight
in interface SizeMethods<WebStepProgress>
public WebStepProgress setMinimumHeight(int minimumHeight)
setMinimumHeight
in interface SizeMethods<WebStepProgress>
minimumHeight
- new component minimum height
public java.awt.Dimension getPreferredSize()
getPreferredSize
in interface SizeMethods<WebStepProgress>
getPreferredSize
in class javax.swing.JComponent
public static java.util.List<StepData> createSteps(java.lang.String[] steps)
public static java.util.List<StepData> createSteps(java.awt.Component[] steps)
public static java.util.List<StepData> createDefaultData(int stepsAmount)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |