daoc.editor.ui.texture
Class TextureRect

java.lang.Object
  extended bydaoc.editor.ui.texture.TextureRect

public class TextureRect
extends java.lang.Object

A rectangular outline used for selecting texture coordinates.


Field Summary
 int h
           
 int heightGroup
           
 int id
           
 int w
           
 int widthGroup
           
 int x
           
 int y
           
 
Constructor Summary
TextureRect(int id, int x, int y, int w, int h, int widthGroup, int heightGroup)
           
 
Method Summary
 int getDragType(int xp, int yp)
           
 java.awt.Rectangle getRectangle(int scale)
           
 boolean hits(int xp, int yp)
           
 void moveBy(int xp, int yp)
           
 void resizeBy(int xp, int yp)
           
 void setTextureSize(int w, int h)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

TextureRect

public TextureRect(int id,
                   int x,
                   int y,
                   int w,
                   int h,
                   int widthGroup,
                   int heightGroup)
Method Detail

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)