|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IHandler
This interface defines a handler.
This file is part of LaTeXDraw
Copyright (c) 2005-2012 Arnaud BLOUIN
LaTeXDraw is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
LaTeXDraw is distributed without any warranty; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the GNU General Public License for more details.
08/29/11
Field Summary | |
---|---|
static int |
DEFAULT_SIZE
The default size of a handler. |
Method Summary | |
---|---|
IPoint |
getCentre()
|
java.awt.Color |
getColour()
|
int |
getOpacity()
|
double |
getSize()
|
double |
getX()
|
double |
getY()
|
void |
paint(java.awt.Graphics2D g)
paint the handler. |
void |
setOpacity(int opacity)
|
void |
setPoint(double x,
double y)
Changes the centre of the handler and updates the shape. |
void |
setSize(double size)
Sets the width of the handler. |
void |
update()
Updates the handler. |
void |
updateFromShape(java.awt.Shape shape)
Updates the handler using the given shape. |
Methods inherited from interface org.malai.picking.Pickable |
---|
contains, getPicker |
Field Detail |
---|
static final int DEFAULT_SIZE
Method Detail |
---|
int getOpacity()
void setOpacity(int opacity)
opacity
- the opacity to set.void updateFromShape(java.awt.Shape shape)
shape
- The shape used to updated the handler.void setPoint(double x, double y)
x
- The new X coordinate.y
- The new Y coordinate.void setSize(double size)
size
- Its new width. Must be greater than 0.double getX()
IPoint getCentre()
double getY()
void paint(java.awt.Graphics2D g)
g
- The object into which objects are painted.void update()
double getSize()
java.awt.Color getColour()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |