@Equality public class Decoration extends Object
| Constructor and Description | 
|---|
| Decoration(Icon icon,
          int gx,
          int gy)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object o) | 
| Icon | getIcon()Returns this decoration's icon. | 
| int | getPosX()Returns this decoration's X position. | 
| int | getPosY()Returns this decoration's Y position. | 
| int | hashCode() | 
| void | paintDecoration(Graphics g)Paints this decoration. | 
| String | toString() | 
public Decoration(Icon icon, int gx, int gy)
icon - decoration content; this icon must have equality semanticsgx - x position for icongy - y position for iconpublic Icon getIcon()
public int getPosX()
public int getPosY()
public void paintDecoration(Graphics g)
g - graphics contextCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.