public class Resizer extends Object implements MouseListener, MouseMotionListener
Modifier and Type | Class and Description |
---|---|
static interface |
Resizer.ResizerListener |
Modifier and Type | Field and Description |
---|---|
static int |
MARGIN |
Constructor and Description |
---|
Resizer(JComponent jc,
Rectangle r,
boolean editable,
Resizer.ResizerListener rl)
Creates a new instance of Resizer
|
Modifier and Type | Method and Description |
---|---|
JComponent |
getComponent() |
boolean |
getEnabled() |
void |
mouseClicked(MouseEvent mouseEvent) |
void |
mouseDragged(MouseEvent mouseEvent) |
void |
mouseEntered(MouseEvent mouseEvent) |
void |
mouseExited(MouseEvent mouseEvent) |
void |
mouseMoved(MouseEvent mouseEvent) |
void |
mousePressed(MouseEvent mouseEvent) |
void |
mouseReleased(MouseEvent mouseEvent) |
void |
setEnabled(boolean enabled) |
void |
setMaxSize(Dimension d) |
void |
setMinSize(Dimension d) |
void |
setRect(Rectangle r) |
public static final int MARGIN
public Resizer(JComponent jc, Rectangle r, boolean editable, Resizer.ResizerListener rl)
public void setEnabled(boolean enabled)
public boolean getEnabled()
public void setMinSize(Dimension d)
public void setMaxSize(Dimension d)
public void setRect(Rectangle r)
public void mouseClicked(MouseEvent mouseEvent)
mouseClicked
in interface MouseListener
public void mouseDragged(MouseEvent mouseEvent)
mouseDragged
in interface MouseMotionListener
public void mouseEntered(MouseEvent mouseEvent)
mouseEntered
in interface MouseListener
public void mouseExited(MouseEvent mouseEvent)
mouseExited
in interface MouseListener
public void mouseMoved(MouseEvent mouseEvent)
mouseMoved
in interface MouseMotionListener
public void mousePressed(MouseEvent mouseEvent)
mousePressed
in interface MouseListener
public void mouseReleased(MouseEvent mouseEvent)
mouseReleased
in interface MouseListener
public JComponent getComponent()
Copyright © 2004-15 Francesc Busquets (fbusquets@xtec.cat) & Departament d'Educació de la Generalitat de Catalunya (info@xtec.cat)
Licensed under the terms of the GNU General Public License.