@Deprecated public class TLcdVectorIcon extends TLcdCompositeIcon
TLcdSymbol
,
ILcdIcon
,
Serialized FormConstructor and Description |
---|
TLcdVectorIcon()
Deprecated.
Empty constructor.
|
TLcdVectorIcon(String aSourceName)
Deprecated.
Load a vector icon from the given source, and scale it to 32x32 pixels.
|
TLcdVectorIcon(String aSourceName,
int aWidth,
int aHeight)
Deprecated.
Load a vector icon from the given source, and scale it to the given width and height.
|
Modifier and Type | Method and Description |
---|---|
void |
changeFillColors(Color aColor)
Deprecated.
Changes the fill color of the icons contained in
this composite icon.
|
void |
changeLineColors(Color aColor)
Deprecated.
Changes the line color of the icons contained in
this composite icon.
|
Object |
clone()
Deprecated.
Makes
Object.clone() public. |
boolean |
equals(Object aObject)
Deprecated.
|
Rectangle2D |
getBounds()
Deprecated.
Return the bounds of the original unscaled icon as a Rectangle2D.
|
Color |
getDefaultFillColor()
Deprecated.
Return the default fill color.
|
Color |
getDefaultLineColor()
Deprecated.
Return the default line color.
|
String |
getSourceName()
Deprecated.
Get the source name of the icon.
|
int |
hashCode()
Deprecated.
|
void |
move(double aDeltaX,
double aDeltaY)
Deprecated.
Move the icon over the given delta's.
|
void |
scale(double aFactor)
Deprecated.
Scale the icon with the given factor.
|
void |
setSize(int aWidth,
int aHeight)
Deprecated.
Sets the width and the height for this icon.
|
addIcon, getIcon, getIconCount, getIconHeight, getIconWidth, paintIcon, removeAll, removeIcon, setIconHeight, setIconWidth
public TLcdVectorIcon()
public TLcdVectorIcon(String aSourceName)
aSourceName
- the source.public TLcdVectorIcon(String aSourceName, int aWidth, int aHeight)
aSourceName
- the source.aWidth
- the width.aHeight
- the height.public String getSourceName()
public Rectangle2D getBounds()
public void move(double aDeltaX, double aDeltaY)
aDeltaX
- delta in X direction.aDeltaY
- delta in Y direction.public void scale(double aFactor)
aFactor
- the scale factor.public Object clone()
ILcdCloneable
Makes Object.clone()
public.
java.lang.Object
, it can be implemented like this:
public Object clone() {
try {
return super.clone();
} catch ( CloneNotSupportedException e ) {
// Cannot happen: extends from Object and implements Cloneable (see also Object.clone)
throw new RuntimeException( e );
}
}
clone
in interface ILcdCloneable
clone
in class TLcdCompositeIcon
Object.clone()
public Color getDefaultLineColor()
public Color getDefaultFillColor()
public void changeFillColors(Color aColor)
aColor
- the new fill colorpublic void changeLineColors(Color aColor)
aColor
- the new line colorpublic void setSize(int aWidth, int aHeight)
aWidth
- The icon width.aHeight
- The icon height.public boolean equals(Object aObject)
equals
in class TLcdCompositeIcon
public int hashCode()
hashCode
in class TLcdCompositeIcon