public class SimpleRectangle extends Polyline
Rectangle
Modifier and Type | Class and Description |
---|---|
static interface |
SimpleRectangle.OnRectFillTypeChangedListener |
static interface |
SimpleRectangle.OnRectPropertiesChangedListener |
Polyline.OnAltitudeModeChangedListener, Polyline.OnHeightStyleChangedListener, Polyline.OnLabelsChangedListener, Polyline.OnLabelTextSizeChanged
Shape.OnBasicLineStyleChangedListener, Shape.OnFillColorChangedListener, Shape.OnPointsChangedListener, Shape.OnStrokeColorChangedListener, Shape.OnStrokeWeightChangedListener, Shape.OnStyleChangedListener
MapItem.OnClickableChangedListener, MapItem.OnGroupChangedListener, MapItem.OnHeightChangedListener, MapItem.OnMetadataChangedListener, MapItem.OnTypeChangedListener, MapItem.OnVisibleChangedListener, MapItem.OnZOrderChangedListener
_points, DEFAULT_MAX_LABEL_RENDER_RESOLUTION, DEFAULT_MAX_LINE_RENDER_RESOLUTION, DEFAULT_MIN_LABEL_RENDER_RESOLUTION, DEFAULT_MIN_LINE_RENDER_RESOLUTION, HEIGHT_EXTRUDE_CENTER_ALT, HEIGHT_EXTRUDE_DEFAULT, HEIGHT_EXTRUDE_MAX_ALT, HEIGHT_EXTRUDE_MIN_ALT, HEIGHT_EXTRUDE_PER_POINT, HEIGHT_STYLE_NONE, HEIGHT_STYLE_OUTLINE, HEIGHT_STYLE_OUTLINE_SIMPLE, HEIGHT_STYLE_POLYGON, HEIGHT_STYLE_TOP_ONLY, minimumBoundingBox, PARTITION_SIZE, STYLE_CLOSED_MASK, STYLE_OUTLINE_HALO_MASK, STYLE_OUTLINE_STROKE_MASK
BASIC_LINE_STYLE_DASHED, BASIC_LINE_STYLE_DOTTED, BASIC_LINE_STYLE_OUTLINED, BASIC_LINE_STYLE_SOLID, STYLE_FILLED_MASK, STYLE_STROKE_MASK
CLICKABLE_DEFAULT, EDITABLE_DEFAULT, EMPTY_TYPE, HIT_RATIO_DEFAULT, MOVABLE_DEFAULT, VISIBLE_DEFAULT, ZORDER_DEFAULT, ZORDER_HITTEST_COMPARATOR, ZORDER_RENDER_COMPARATOR
metadata
Constructor and Description |
---|
SimpleRectangle(long serialId,
MetaDataHolder metadata,
java.lang.String uid) |
SimpleRectangle(java.lang.String uid) |
Modifier and Type | Method and Description |
---|---|
void |
addOnRectFillTypeChangedListener(SimpleRectangle.OnRectFillTypeChangedListener l) |
void |
addOnRectPropChangedListener(SimpleRectangle.OnRectPropertiesChangedListener l) |
double |
getAngle()
Returns the angle of rotation of the rectangle based on true north in degrees
|
GeoPointMetaData |
getCenter()
Provides the center point for the Shape, or null if an error has occurred.
|
int |
getFillStyle()
Returns the fill style for this ellipse.
|
double |
getHeight()
Returns the height of the rectangle in meters
|
double |
getWidth()
Returns the width of the rectangle in meters
|
protected void |
OnRectFillTypeChanged() |
protected void |
OnRectPropertiesChanged(int changed) |
void |
removeOnRectFillTypeChangedListener(SimpleRectangle.OnRectFillTypeChangedListener l) |
void |
removeOnRectPropChangedListener(SimpleRectangle.OnRectPropertiesChangedListener l) |
void |
setAngle(double newAngle)
Set the angle of rotation in degrees from true north.
|
void |
setCenter(GeoPointMetaData newCenter)
The center point of the simple rectangle
|
void |
setCenterHeightWidth(GeoPointMetaData newCenter,
double newH,
double newW)
Set the center, width and height of the rectangle more efficiently than one at a time.
|
void |
setCenterHeightWidthAngle(GeoPointMetaData newCenter,
double newH,
double newW,
double newAngle)
Set the center, width and height of the rectangle more efficiently than one at a time.
|
void |
setFillStyle(int newFill)
Sets the fill style
|
void |
setHeight(double newH)
Set the height of the rectangle in meters
|
void |
setWidth(double newW)
Set the width of the rectangle in meters
|
addHeightStyle, addOnHeightStyleChangedListener, addOnLabelsChangedListener, addOnLabelTextSizeChangedListener, drawCanvas, getBounds, getHeightExtrudeMode, getHeightStyle, getLabels, getLabelTextSize, getLabelTypeface, getLineLabel, getMetaDataPoints, getPerimeterOrLength, getPoints, getPoints, getPoints, getRelativeBounds, getTotalDistance, onHeightStyleChanged, onLabelsChanged, onLabelTextSizeChanged, onMetadataChanged, onPointsChanged, preDrawCanvas, removeHeightStyle, removeOnHeightStyleChangedListener, removeOnLabelsChangedListener, removeOnLabelTextSizeChangedListner, setHeightExtrudeMode, setHeightStyle, setLabels, setLabelTextSize, setLabelTextSize, setLabelTextTypeface, setLineLabel, setMaxLabelRenderResolution, setMaxRenderResolution, setMinLabelRenderResolution, setMinRenderResolution, setPoints, setPoints, setPoints, setPoints
addOnBasicLineStyleChangedListener, addOnFillColorChangedListener, addOnPointsChangedListener, addOnStrokeColorChangedListener, addOnStrokeWeightChangedListener, addOnStyleChangedListener, addStyleBits, findTouchPoint, getArea, getBasicLineStyle, getClickPoint, getFillColor, getGeoPointMetaData, getIconColor, getStrokeColor, getStrokeStyle, getStrokeWeight, getStyle, getTitle, onBasicLineStyleChanged, onFillColorChanged, onStrokeColorChanged, onStrokeStyleChanged, onStrokeWeightChanged, onStyleChanged, removeOnBasicLineStyleChangedListener, removeOnFillColorChangedListener, removeOnPointsChangedListener, removeOnStrokeColorChangedListener, removeOnStrokeWeightChangedListener, removeOnStyleChangedListener, removeStyleBits, setBasicLineStyle, setColor, setColor, setFillAlpha, setFillColor, setStrokeColor, setStrokeStyle, setStrokeWeight, setStyle, setTitle, setTouchPoint, wrap180
addOnAltitudeModeChangedListener, addOnClickableChangedListener, addOnGroupChangedListener, addOnHeightChangedListener, addOnMetadataChangedListener, addOnMetadataChangedListener, addOnTypeChangedListener, addOnVisibleChangedListener, addOnZOrderChangedListener, computeDistance, copyMetaData, createSerialId, dispose, getAltitudeMode, getClickable, getEditable, getGroup, getHashtags, getHitRadius, getIconDrawable, getMetaBoolean, getMetaString, getMovable, getRadialMenuPath, getRemarks, getRemarksKey, getSerialId, getTag, getType, getUID, getUniqueMapItemName, getURI, getVisible, getVisible, getZOrder, isTouchable, notifyMetadataChanged, onAdded, onAltitudeModeChanged, onClickableChanged, onGroupChanged, onHeightChanged, onRemoved, onTypeChanged, onVisibilityConditions, onVisibleChanged, onZOrderChanged, persist, refresh, removeFromGroup, removeMetaData, removeOnAltitudeModeChangedListener, removeOnClickableChangedListener, removeOnGroupChangedListener, removeOnHeightChangedListener, removeOnMetadataChangedListener, removeOnMetadataChangedListener, removeOnTypeChangedListener, removeOnVisibleChangedListener, removeOnZOrderChangedListener, setAltitudeMode, setClickable, setClickPoint, setEditable, setHashtags, setMetaBoolean, setMetaData, setMetaDouble, setMetaIntArray, setMetaInteger, setMetaLong, setMetaMap, setMetaParcelable, setMetaSerializable, setMetaString, setMetaStringArrayList, setMovable, setRadialMenu, setRemarks, setTag, setTouchable, setType, setVisible, setVisible, setZOrder, testOrthoHit, toString
get, getMetaData, getMetaDouble, getMetaIntArray, getMetaInteger, getMetaLong, getMetaMap, getMetaParcelable, getMetaSerializable, getMetaStringArrayList, hasMetaValue, setMetaDataImpl, toggleMetaData
public SimpleRectangle(java.lang.String uid)
public SimpleRectangle(long serialId, MetaDataHolder metadata, java.lang.String uid)
public void addOnRectPropChangedListener(SimpleRectangle.OnRectPropertiesChangedListener l)
public void removeOnRectPropChangedListener(SimpleRectangle.OnRectPropertiesChangedListener l)
public void addOnRectFillTypeChangedListener(SimpleRectangle.OnRectFillTypeChangedListener l)
public void removeOnRectFillTypeChangedListener(SimpleRectangle.OnRectFillTypeChangedListener l)
public void setCenter(GeoPointMetaData newCenter)
newCenter
- the center pointpublic void setAngle(double newAngle)
newAngle
- the angle of rotation in degreespublic double getAngle()
public void setHeight(double newH)
public double getHeight()
public void setWidth(double newW)
newW
- the width of the rectangle in meterspublic double getWidth()
public void setCenterHeightWidth(GeoPointMetaData newCenter, double newH, double newW)
newCenter
- the new center point for the rectanglenewH
- the height of the rectangle in metersnewW
- the width of the rectangle in meterspublic void setCenterHeightWidthAngle(GeoPointMetaData newCenter, double newH, double newW, double newAngle)
newCenter
- the new center point for the rectanglenewH
- the height of the rectangle in metersnewW
- the width of the rectangle in metersnewAngle
- the angle of the rectangle in degrees offset from true north.protected void OnRectPropertiesChanged(int changed)
public int getFillStyle()
protected void OnRectFillTypeChanged()
public void setFillStyle(int newFill)
newFill
- the fill style one 1 for filled or 0 for unfilled.