public class OverlayOval extends OverlayObject
Modifier and Type | Field and Description |
---|---|
protected static float[][] |
ARC
Computed (X, Y) pairs for top 1/2 of a unit circle.
|
static String |
AREA |
static String |
CIRC |
static String |
COORDS
The names of the statistics this object reports.
|
static String |
CTR |
static String |
ECC |
static String |
MAJ |
static String |
MIN |
static String |
RAD |
protected static String[] |
STAT_TYPES |
color, drawing, filled, GLOW_ALPHA, GLOW_COLOR, GLOW_WIDTH, group, horizGridCount, notes, overlay, selected, text, vertGridCount, x1, x2, xGrid1, xGrid2, xGrid3, xGrid4, y1, y2, yGrid1, yGrid2, yGrid3, yGrid4
Constructor and Description |
---|
OverlayOval(OverlayTransform overlay)
Constructs an uninitialized bounding oval.
|
OverlayOval(OverlayTransform overlay,
float x1,
float y1,
float x2,
float y2)
Constructs an bounding oval.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canBeFilled()
True iff this overlay supports the filled parameter.
|
DataImpl |
getData()
Gets VisAD data object representing this overlay.
|
double |
getDistance(double x,
double y)
Computes the shortest distance from this object to the given point.
|
String |
getStat(String name)
Returns a specific statistic of this object.
|
String |
getStatistics()
Retrieves useful statistics about this overlay.
|
static String[] |
getStatTypes()
Returns the names of the statistics this object reports.
|
boolean |
hasData()
Returns whether this object is drawable, i.e., is of nonzero size, area,
length, etc.
|
boolean |
hasEndpoint()
True iff this overlay has an endpoint coordinate pair.
|
boolean |
hasEndpoint2()
True iff this overlay has a second endpoint coordinate pair.
|
String |
toString()
Gets a short string representation of this overlay oval.
|
areBoundsEditable, getColor, getGroup, getNotes, getText, getX, getX2, getY, getY2, hasText, isDrawing, isFilled, isScalable, isSelected, rescale, setBoundaries, setColor, setCoords, setCoords2, setDrawing, setFilled, setGroup, setNotes, setSelected, setText, setX, setX2, setY, setY2
public static final String COORDS
public static final String CTR
public static final String RAD
public static final String MAJ
public static final String MIN
public static final String AREA
public static final String ECC
public static final String CIRC
protected static final String[] STAT_TYPES
protected static final float[][] ARC
public OverlayOval(OverlayTransform overlay)
public OverlayOval(OverlayTransform overlay, float x1, float y1, float x2, float y2)
public static String[] getStatTypes()
public boolean hasData()
hasData
in class OverlayObject
public DataImpl getData()
getData
in class OverlayObject
public double getDistance(double x, double y)
getDistance
in class OverlayObject
public String getStat(String name)
getStat
in class OverlayObject
public String getStatistics()
getStatistics
in class OverlayObject
public boolean hasEndpoint()
hasEndpoint
in class OverlayObject
public boolean hasEndpoint2()
hasEndpoint2
in class OverlayObject
public boolean canBeFilled()
canBeFilled
in class OverlayObject
Copyright © 2015–2022 SciJava. All rights reserved.