daoc.editor.ui.texture
Class TextureRect
java.lang.Object
daoc.editor.ui.texture.TextureRect
- public class TextureRect
- extends java.lang.Object
A rectangular outline used for selecting texture coordinates.
|
Constructor Summary |
TextureRect(int id,
int x,
int y,
int w,
int h,
int widthGroup,
int heightGroup)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
id
public int id
widthGroup
public int widthGroup
heightGroup
public int heightGroup
x
public int x
y
public int y
w
public int w
h
public int h
TextureRect
public TextureRect(int id,
int x,
int y,
int w,
int h,
int widthGroup,
int heightGroup)
setTextureSize
public void setTextureSize(int w,
int h)
moveBy
public void moveBy(int xp,
int yp)
resizeBy
public void resizeBy(int xp,
int yp)
getRectangle
public java.awt.Rectangle getRectangle(int scale)
hits
public boolean hits(int xp,
int yp)
getDragType
public int getDragType(int xp,
int yp)