|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kaboum.geom.KaboumTextBox
public class KaboumTextBox
This class is inspired from the "area" class of the mapplet_xml code from the mapserver client support package (cf. http://mapserver.gis.um.edu)
Constructor Summary | |
---|---|
KaboumTextBox(Kaboum parent,
java.awt.Point point,
java.lang.String text)
Constructor |
Method Summary | |
---|---|
boolean |
inside(int x,
int y)
Return true if input coordinate is inside the text box container |
void |
paint(java.awt.Graphics g)
Paint method |
void |
setText(java.lang.String text)
Set the text within the box container |
void |
setTextBoxPosition(int x,
int y)
Set the box container position |
void |
setTextBoxSize(int w,
int h)
Set the box size |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KaboumTextBox(Kaboum parent, java.awt.Point point, java.lang.String text)
Method Detail |
---|
public boolean inside(int x, int y)
x
- X coordinatey
- Y coordinatepublic void setText(java.lang.String text)
text
- Text stringpublic void setTextBoxPosition(int x, int y)
x
- X coordinatey
- Y coordinatepublic void setTextBoxSize(int w, int h)
w
- Width of the boxh
- Height of the boxpublic void paint(java.awt.Graphics g)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |