com.alee.extended.image
Class WebDecoratedImage

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by com.alee.extended.image.WebDecoratedImage
All Implemented Interfaces:
ShapeProvider, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.swing.SwingConstants

public class WebDecoratedImage
extends javax.swing.JComponent
implements javax.swing.SwingConstants, ShapeProvider

User: mgarin Date: 05.06.12 Time: 16:23

See Also:
Serialized Form

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
 
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
WebDecoratedImage()
           
WebDecoratedImage(java.lang.Class nearClass, java.lang.String src)
           
WebDecoratedImage(java.awt.Image image)
           
WebDecoratedImage(javax.swing.ImageIcon icon)
           
WebDecoratedImage(java.lang.String src)
           
 
Method Summary
 float getBlurAlignX()
           
 float getBlurAlignY()
           
 float getBlurFactor()
           
 java.awt.Color getBorderColor()
           
 int getHorizontalAlignment()
           
 javax.swing.ImageIcon getIcon()
           
 java.awt.Dimension getPreferredSize()
           
 javax.swing.ImageIcon getPreviewIcon()
           
 float getRotationBlurFactor()
           
 int getRound()
           
 int getShadeWidth()
           
 int getVerticalAlignment()
           
 float getZoomBlurFactor()
           
 boolean isBlur()
           
 boolean isDrawBorder()
           
 boolean isDrawGlassLayer()
           
 boolean isGrayscale()
           
 boolean isRotationBlur()
           
 boolean isZoomBlur()
           
protected  void paintComponent(java.awt.Graphics g)
           
 java.awt.Shape provideShape()
          Returns component shape.
 void setBlur(boolean blur)
           
 void setBlur(boolean blur, boolean update)
           
 void setBlurAlignX(float blurAlignX)
           
 void setBlurAlignX(float blurAlignX, boolean update)
           
 void setBlurAlignY(float blurAlignY)
           
 void setBlurAlignY(float blurAlignY, boolean update)
           
 void setBlurFactor(float blurFactor)
           
 void setBlurFactor(float blurFactor, boolean update)
           
 void setBorderColor(java.awt.Color borderColor)
           
 void setBorderColor(java.awt.Color borderColor, boolean update)
           
 void setDrawBorder(boolean drawBorder)
           
 void setDrawBorder(boolean drawBorder, boolean update)
           
 void setDrawGlassLayer(boolean drawGlassLayer)
           
 void setDrawGlassLayer(boolean drawGlassLayer, boolean update)
           
 void setGrayscale(boolean grayscale)
           
 void setGrayscale(boolean grayscale, boolean update)
           
 void setHorizontalAlignment(int horizontalAlignment)
           
 void setIcon(javax.swing.ImageIcon icon)
           
 void setIcon(javax.swing.ImageIcon icon, boolean update)
           
 void setImage(java.awt.Image image)
           
 void setImage(java.awt.Image image, boolean update)
           
 void setRotationBlur(boolean rotationBlur)
           
 void setRotationBlur(boolean rotationBlur, boolean update)
           
 void setRotationBlurFactor(float rotationBlurFactor)
           
 void setRotationBlurFactor(float rotationBlurFactor, boolean update)
           
 void setRound(int round)
           
 void setRound(int round, boolean update)
           
 void setShadeWidth(int shadeWidth)
           
 void setShadeWidth(int shadeWidth, boolean update)
           
 void setVerticalAlignment(int verticalAlignment)
           
 void setZoomBlur(boolean zoomBlur)
           
 void setZoomBlur(boolean zoomBlur, boolean update)
           
 void setZoomBlurFactor(float zoomBlurFactor)
           
 void setZoomBlurFactor(float zoomBlurFactor, boolean update)
           
 void updatePreview()
           
 
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
 

Constructor Detail

WebDecoratedImage

public WebDecoratedImage()

WebDecoratedImage

public WebDecoratedImage(java.lang.String src)

WebDecoratedImage

public WebDecoratedImage(java.lang.Class nearClass,
                         java.lang.String src)

WebDecoratedImage

public WebDecoratedImage(java.awt.Image image)

WebDecoratedImage

public WebDecoratedImage(javax.swing.ImageIcon icon)
Method Detail

getPreviewIcon

public javax.swing.ImageIcon getPreviewIcon()

getIcon

public javax.swing.ImageIcon getIcon()

setImage

public void setImage(java.awt.Image image)

setImage

public void setImage(java.awt.Image image,
                     boolean update)

setIcon

public void setIcon(javax.swing.ImageIcon icon)

setIcon

public void setIcon(javax.swing.ImageIcon icon,
                    boolean update)

getHorizontalAlignment

public int getHorizontalAlignment()

setHorizontalAlignment

public void setHorizontalAlignment(int horizontalAlignment)

getVerticalAlignment

public int getVerticalAlignment()

setVerticalAlignment

public void setVerticalAlignment(int verticalAlignment)

isDrawBorder

public boolean isDrawBorder()

setDrawBorder

public void setDrawBorder(boolean drawBorder)

setDrawBorder

public void setDrawBorder(boolean drawBorder,
                          boolean update)

getBorderColor

public java.awt.Color getBorderColor()

setBorderColor

public void setBorderColor(java.awt.Color borderColor)

setBorderColor

public void setBorderColor(java.awt.Color borderColor,
                           boolean update)

isDrawGlassLayer

public boolean isDrawGlassLayer()

setDrawGlassLayer

public void setDrawGlassLayer(boolean drawGlassLayer)

setDrawGlassLayer

public void setDrawGlassLayer(boolean drawGlassLayer,
                              boolean update)

getShadeWidth

public int getShadeWidth()

setShadeWidth

public void setShadeWidth(int shadeWidth)

setShadeWidth

public void setShadeWidth(int shadeWidth,
                          boolean update)

getRound

public int getRound()

setRound

public void setRound(int round)

setRound

public void setRound(int round,
                     boolean update)

isGrayscale

public boolean isGrayscale()

setGrayscale

public void setGrayscale(boolean grayscale)

setGrayscale

public void setGrayscale(boolean grayscale,
                         boolean update)

isBlur

public boolean isBlur()

setBlur

public void setBlur(boolean blur)

setBlur

public void setBlur(boolean blur,
                    boolean update)

getBlurFactor

public float getBlurFactor()

setBlurFactor

public void setBlurFactor(float blurFactor)

setBlurFactor

public void setBlurFactor(float blurFactor,
                          boolean update)

isZoomBlur

public boolean isZoomBlur()

setZoomBlur

public void setZoomBlur(boolean zoomBlur)

setZoomBlur

public void setZoomBlur(boolean zoomBlur,
                        boolean update)

getZoomBlurFactor

public float getZoomBlurFactor()

setZoomBlurFactor

public void setZoomBlurFactor(float zoomBlurFactor)

setZoomBlurFactor

public void setZoomBlurFactor(float zoomBlurFactor,
                              boolean update)

isRotationBlur

public boolean isRotationBlur()

setRotationBlur

public void setRotationBlur(boolean rotationBlur)

setRotationBlur

public void setRotationBlur(boolean rotationBlur,
                            boolean update)

getRotationBlurFactor

public float getRotationBlurFactor()

setRotationBlurFactor

public void setRotationBlurFactor(float rotationBlurFactor)

setRotationBlurFactor

public void setRotationBlurFactor(float rotationBlurFactor,
                                  boolean update)

getBlurAlignX

public float getBlurAlignX()

setBlurAlignX

public void setBlurAlignX(float blurAlignX)

setBlurAlignX

public void setBlurAlignX(float blurAlignX,
                          boolean update)

getBlurAlignY

public float getBlurAlignY()

setBlurAlignY

public void setBlurAlignY(float blurAlignY)

setBlurAlignY

public void setBlurAlignY(float blurAlignY,
                          boolean update)

updatePreview

public void updatePreview()

paintComponent

protected void paintComponent(java.awt.Graphics g)
Overrides:
paintComponent in class javax.swing.JComponent

getPreferredSize

public java.awt.Dimension getPreferredSize()
Overrides:
getPreferredSize in class javax.swing.JComponent

provideShape

public java.awt.Shape provideShape()
Description copied from interface: ShapeProvider
Returns component shape.

Specified by:
provideShape in interface ShapeProvider
Returns:
component shape