Back to index

moin  1.9.0~rc2
Public Member Functions | Private Member Functions | Private Attributes
CH.ifa.draw.contrib.PolygonHandle Class Reference

A handle for a node on the polygon. More...

List of all members.

Public Member Functions

 PolygonHandle (PolygonFigure owner, Locator l, int index)
 Constructs a polygon handle.
void invokeStep (int x, int y, int anchorX, int anchorY, DrawingView view)
void invokeEnd (int x, int y, int anchorX, int anchorY, DrawingView view)
Point locate ()

Private Member Functions

PolygonFigure myOwner ()

Private Attributes

int fIndex
Locator fLocator

Detailed Description

A handle for a node on the polygon.

Definition at line 19 of file PolygonHandle.java.


Constructor & Destructor Documentation

CH.ifa.draw.contrib.PolygonHandle.PolygonHandle ( PolygonFigure  owner,
Locator  l,
int  index 
) [inline]

Constructs a polygon handle.

Parameters:
ownerthe owning polygon figure. the locator the index of the node associated with this handle.

Definition at line 30 of file PolygonHandle.java.

                                                                  {
    super(owner);
    fLocator = l;
    fIndex = index;
  }

Member Function Documentation

void CH.ifa.draw.contrib.PolygonHandle.invokeEnd ( int  x,
int  y,
int  anchorX,
int  anchorY,
DrawingView  view 
) [inline]

Definition at line 40 of file PolygonHandle.java.

Here is the call graph for this function:

void CH.ifa.draw.contrib.PolygonHandle.invokeStep ( int  x,
int  y,
int  anchorX,
int  anchorY,
DrawingView  view 
) [inline]

Definition at line 36 of file PolygonHandle.java.

                                                                                    {
    myOwner().setPointAt(new Point(x, y), fIndex);
  }

Here is the call graph for this function:

Definition at line 44 of file PolygonHandle.java.

                        {
    return fLocator.locate(owner());
  }

Definition at line 48 of file PolygonHandle.java.

                                  {
    return (PolygonFigure)owner();
  }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 21 of file PolygonHandle.java.

Definition at line 22 of file PolygonHandle.java.


The documentation for this class was generated from the following file: