|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface AOI
An AOI describes the shape of an area of interest and provides other basic services needed to manage such an area. An AOI is defined as the integer bounds of an area from 1 to N. Due to a number of operations performed on AOIs, the bounds should never exceed 1 or N. Doing so may raise a bounds exception.
| Field Summary | |
|---|---|
static java.awt.Color |
DEFAULT_COLOR
Default color used to draw an AOI |
| Method Summary | |
|---|---|
void |
addChangeListener(AoiChangeListener changeListener)
Add a listener to the AOI |
AOI |
duplicate()
Create a new identical AOI (just like clone but returns an AOI instead of an Object for convenience) |
java.awt.Point |
getCenter()
Get the center of the AOI. |
AoiChangeListener[] |
getChangeListeners()
Get the current listeners to the AOI |
java.awt.Color |
getColor()
Get the color used to draw the AOI |
AoiEditor |
getEditor(DataFrame owner)
Return an appropriate new editor for the AOI given the DataFrame the AOI is in |
java.awt.Rectangle |
getEnclosure()
Get a Rectangle enclosing the AOI |
java.lang.String |
getName()
Get the name of the AOI |
boolean |
isFillEnabled()
Return if the AOI should be drawn filled or not |
void |
removeChangeListener(AoiChangeListener changeListener)
Remove a listener from the AOI |
AOI |
scale(APanel owner)
Returns a new AOI with coordinates scaled to fit the APanel's current display size |
AOI |
scale(double dx,
double dy)
Returns a new scaled AOI |
void |
setCenter(java.awt.Point center)
Set the AOI's position by recentering it |
void |
setColor(java.awt.Color color)
Set the color used to draw the AOI |
void |
setFillEnabled(boolean isFilled)
Set if the AOI should be drawn filled or not |
void |
setName(java.lang.String $Name)
Set the name of the AOI |
void |
translate(double dx,
double dy)
Translate the AOI |
| Methods inherited from interface java.awt.Shape |
|---|
contains, contains, contains, contains, getBounds, getBounds2D, getPathIterator, getPathIterator, intersects, intersects |
| Field Detail |
|---|
static final java.awt.Color DEFAULT_COLOR
| Method Detail |
|---|
void addChangeListener(AoiChangeListener changeListener)
changeListener - listener to addAOI duplicate()
java.awt.Point getCenter()
AoiChangeListener[] getChangeListeners()
java.awt.Color getColor()
AoiEditor getEditor(DataFrame owner)
owner - DataFrame owning the AOI
java.awt.Rectangle getEnclosure()
java.lang.String getName()
boolean isFillEnabled()
void removeChangeListener(AoiChangeListener changeListener)
changeListener - listener to removeAOI scale(APanel owner)
owner - APanel to which to scale
AOI scale(double dx,
double dy)
dx - X scale factordy - Y scale factor
void setCenter(java.awt.Point center)
center - new center pointvoid setColor(java.awt.Color color)
color - color of the AOIvoid setFillEnabled(boolean isFilled)
isFilled - fill valuevoid setName(java.lang.String $Name)
$Name - name of the AOI
void translate(double dx,
double dy)
dx - X translation amountdy - Y translation amount
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||