public class SimpleOnDragListener extends Object implements OnDragListener, DragPreferencesChangeListener
| Modifier and Type | Class and Description |
|---|---|
static class |
SimpleOnDragListener.DragPreference |
static interface |
SimpleOnDragListener.DragProcessor |
static class |
SimpleOnDragListener.Preference |
static class |
SimpleOnDragListener.Preferences |
static class |
SimpleOnDragListener.PreferenceType |
| Modifier and Type | Field and Description |
|---|---|
static org.solovyev.common.math.Point2d |
axis |
| Constructor and Description |
|---|
SimpleOnDragListener(SimpleOnDragListener.DragProcessor dragProcessor,
SimpleOnDragListener.Preferences preferences) |
SimpleOnDragListener(SimpleOnDragListener.Preferences preferences) |
| Modifier and Type | Method and Description |
|---|---|
static SimpleOnDragListener.Preferences |
getDefaultPreferences(android.content.Context context) |
SimpleOnDragListener.DragProcessor |
getDragProcessor() |
static String |
getPreferenceId(SimpleOnDragListener.PreferenceType preferenceType,
DragDirection direction) |
static SimpleOnDragListener.Preferences |
getPreferences(android.content.SharedPreferences preferences,
android.content.Context context) |
boolean |
isSuppressOnClickEvent() |
boolean |
onDrag(DragButton dragButton,
DragEvent event) |
void |
onDragPreferencesChange(SimpleOnDragListener.Preferences preferences) |
void |
setDragProcessor(SimpleOnDragListener.DragProcessor dragProcessor) |
static org.solovyev.common.interval.Interval<Float> |
transformInterval(SimpleOnDragListener.PreferenceType preferenceType,
DragDirection dragDirection,
org.solovyev.common.interval.Interval<Float> interval) |
@Nonnull public static final org.solovyev.common.math.Point2d axis
public SimpleOnDragListener(@Nonnull SimpleOnDragListener.Preferences preferences)
public SimpleOnDragListener(@Nonnull SimpleOnDragListener.DragProcessor dragProcessor, @Nonnull SimpleOnDragListener.Preferences preferences)
public boolean onDrag(@Nonnull DragButton dragButton, @Nonnull DragEvent event)
onDrag in interface OnDragListenerdragButton - drag button object for which onDrag listener was setevent - drag eventpublic boolean isSuppressOnClickEvent()
isSuppressOnClickEvent in interface OnDragListener@Nonnull public SimpleOnDragListener.DragProcessor getDragProcessor()
public void setDragProcessor(@Nonnull SimpleOnDragListener.DragProcessor dragProcessor)
public void onDragPreferencesChange(@Nonnull SimpleOnDragListener.Preferences preferences)
onDragPreferencesChange in interface DragPreferencesChangeListenerpublic static String getPreferenceId(@Nonnull SimpleOnDragListener.PreferenceType preferenceType, @Nonnull DragDirection direction)
@Nonnull public static SimpleOnDragListener.Preferences getDefaultPreferences(@Nonnull android.content.Context context)
@Nonnull public static SimpleOnDragListener.Preferences getPreferences(@Nonnull android.content.SharedPreferences preferences, @Nonnull android.content.Context context)
@Nonnull public static org.solovyev.common.interval.Interval<Float> transformInterval(@Nonnull SimpleOnDragListener.PreferenceType preferenceType, @Nonnull DragDirection dragDirection, @Nonnull org.solovyev.common.interval.Interval<Float> interval)
Copyright © 2015 se.solovyev. All Rights Reserved.