org.kaboum.geom
Class KaboumTextBox

java.lang.Object
  extended by org.kaboum.geom.KaboumTextBox

public class KaboumTextBox
extends java.lang.Object

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)

Author:
jrom

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

KaboumTextBox

public KaboumTextBox(Kaboum parent,
                     java.awt.Point point,
                     java.lang.String text)
Constructor

Method Detail

inside

public boolean inside(int x,
                      int y)
Return true if input coordinate is inside the text box container

Parameters:
x - X coordinate
y - Y coordinate

setText

public void setText(java.lang.String text)
Set the text within the box container

Parameters:
text - Text string

setTextBoxPosition

public void setTextBoxPosition(int x,
                               int y)
Set the box container position

Parameters:
x - X coordinate
y - Y coordinate

setTextBoxSize

public void setTextBoxSize(int w,
                           int h)
Set the box size

Parameters:
w - Width of the box
h - Height of the box

paint

public void paint(java.awt.Graphics g)
Paint method



Copyright © 2005 Kaboum team. All Rights Reserved.