public class OverlayMarker extends OverlayObject
Modifier and Type | Field and Description |
---|---|
protected static String |
COORDS
The names of the statistics this object reports.
|
protected static String[] |
STAT_TYPES |
protected float |
width
The default width of the marker.
|
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 |
---|
OverlayMarker(OverlayTransform overlay)
Constructs an uninitialized measurement marker.
|
OverlayMarker(OverlayTransform overlay,
float x,
float y)
Constructs a measurement marker.
|
Modifier and Type | Method and Description |
---|---|
DataImpl |
getData()
Gets VisAD data object representing this overlay.
|
protected float |
getDefaultWidth()
Returns the defualt width of this marker.
|
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.
|
protected float |
getWidth()
Returns the width of this marker.
|
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 |
isScalable()
OverlayMarker's are scalable--returns true.
|
void |
rescale(float multiplier)
Rescales an OverlayMarker.
|
String |
toString()
Gets a short string representation of this measurement marker.
|
areBoundsEditable, canBeFilled, getColor, getGroup, getNotes, getText, getX, getX2, getY, getY2, hasEndpoint2, hasText, isDrawing, isFilled, isSelected, setBoundaries, setColor, setCoords, setCoords2, setDrawing, setFilled, setGroup, setNotes, setSelected, setText, setX, setX2, setY, setY2
protected static final String COORDS
protected static final String[] STAT_TYPES
protected float width
public OverlayMarker(OverlayTransform overlay)
public OverlayMarker(OverlayTransform overlay, float x, float y)
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 isScalable()
isScalable
in class OverlayObject
public void rescale(float multiplier)
rescale
in class OverlayObject
protected float getDefaultWidth()
protected float getWidth()
Copyright © 2015–2022 SciJava. All rights reserved.