@Equality public class Decoration extends java.lang.Object
Constructor and Description |
---|
Decoration(javax.swing.Icon icon,
int gx,
int gy)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
javax.swing.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(java.awt.Graphics g)
Paints this decoration.
|
java.lang.String |
toString() |
public Decoration(javax.swing.Icon icon, int gx, int gy)
icon
- decoration content; this icon must have equality semanticsgx
- x position for icongy
- y position for iconpublic javax.swing.Icon getIcon()
public int getPosX()
public int getPosY()
public void paintDecoration(java.awt.Graphics g)
g
- graphics contextpublic java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.