|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.iver.cit.gvsig.fmap.tools.Behavior.Behavior com.iver.cit.gvsig.fmap.tools.Behavior.PolylineBehavior
Behaviour que espera un listener de tipo MeasureListener.
Field Summary | |
protected java.util.ArrayList |
arrayX
|
protected java.util.ArrayList |
arrayY
|
protected boolean |
isClicked
|
protected PolylineListener |
listener
|
Constructor Summary | |
PolylineBehavior(PolylineListener mli)
Crea un nuevo PolylineBehavior. |
Method Summary | |
protected void |
addPoint(java.awt.Point p)
Añade un punto a la polilínea. |
protected void |
changeLastPoint(java.awt.Point p)
Cambio del último punto. |
protected void |
drawPolyLine(java.awt.Graphics2D g2)
Dibujo de la polilínea. |
ToolListener |
getListener()
Devuelve el ToolListener que está seleccionado. |
void |
mouseDragged(java.awt.event.MouseEvent e)
Reimplementación del método mouseDragged de Behavior. |
void |
mouseMoved(java.awt.event.MouseEvent E)
Reimplementación del método mouseMoved de Behavior. |
void |
mousePressed(java.awt.event.MouseEvent E)
Reimplementación del método mousePressed de Behavior. |
void |
paintComponent(java.awt.Graphics g)
|
void |
setListener(ToolListener listener)
|
Methods inherited from class com.iver.cit.gvsig.fmap.tools.Behavior.Behavior |
getCursor, getMapControl, mouseClicked, mouseEntered, mouseExited, mouseReleased, mouseWheelMoved, setMapControl |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.ArrayList arrayX
protected java.util.ArrayList arrayY
protected boolean isClicked
protected PolylineListener listener
Constructor Detail |
public PolylineBehavior(PolylineListener mli)
mli
- listener.Method Detail |
public void paintComponent(java.awt.Graphics g)
paintComponent
in class Behavior
Behavior.paintComponent(java.awt.Graphics)
public void mousePressed(java.awt.event.MouseEvent E) throws BehaviorException
mousePressed
in class Behavior
E
- MouseEvent
BehaviorException
- Excepción lanzada cuando el Behavior.MouseListener.mousePressed(java.awt.event.MouseEvent)
public void mouseDragged(java.awt.event.MouseEvent e) throws BehaviorException
mouseDragged
in class Behavior
e
- MouseEvent
BehaviorException
- Excepción lanzada cuando el Behavior.MouseMotionListener.mouseDragged(java.awt.event.MouseEvent)
protected void changeLastPoint(java.awt.Point p)
p
- punto.public void mouseMoved(java.awt.event.MouseEvent E) throws BehaviorException
mouseMoved
in class Behavior
BehaviorException
- Excepción lanzada cuando el Behavior.MouseMotionListener.mouseMoved(java.awt.event.MouseEvent)
protected void drawPolyLine(java.awt.Graphics2D g2)
g2
- Graphics2D sobre el que dibujamos.protected void addPoint(java.awt.Point p)
p
- Punto.public void setListener(ToolListener listener)
com.iver.cit.gvsig.fmap.tools.Behavior.Behavior#setListener(com.iver.cit.gvsig.fmap.tools.ToolListener)
public ToolListener getListener()
Behavior
getListener
in class Behavior
Behavior.getListener()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |