ICY Version 1.0.1.0
Classes | Public Member Functions | Protected Member Functions

icy.painter.Anchor2D Class Reference

Inheritance diagram for icy.painter.Anchor2D:
icy.painter.AbstractPainter icy.file.xml.XMLPersistent icy.painter.PainterAdaptater icy.common.IcyChangedListener icy.painter.Painter

List of all members.

Classes

interface  Anchor2DListener

Public Member Functions

 Anchor2D (Sequence sequence, double x, double y, int ray, Color color)
 Anchor2D (Sequence sequence, Point2D position, int ray, Color color)
 Anchor2D (Point2D position, int ray, Color color)
 Anchor2D (Sequence sequence, double x, double y, int ray)
 Anchor2D (double x, double y, int ray)
 Anchor2D (Sequence sequence, Point2D position, int ray)
 Anchor2D (Point2D position, int ray)
 Anchor2D (Sequence sequence, double x, double y)
 Anchor2D (double x, double y)
 Anchor2D (Sequence sequence, Point2D position)
 Anchor2D (Point2D position)
 Anchor2D (Sequence sequence)
double getX ()
void setX (double x)
double getY ()
void setY (double y)
Point2D getPosition ()
void moveTo (Point2D p)
void moveTo (double x, double y)
void setPosition (Point2D p)
void setPosition (double x, double y)
void translate (double dx, double dy)
int getRay ()
void setRay (int value)
Color getColor ()
void setColor (Color value)
boolean isSelected ()
void setSelected (boolean value)
boolean isOver (IcyCanvas canvas, Point2D p)
boolean isOver (IcyCanvas canvas, double x, double y)
void addListener (Anchor2DListener listener)
void removeListener (Anchor2DListener listener)
void paint (Graphics2D g, Sequence sequence, IcyCanvas canvas)
void mouseDrag (MouseEvent e, Point2D imagePoint, IcyCanvas canvas)
void mouseMove (MouseEvent e, Point2D imagePoint, IcyCanvas canvas)
boolean loadFromXML (Node node)
boolean saveToXML (Node node)

Protected Member Functions

void positionChanged ()
void fireChangedEvent (PainterEvent event)

Detailed Description

Author:
Stephane

Constructor & Destructor Documentation

icy.painter.Anchor2D.Anchor2D ( Sequence  sequence,
double  x,
double  y,
int  ray,
Color  color 
)
Parameters:
sequence
x
y
ray
color
icy.painter.Anchor2D.Anchor2D ( Sequence  sequence,
Point2D  position,
int  ray,
Color  color 
)
Parameters:
sequence
position
ray
color
icy.painter.Anchor2D.Anchor2D ( Point2D  position,
int  ray,
Color  color 
)
Parameters:
position
ray
color
icy.painter.Anchor2D.Anchor2D ( Sequence  sequence,
double  x,
double  y,
int  ray 
)
Parameters:
sequence
x
y
ray
icy.painter.Anchor2D.Anchor2D ( double  x,
double  y,
int  ray 
)
Parameters:
x
y
ray
icy.painter.Anchor2D.Anchor2D ( Sequence  sequence,
Point2D  position,
int  ray 
)
Parameters:
sequence
position
ray
icy.painter.Anchor2D.Anchor2D ( Point2D  position,
int  ray 
)
Parameters:
position
ray
icy.painter.Anchor2D.Anchor2D ( Sequence  sequence,
double  x,
double  y 
)
Parameters:
sequence
x
y
icy.painter.Anchor2D.Anchor2D ( double  x,
double  y 
)
Parameters:
x
y
icy.painter.Anchor2D.Anchor2D ( Sequence  sequence,
Point2D  position 
)
Parameters:
sequence
position
icy.painter.Anchor2D.Anchor2D ( Point2D  position)
Parameters:
position
icy.painter.Anchor2D.Anchor2D ( Sequence  sequence)
Parameters:
sequence

Member Function Documentation

Color icy.painter.Anchor2D.getColor ( )
Returns:
the color
int icy.painter.Anchor2D.getRay ( )
Returns:
the ray
double icy.painter.Anchor2D.getX ( )
Returns:
the x
double icy.painter.Anchor2D.getY ( )
Returns:
the y
boolean icy.painter.Anchor2D.isSelected ( )
Returns:
the selected
boolean icy.painter.Anchor2D.loadFromXML ( Node  node)

LOAD

Implements icy.file.xml.XMLPersistent.

void icy.painter.Anchor2D.mouseDrag ( MouseEvent  e,
Point2D  imagePoint,
IcyCanvas  canvas 
)
Parameters:
emouse event
imagePointmouse position in image coordinates
canvasicy canvas

Reimplemented from icy.painter.PainterAdaptater.

void icy.painter.Anchor2D.mouseMove ( MouseEvent  e,
Point2D  imagePoint,
IcyCanvas  canvas 
)
Parameters:
emouse event
imagePointmouse position in image coordinates
canvasicy canvas

Reimplemented from icy.painter.PainterAdaptater.

void icy.painter.Anchor2D.paint ( Graphics2D  g,
Sequence  sequence,
IcyCanvas  canvas 
)

paint method called to draw the painter

Reimplemented from icy.painter.PainterAdaptater.

void icy.painter.Anchor2D.positionChanged ( ) [protected]

called when anchor position has changed

boolean icy.painter.Anchor2D.saveToXML ( Node  node)

SAVE

Implements icy.file.xml.XMLPersistent.

void icy.painter.Anchor2D.setColor ( Color  value)
Parameters:
valuethe color to set
void icy.painter.Anchor2D.setRay ( int  value)
Parameters:
valuethe ray to set
void icy.painter.Anchor2D.setSelected ( boolean  value)
Parameters:
valuethe selected to set
void icy.painter.Anchor2D.setX ( double  x)
Parameters:
xthe x to set
void icy.painter.Anchor2D.setY ( double  y)
Parameters:
ythe y to set

The documentation for this class was generated from the following file:
 All Classes Functions Variables