public abstract class AbstractSheet extends DrawingRectangle
Modifier and Type | Class and Description |
---|---|
static interface |
AbstractSheet.OnAlphaChangedListener |
static interface |
AbstractSheet.OnLoadListener |
DrawingRectangle.Builder, DrawingRectangle.KmlDrawingRectangleImportFactory
Rectangle.MovePointAction, Rectangle.OnMoveListener
Shape.OnBasicLineStyleChangedListener, Shape.OnFillColorChangedListener, Shape.OnPointsChangedListener, Shape.OnStrokeColorChangedListener, Shape.OnStrokeWeightChangedListener, Shape.OnStyleChangedListener
MapItem.OnAltitudeModeChangedListener, MapItem.OnClickableChangedListener, MapItem.OnGroupChangedListener, MapItem.OnHeightChangedListener, MapItem.OnMetadataChangedListener, MapItem.OnTypeChangedListener, MapItem.OnVisibleChangedListener, MapItem.OnZOrderChangedListener
Modifier and Type | Field and Description |
---|---|
protected java.io.File |
_file |
KEY_BPHA
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
Modifier | Constructor and Description |
---|---|
protected |
AbstractSheet(AbstractSheetData data) |
Modifier and Type | Method and Description |
---|---|
void |
addLoadListener(AbstractSheet.OnLoadListener l) |
void |
addOnAlphaChangedListener(AbstractSheet.OnAlphaChangedListener l) |
int |
getAlpha() |
Marker |
getCenterMarker() |
GeoPoint |
getCenterPoint() |
java.io.File |
getFile()
Get the file used by this rubber sheet
|
int |
getFillColor()
Get the fillColor property value
|
double |
getHeading()
Get the heading of the rectangle based on the bearing between the
back and forward association point
|
boolean |
getLabelVisibility() |
int |
getLoadProgress()
Get the current progress of this item's loading state
|
LoadState |
getLoadState()
Get the current load state
|
GeoPoint |
getPoint(int index) |
boolean |
isLoaded()
Check if this sheet is finished loading
|
void |
load()
Load this sheet's underlying data
|
protected abstract LoadState |
loadImpl()
Underlying load implementation
|
void |
removeLoadListener(AbstractSheet.OnLoadListener l) |
void |
removeOnAlphaChangedListener(AbstractSheet.OnAlphaChangedListener l) |
void |
setAlpha(int alpha) |
void |
setEditable(boolean editable) |
void |
setFillColor(int color)
Set the fillColor property value
|
void |
setHeading(double heading)
Set the heading of the sheet by modifying the rectangle back and
forward association point
|
protected void |
setLoadProgress(int progress) |
void |
setLoadState(LoadState ls) |
void |
setMenu(java.lang.String menuPath) |
void |
setPoints(GeoPointMetaData center,
double width,
double length,
double heading)
NOTE: Should only be set when the points have been calculated to be in a rectangular shape,
or if coming from a CotEvent (which is the same thing).
|
void |
setPoints(GeoPointMetaData p0,
GeoPointMetaData p1,
GeoPointMetaData p2,
GeoPointMetaData p3)
NOTE: Should only be set when the points have been calculated to be in a rectangular shape,
or if coming from a CotEvent (which is the same thing).
|
drawCanvas, getAssocType, getCenterMarkerType, getCornerPointType, getCotType, getMenuPath, getSideMarkerType, getUIDKey, isSupported, preDrawCanvas, toCot, toGpx, toKml, toKmz, toObjectOf, toOgrGeometry
addOnMovedListener, computeCorners, getAnchorItem, getAnchorMarkers, getArea, getAssociationMarkerIndex, getAvgAltitude, getBounds, getCenter, getChildMapGroup, getColor, getEditable, getFilled, getGeoPoints, getIndexOfPoint, getLength, getLineStyle, getMetaDataPoints, getMirrorWidth, getNumPoints, getPerimeterOrLength, getPointAt, getPoints, getStrokeColor, getTitle, getWidth, hasPoint, isCenterShapeMarker, move, move, onGroupChanged, onItemAdded, onItemRemoved, onMoved, onPointChanged, onPointsChanged, onSharedPreferenceChanged, onVisibleChanged, removeOnMovedListener, setBasicLineStyle, setCenterMarker, setCenterPoint, setClickable, setFilled, setHeight, setLabelVisibility, setLength, setLineStyle, setMovable, setPoint, setPointNoRecalc, setStrokeColor, setStrokeWeight, setTitle, setWidth, setZOrder, showLines, showLines, showTacticalOverlay, showTacticalOverlay, toggleMetaData
getAssociationAt, getAssociations, setAssociations
addOnBasicLineStyleChangedListener, addOnFillColorChangedListener, addOnPointsChangedListener, addOnStrokeColorChangedListener, addOnStrokeWeightChangedListener, addOnStyleChangedListener, addStyleBits, findTouchPoint, getBasicLineStyle, getClickPoint, getGeoPointMetaData, getIconColor, getStrokeStyle, getStrokeWeight, getStyle, onBasicLineStyleChanged, onFillColorChanged, onStrokeColorChanged, onStrokeStyleChanged, onStrokeWeightChanged, onStyleChanged, removeOnBasicLineStyleChangedListener, removeOnFillColorChangedListener, removeOnPointsChangedListener, removeOnStrokeColorChangedListener, removeOnStrokeWeightChangedListener, removeOnStyleChangedListener, removeStyleBits, setColor, setColor, setFillAlpha, setStrokeStyle, setStyle, setTouchPoint, wrap180
addOnAltitudeModeChangedListener, addOnClickableChangedListener, addOnGroupChangedListener, addOnHeightChangedListener, addOnMetadataChangedListener, addOnMetadataChangedListener, addOnTypeChangedListener, addOnVisibleChangedListener, addOnZOrderChangedListener, computeDistance, copyMetaData, createSerialId, dispose, getAltitudeMode, getClickable, getGroup, getHashtags, getHeight, getHitRadius, getIconDrawable, getMetaBoolean, getMetaString, getMovable, getRadialMenuPath, getRemarks, getRemarksKey, getSerialId, getTag, getType, getUID, getUniqueMapItemName, getURI, getVisible, getVisible, getZOrder, isTouchable, notifyMetadataChanged, onAdded, onAltitudeModeChanged, onClickableChanged, onHeightChanged, onMetadataChanged, onRemoved, onTypeChanged, onVisibilityConditions, onZOrderChanged, persist, refresh, removeFromGroup, removeMetaData, removeOnAltitudeModeChangedListener, removeOnClickableChangedListener, removeOnGroupChangedListener, removeOnHeightChangedListener, removeOnMetadataChangedListener, removeOnMetadataChangedListener, removeOnTypeChangedListener, removeOnVisibleChangedListener, removeOnZOrderChangedListener, setAltitudeMode, setClickPoint, setHashtags, setMetaBoolean, setMetaData, setMetaDouble, setMetaIntArray, setMetaInteger, setMetaLong, setMetaMap, setMetaParcelable, setMetaSerializable, setMetaString, setMetaStringArrayList, setRadialMenu, setRemarks, setTag, setTouchable, setType, setVisible, setVisible, testOrthoHit, toString
get, getMetaData, getMetaDouble, getMetaIntArray, getMetaInteger, getMetaLong, getMetaMap, getMetaParcelable, getMetaSerializable, getMetaStringArrayList, hasMetaValue, setMetaDataImpl
protected AbstractSheet(AbstractSheetData data)
public java.io.File getFile()
public double getHeading()
public void setHeading(double heading)
heading
- Heading in true degreespublic void setPoints(GeoPointMetaData center, double width, double length, double heading)
Rectangle
public void setPoints(GeoPointMetaData p0, GeoPointMetaData p1, GeoPointMetaData p2, GeoPointMetaData p3)
Rectangle
public GeoPoint getPoint(int index)
public void setEditable(boolean editable)
setEditable
in class Rectangle
public GeoPoint getCenterPoint()
public Marker getCenterMarker()
getCenterMarker
in class Rectangle
public boolean getLabelVisibility()
public void setMenu(java.lang.String menuPath)
public void load()
protected abstract LoadState loadImpl()
public LoadState getLoadState()
public void setLoadState(LoadState ls)
public int getLoadProgress()
protected void setLoadProgress(int progress)
public boolean isLoaded()
public void addLoadListener(AbstractSheet.OnLoadListener l)
public void removeLoadListener(AbstractSheet.OnLoadListener l)
public void setFillColor(int color)
Shape
setFillColor
in class Rectangle
color
- An argb packed Color
public int getFillColor()
Shape
getFillColor
in class Rectangle
Color
public void setAlpha(int alpha)
public int getAlpha()
public void addOnAlphaChangedListener(AbstractSheet.OnAlphaChangedListener l)
public void removeOnAlphaChangedListener(AbstractSheet.OnAlphaChangedListener l)