Search in sources :

Example 1 with MemberState

use of com.herewhite.sdk.domain.MemberState in project whiteboard-android by netless-io.

the class RoomActivity method pencil.

public void pencil(MenuItem item) {
    logAction();
    MemberState memberState = new MemberState();
    memberState.setStrokeColor(new int[] { 99, 99, 99 });
    memberState.setCurrentApplianceName(Appliance.PENCIL);
    memberState.setStrokeWidth(10);
    memberState.setTextSize(10);
    mRoom.setMemberState(memberState);
}
Also used : MemberState(com.herewhite.sdk.domain.MemberState)

Example 2 with MemberState

use of com.herewhite.sdk.domain.MemberState in project whiteboard-android by netless-io.

the class RoomActivity method shape.

public void shape(MenuItem item) {
    logAction();
    MemberState memberState = new MemberState();
    memberState.setStrokeColor(new int[] { 200, 200, 200 });
    // defalut Shape Triangle
    memberState.setCurrentApplianceName(Appliance.SHAPE);
    // memberState.setShapeType(ShapeType.Rhombus);
    memberState.setStrokeWidth(4);
    memberState.setTextSize(10);
    mRoom.setMemberState(memberState);
}
Also used : MemberState(com.herewhite.sdk.domain.MemberState)

Example 3 with MemberState

use of com.herewhite.sdk.domain.MemberState in project whiteboard-android by netless-io.

the class RoomActivity method color.

public void color(MenuItem item) {
    logAction();
    MemberState memberState = new MemberState();
    memberState.setStrokeColor(new int[] { 200, 200, 200 });
    memberState.setCurrentApplianceName(Appliance.PENCIL);
    memberState.setStrokeWidth(4);
    memberState.setTextSize(10);
    mRoom.setMemberState(memberState);
}
Also used : MemberState(com.herewhite.sdk.domain.MemberState)

Example 4 with MemberState

use of com.herewhite.sdk.domain.MemberState in project whiteboard-android by netless-io.

the class PptResourceCacheActivity method selector.

public void selector(MenuItem item) {
    logAction();
    MemberState memberState = new MemberState();
    memberState.setCurrentApplianceName(Appliance.SELECTOR);
    mRoom.setMemberState(memberState);
}
Also used : MemberState(com.herewhite.sdk.domain.MemberState)

Example 5 with MemberState

use of com.herewhite.sdk.domain.MemberState in project whiteboard-android by netless-io.

the class PptResourceCacheActivity method textArea.

public void textArea(MenuItem item) {
    logAction();
    MemberState memberState = new MemberState();
    memberState.setStrokeColor(new int[] { 99, 99, 99 });
    memberState.setCurrentApplianceName(Appliance.TEXT);
    memberState.setStrokeWidth(10);
    memberState.setTextSize(10);
    mRoom.setMemberState(memberState);
}
Also used : MemberState(com.herewhite.sdk.domain.MemberState)

Aggregations

MemberState (com.herewhite.sdk.domain.MemberState)15 Test (org.junit.Test)2 SDKError (com.herewhite.sdk.domain.SDKError)1 Ignore (org.junit.Ignore)1