|
Sweet Home 3D 2.5 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.eteks.sweethome3d.model.Label
public class Label
A free label.
| Nested Class Summary | |
|---|---|
static class |
Label.Property
The properties of a label that may change. |
| Constructor Summary | |
|---|---|
Label(String text,
float x,
float y)
|
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds the property change listener in parameter to this label. |
Label |
clone()
Returns a clone of this label. |
boolean |
containsPoint(float x,
float y,
float margin)
Returns true if this text is at the point at (x, y)
with a given margin. |
float[][] |
getPoints()
Returns the point of this label. |
TextStyle |
getStyle()
Returns the style used to display the text of this label. |
String |
getText()
Returns the text of this label. |
float |
getX()
Returns the abscissa of the text of this label. |
float |
getY()
Returns the ordinate of the text of this label. |
boolean |
intersectsRectangle(float x0,
float y0,
float x1,
float y1)
Returns true if the point of this label is contained
in the horizontal rectangle which opposite corners are at points
(x0, y0) and (x1, y1). |
void |
move(float dx,
float dy)
Moves this label of ( dx, dy) units. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes the property change listener in parameter from this label. |
void |
setStyle(TextStyle style)
Sets the style used to display the text of this label. |
void |
setText(String text)
Sets the text of this label. |
void |
setX(float x)
Sets the abscissa of the text of this label. |
void |
setY(float y)
Sets the ordinate of the text of this label. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Label(String text,
float x,
float y)
| Method Detail |
|---|
public void addPropertyChangeListener(PropertyChangeListener listener)
listener in parameter to this label.
public void removePropertyChangeListener(PropertyChangeListener listener)
listener in parameter from this label.
public String getText()
public void setText(String text)
public float getX()
public void setX(float x)
public float getY()
public void setY(float y)
public TextStyle getStyle()
public void setStyle(TextStyle style)
public float[][] getPoints()
getPoints in interface Selectable
public boolean intersectsRectangle(float x0,
float y0,
float x1,
float y1)
true if the point of this label is contained
in the horizontal rectangle which opposite corners are at points
(x0, y0) and (x1, y1).
intersectsRectangle in interface Selectable
public boolean containsPoint(float x,
float y,
float margin)
true if this text is at the point at (x, y)
with a given margin.
containsPoint in interface Selectable
public void move(float dx,
float dy)
dx, dy) units.
move in interface Selectablepublic Label clone()
clone in interface Selectableclone in class Object
|
Sweet Home 3D 2.5 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
![]() |
© Copyrights 2006-2010 eTeks - All rights reserved
Distributed under GNU General Public License |