|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectdk.vajhoej.model.core.Location
public class Location
Class Location represents a visual location.
| Constructor Summary | |
|---|---|
Location()
Create instance of location. |
|
Location(int x,
int y,
java.lang.String clazz,
java.lang.String id)
Create instance of location. |
|
Location(int x,
int y,
java.lang.String clazz,
java.lang.String id,
int angle)
Create instance of location. |
|
Location(int x,
int y,
java.lang.String clazz,
java.lang.String id,
int angle,
double hor,
double ver)
Create instance of location. |
|
| Method Summary | |
|---|---|
Location |
clone()
|
boolean |
equals(java.lang.Object o)
|
int |
getAngle()
Get rotation angle. |
NameValuePairList |
getAttributes()
Get all single value fields. |
java.util.List<java.util.List<Persistable>> |
getChildren()
Get all multi value fields. |
java.lang.String |
getClazz()
Get Java class name. |
double |
getHor()
Get relative horizontal move. |
java.lang.String |
getId()
Get object id. |
java.lang.String |
getName()
|
java.lang.String |
getType()
Get type (XML element name / database table name not Java class name). |
double |
getVer()
Get relative vertical move. |
int |
getX()
Get x coordinate. |
int |
getY()
Get y coordinate. |
int |
hashCode()
|
void |
move(int dx,
int dy)
Move locations. |
void |
setAttributes(NameValuePairList attr)
Set all single value fields. |
void |
setChildren(java.util.List<java.util.List<Persistable>> childs)
Set all multi value fields. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Location()
public Location(int x,
int y,
java.lang.String clazz,
java.lang.String id)
x - x coordinatey - y coordinateclazz - Java class nameid - object id
public Location(int x,
int y,
java.lang.String clazz,
java.lang.String id,
int angle)
x - x coordinatey - y coordinateclazz - Java class nameangle - rotation angle
public Location(int x,
int y,
java.lang.String clazz,
java.lang.String id,
int angle,
double hor,
double ver)
x - x coordinatey - y coordinateclazz - Java class nameangle - rotation anglehor - relative horizontal movever - relative vertical move| Method Detail |
|---|
public int getX()
public int getY()
public java.lang.String getClazz()
public java.lang.String getId()
getId in interface Persistablepublic int getAngle()
public double getHor()
public double getVer()
public void move(int dx,
int dy)
dx - delta xdy - delta ypublic Location clone()
clone in class java.lang.Objectpublic java.lang.String getName()
public java.lang.String getType()
Persistable
getType in interface Persistablepublic NameValuePairList getAttributes()
Persistable
getAttributes in interface Persistablepublic java.util.List<java.util.List<Persistable>> getChildren()
Persistable
getChildren in interface Persistable
public void setAttributes(NameValuePairList attr)
throws ModelException
Persistable
setAttributes in interface Persistableattr - value pair list
ModelException - if problems
public void setChildren(java.util.List<java.util.List<Persistable>> childs)
throws ModelException
Persistable
setChildren in interface Persistablechilds - list of list of persistable objects
ModelException - if problemspublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||