public final class ShadowPainter extends ScaleContextSupport
| Constructor and Description |
|---|
ShadowPainter(javax.swing.Icon top,
javax.swing.Icon topRight,
javax.swing.Icon right,
javax.swing.Icon bottomRight,
javax.swing.Icon bottom,
javax.swing.Icon bottomLeft,
javax.swing.Icon left,
javax.swing.Icon topLeft) |
ShadowPainter(javax.swing.Icon top,
javax.swing.Icon topRight,
javax.swing.Icon right,
javax.swing.Icon bottomRight,
javax.swing.Icon bottom,
javax.swing.Icon bottomLeft,
javax.swing.Icon left,
javax.swing.Icon topLeft,
java.awt.Color borderColor) |
| Modifier and Type | Method and Description |
|---|---|
java.awt.image.BufferedImage |
createShadow(javax.swing.JComponent c,
int width,
int height) |
double |
getScale(DerivedScaleType type) |
double |
getScale(ScaleType type) |
T |
getScaleContext() |
void |
paintShadow(java.awt.Component c,
java.awt.Graphics2D g,
int x,
int y,
int width,
int height) |
void |
setBorderColor(java.awt.Color borderColor) |
boolean |
setScale(Scale scale)
Sets the new scale in the context
|
boolean |
updateScaleContext(UserScaleContext ctx)
Updates the current context with the state of the provided context.
|
public ShadowPainter(javax.swing.Icon top,
javax.swing.Icon topRight,
javax.swing.Icon right,
javax.swing.Icon bottomRight,
javax.swing.Icon bottom,
javax.swing.Icon bottomLeft,
javax.swing.Icon left,
javax.swing.Icon topLeft)
public ShadowPainter(javax.swing.Icon top,
javax.swing.Icon topRight,
javax.swing.Icon right,
javax.swing.Icon bottomRight,
javax.swing.Icon bottom,
javax.swing.Icon bottomLeft,
javax.swing.Icon left,
javax.swing.Icon topLeft,
java.awt.Color borderColor)
public void setBorderColor(java.awt.Color borderColor)
public java.awt.image.BufferedImage createShadow(javax.swing.JComponent c,
int width,
int height)
public void paintShadow(java.awt.Component c,
java.awt.Graphics2D g,
int x,
int y,
int width,
int height)
public T getScaleContext()
getScaleContext in interface ScaleContextAwarepublic boolean updateScaleContext(UserScaleContext ctx)
ScaleContextAwarectx is null, then updates the current context via ScaleContext.update()
and returns the result.updateScaleContext in interface ScaleContextAwarectx - the new scale contextpublic double getScale(ScaleType type)
getScale in interface ScaleContextAwarepublic double getScale(DerivedScaleType type)
getScale in interface ScaleContextAwarepublic boolean setScale(Scale scale)
ScaleContextAwaresetScale in interface ScaleContextAware