Style Intelligence v12.0

inetsoft.report.event
Class EventPoint

java.lang.Object
  extended by java.awt.geom.Point2D
      extended by java.awt.Point
          extended by inetsoft.report.event.EventPoint
All Implemented Interfaces:
Serializable, Cloneable

public class EventPoint
extends Point

This class is used to specify the location of an event. It can be either row, column or cell.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.geom.Point2D
Point2D.Double, Point2D.Float
 
Field Summary
 
Fields inherited from class java.awt.Point
x, y
 
Method Summary
static EventPoint at(Point pt)
          Create an event location from a point.
static EventPoint cell(int r, int c)
          Return a location for cell.
static EventPoint column(int c)
          Return a location for column.
 int getColumn()
          Get the column index of the event location.
 int getRow()
          Get the row index of the event location.
static EventPoint row(int r)
          Return a location for row.
 void setColumn(int c)
          Set the column index of the event location.
 void setRow(int r)
          Set the row index of the event location.
 
Methods inherited from class java.awt.Point
equals, getLocation, getX, getY, move, setLocation, setLocation, setLocation, toString, translate
 
Methods inherited from class java.awt.geom.Point2D
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, hashCode, setLocation
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

at

public static EventPoint at(Point pt)
Create an event location from a point. The x in the point is used as the column index, and y is used as the row index.


row

public static EventPoint row(int r)
Return a location for row.

Parameters:
r - row index.

column

public static EventPoint column(int c)
Return a location for column.

Parameters:
c - column index.

cell

public static EventPoint cell(int r,
                              int c)
Return a location for cell.

Parameters:
r - row index.
c - column index.

getRow

public int getRow()
Get the row index of the event location.


setRow

public void setRow(int r)
Set the row index of the event location.


getColumn

public int getColumn()
Get the column index of the event location.


setColumn

public void setColumn(int c)
Set the column index of the event location.


Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.