ColorsIcon instead@Deprecated public class TwoColorsIcon extends ColorsIcon
EmptyIcon.EmptyIconUIResource| Modifier | Constructor and Description |
|---|---|
|
TwoColorsIcon(int size,
java.awt.Color color1,
java.awt.Color secondColor)
Deprecated.
|
protected |
TwoColorsIcon(TwoColorsIcon icon)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
TwoColorsIcon |
copy()
Deprecated.
Returns a copy of this icon.
|
double |
getScale(DerivedScaleType type) |
double |
getScale(ScaleType type) |
T |
getScaleContext() |
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.
|
equals, getPaint, hashCode, paintIcongetIconColorasUIResource, create, create, create, getIconHeight, getIconWidth, withIconPreScaledscalegetScale, isIconPreScaled, scaleVal, scaleVal, scaleVal, setAutoUpdateScaleContext, setIconPreScaled, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitdeepCopypublic TwoColorsIcon(int size,
java.awt.Color color1,
java.awt.Color secondColor)
protected TwoColorsIcon(TwoColorsIcon icon)
public TwoColorsIcon copy()
CopyableIconThe copy should be a new instance, it should preserve the original size and should paint equal to the original bitmap. The subtype of the new icon is up to an implementor. It may or may not be equal the original subtype.
copy in interface CopyableIconcopy in class ColorsIconpublic 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