void setPointOrientation(int angle) { if (mPointAdapter == null) return; if ( /* TDSetting.mLevelOverBasic && */ mItemType == DrawingActivity.SYMBOL_POINT) { // Log.v( TopoDroidApp.TAG, "rotate point " + mParent.mCurrentPoint ); mPointAdapter.setPointOrientation(mParent.mCurrentPoint, angle); // ItemSymbol item = mPointAdapter.getSelectedItem(); // if ( item != null ) { // angle -= (int) item.mSymbol.getAngle(); // mPointAdapter.rotatePoint( mParent.mCurrentPoint, angle ); // } } }
private void setItemAngle(int angle) { if (mItemType == DrawingActivity.SYMBOL_POINT && mPointAdapter != null) { int index = mPointAdapter.getSelectedPos(); // Log.v("DistoX", "set item " + index + " angle " + angle ); mPointAdapter.setPointOrientation(index, angle); // ItemSymbol item = mPointAdapter.get( index ); // if ( item != null ) { // SymbolInterface symbol = item.mSymbol; // if ( symbol != null && symbol.isOrientable() ) { // symbol.setAngle( angle ); // } // } } }