|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.pentec.gui.aoi.AoiAdapter
com.pentec.gui.aoi.aois.EllipticalAOI
public class EllipticalAOI
| Field Summary | |
|---|---|
private java.awt.geom.Ellipse2D.Float |
ellipse
|
| Fields inherited from interface com.pentec.gui.aoi.AOI |
|---|
DEFAULT_COLOR |
| Constructor Summary | |
|---|---|
EllipticalAOI(double x,
double y,
double width,
double height)
|
|
EllipticalAOI(java.awt.geom.Ellipse2D.Float aoi)
|
|
EllipticalAOI(java.awt.geom.Ellipse2D.Float aoi,
java.lang.String $Name)
|
|
EllipticalAOI(java.awt.geom.Ellipse2D.Float aoi,
java.lang.String $Name,
boolean isFilled,
java.awt.Color color)
|
|
EllipticalAOI(float x,
float y,
float width,
float height)
|
|
EllipticalAOI(java.awt.Rectangle aoi)
|
|
EllipticalAOI(java.awt.Rectangle aoi,
java.lang.String $Name)
|
|
| Method Summary | |
|---|---|
boolean |
contains(double x,
double y)
Is the point described contained within 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. |
AoiEditor |
getEditor(DataFrame owner)
Return an appropriate new editor for the AOI given the DataFrame the AOI is in |
int |
getHeight()
|
int |
getWidth()
|
int |
getX()
|
int |
getY()
|
AOI |
scale(APanel owner)
Scale thes actual AOI coordinates 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 |
setCorner(int iX,
int iY)
|
void |
setHeight(int iHeight)
|
void |
setRect(int iX,
int iY,
int iWidth,
int iHeight)
|
void |
setWidth(int iWidth)
|
void |
setX(int iX)
|
void |
setY(int iY)
|
java.lang.String |
toString()
|
void |
translate(double dx,
double dy)
Translate the AOI |
| Methods inherited from class com.pentec.gui.aoi.AoiAdapter |
|---|
addChangeListener, contains, contains, contains, getBounds, getBounds2D, getChangeListeners, getColor, getEnclosure, getName, getPathIterator, getPathIterator, intersects, intersects, isFillEnabled, notifyListeners, removeChangeListener, setColor, setFillEnabled, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.pentec.gui.aoi.AOI |
|---|
addChangeListener, getChangeListeners, getColor, getEnclosure, getName, isFillEnabled, removeChangeListener, setColor, setFillEnabled, setName |
| Methods inherited from interface java.awt.Shape |
|---|
contains, contains, contains, getBounds, getBounds2D, getPathIterator, getPathIterator, intersects, intersects |
| Field Detail |
|---|
private final java.awt.geom.Ellipse2D.Float ellipse
| Constructor Detail |
|---|
public EllipticalAOI(double x,
double y,
double width,
double height)
public EllipticalAOI(java.awt.geom.Ellipse2D.Float aoi)
public EllipticalAOI(java.awt.geom.Ellipse2D.Float aoi,
java.lang.String $Name)
public EllipticalAOI(java.awt.geom.Ellipse2D.Float aoi,
java.lang.String $Name,
boolean isFilled,
java.awt.Color color)
public EllipticalAOI(float x,
float y,
float width,
float height)
public EllipticalAOI(java.awt.Rectangle aoi)
public EllipticalAOI(java.awt.Rectangle aoi,
java.lang.String $Name)
| Method Detail |
|---|
public boolean contains(double x,
double y)
AoiAdapter
contains in interface java.awt.Shapecontains in class AoiAdapterx - X coordinatey - Y coordinate
public AOI duplicate()
AOI
duplicate in interface AOIpublic java.awt.Point getCenter()
AOI
getCenter in interface AOIpublic AoiEditor getEditor(DataFrame owner)
AOI
getEditor in interface AOIowner - DataFrame owning the AOI
public int getHeight()
public int getWidth()
public int getX()
public int getY()
public AOI scale(APanel owner)
scale in interface AOIowner - APanel to which to scale
public AOI scale(double dx,
double dy)
AOI
scale in interface AOIdx - X scale factordy - Y scale factor
public void setCenter(java.awt.Point center)
AOI
setCenter in interface AOIcenter - new center point
public void setCorner(int iX,
int iY)
public void setHeight(int iHeight)
public void setRect(int iX,
int iY,
int iWidth,
int iHeight)
public void setWidth(int iWidth)
public void setX(int iX)
public void setY(int iY)
public java.lang.String toString()
toString in class java.lang.Object
public void translate(double dx,
double dy)
AOI
translate in interface AOIdx - X translation amountdy - Y translation amount
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||