BasicFieldAngleView

public class BasicFieldAngleView extends AppCompatTextView
implements FieldView

Renders an angle as part of a Block.

Field Summary

protected FieldAngle mAngleField
protected boolean mDegreeAtStart Whether the degree symbol comes before the numeric text, the RTL standard.
protected Field.Observer mFieldObserver

Public Constructor Summary

BasicFieldAngleView(Context context)
BasicFieldAngleView(Context context, AttributeSet attrs)
BasicFieldAngleView(Context context, AttributeSet attrs, int defStyleAttr)

Public Method Summary

Field
void
setField(Field field)
Sets the Field model for this view.
void
unlinkField()
Disconnect the model from this view.

Protected Method Summary

void
onConfigurationChanged(Configuration newConfig)

Inherited Method Summary

Fields

protected FieldAngle mAngleField

protected boolean mDegreeAtStart

Whether the degree symbol comes before the numeric text, the RTL standard.

protected Field.Observer mFieldObserver

Public Constructors

public BasicFieldAngleView (Context context)

Parameters
context

public BasicFieldAngleView (Context context, AttributeSet attrs)

Parameters
context
attrs

public BasicFieldAngleView (Context context, AttributeSet attrs, int defStyleAttr)

Parameters
context
attrs
defStyleAttr

Public Methods

public Field getField ()

public void setField (Field field)

Sets the Field model for this view. If null the current field will be disconnected from the view if one is set. The field must be of the appropriate type for the specific view implementation or a ClassCastException may be thrown.

Parameters
field The field backing this view.

public void unlinkField ()

Disconnect the model from this view.

Protected Methods

protected void onConfigurationChanged (Configuration newConfig)

Parameters
newConfig