|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plot2.Decoration
@Equality public class Decoration
Positioned icon, with equality semantics. A decoration is assumed fast to plot.
Constructor Summary | |
---|---|
Decoration(Icon icon,
int gx,
int gy)
Constructor. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Decoration(Icon icon, int gx, int gy)
icon
- decoration content; this icon must have equality semanticsgx
- x position for icongy
- y position for iconMethod Detail |
---|
public Icon getIcon()
public int getPosX()
public int getPosY()
public void paintDecoration(Graphics g)
g
- graphics contextpublic String toString()
toString
in class Object
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |