code stringlengths 73 34.1k | label stringclasses 1
value |
|---|---|
public static RecurrenceIterator join(
RecurrenceIterator a, RecurrenceIterator... b) {
List<RecurrenceIterator> incl = new ArrayList<RecurrenceIterator>();
incl.add(a);
incl.addAll(Arrays.asList(b));
return new CompoundIteratorImpl(
incl, Collections.<Recurre... | java |
private static int[] filterBySetPos(int[] members, int[] bySetPos) {
members = Util.uniquify(members);
IntSet iset = new IntSet();
for (int pos : bySetPos) {
if (pos == 0) {
continue;
}
if (pos < 0) {
pos += members.length;
... | java |
public static DateIterator createDateIterator(
String rdata, Date start, TimeZone tzid, boolean strict)
throws ParseException {
return new RecurrenceIteratorWrapper(
RecurrenceIteratorFactory.createRecurrenceIterator(
rdata, dateToDateValue(start, ... | java |
public static DateIterable createDateIterable(
String rdata, Date start, TimeZone tzid, boolean strict)
throws ParseException {
return new RecurrenceIterableWrapper(
RecurrenceIteratorFactory.createRecurrenceIterable(
rdata, dateToDateValue(start, ... | java |
public final GoogleEntry createEntry(ZonedDateTime start, boolean fullDay) {
GoogleEntry entry = new GoogleEntry();
entry.setTitle("New Entry " + generateEntryConsecutive());
entry.setInterval(new Interval(start.toLocalDate(), start.toLocalTime(), start.toLocalDate(), start.toLocalTime().plusHou... | java |
static Predicate<DateValue> countCondition(final int count) {
return new Predicate<DateValue>() {
int count_ = count;
public boolean apply(DateValue value) {
return --count_ >= 0;
}
@Override
public String toString() {
... | java |
static Predicate<DateValue> untilCondition(final DateValue until) {
return new Predicate<DateValue>() {
public boolean apply(DateValue date) {
return date.compareTo(until) <= 0;
}
@Override
public String toString() {
return "UntilC... | java |
public static PeriodValue createFromDuration(DateValue start, DateValue dur) {
DateValue end = TimeUtils.add(start, dur);
if (end instanceof TimeValue && !(start instanceof TimeValue)) {
start = TimeUtils.dayStart(start);
}
return new PeriodValueImpl(start, end);
} | java |
public boolean intersects(PeriodValue pv) {
DateValue sa = this.start,
ea = this.end,
sb = pv.start(),
eb = pv.end();
return sa.compareTo(eb) < 0 && sb.compareTo(ea) < 0;
} | java |
public static LocalDate adjustToFirstDayOfWeek(LocalDate date, DayOfWeek firstDayOfWeek) {
LocalDate newDate = date.with(DAY_OF_WEEK, firstDayOfWeek.getValue());
if (newDate.isAfter(date)) {
newDate = newDate.minusWeeks(1);
}
return newDate;
} | java |
public static LocalDate adjustToLastDayOfWeek(LocalDate date, DayOfWeek firstDayOfWeek) {
LocalDate startOfWeek = adjustToFirstDayOfWeek(date, firstDayOfWeek);
return startOfWeek.plusDays(6);
} | java |
public Instant adjustTime(Instant instant, ZoneId zoneId, boolean roundUp,
DayOfWeek firstDayOfWeek) {
requireNonNull(instant);
requireNonNull(zoneId);
requireNonNull(firstDayOfWeek);
ZonedDateTime zonedDateTime = ZonedDateTime.ofInstant(instant, zoneId);
... | java |
public final ReadOnlyObjectProperty<T> dateControlProperty() {
if (dateControl == null) {
dateControl = new ReadOnlyObjectWrapper<>(this, "dateControl", _dateControl); //$NON-NLS-1$
}
return dateControl.getReadOnlyProperty();
} | java |
public final boolean isReadOnly() {
Entry<?> entry = getEntry();
Calendar calendar = entry.getCalendar();
if (calendar != null) {
return calendar.isReadOnly();
}
return false;
} | java |
public static DateValue parseDateValue(String s, TimeZone tzid)
throws ParseException {
Matcher m = DATE_VALUE.matcher(s);
if (!m.matches()) {
throw new ParseException(s, 0);
}
int year = Integer.parseInt(m.group(1)),
month = Integer.parseInt(m.gro... | java |
public void insertCalendar(GoogleCalendar calendar) throws IOException {
com.google.api.services.calendar.model.Calendar cal;
cal = converter.convert(calendar, com.google.api.services.calendar.model.Calendar.class);
cal = dao.calendars().insert(cal).execute();
calendar.setId(cal.getId())... | java |
public void updateCalendar(GoogleCalendar calendar) throws IOException {
CalendarListEntry calendarListEntry = converter.convert(calendar, CalendarListEntry.class);
dao.calendarList().update(calendarListEntry.getId(), calendarListEntry).execute();
} | java |
public void deleteCalendar(GoogleCalendar calendar) throws IOException {
dao.calendars().delete(calendar.getId()).execute();
} | java |
public GoogleEntry insertEntry(GoogleEntry entry, GoogleCalendar calendar) throws IOException {
Event event = converter.convert(entry, Event.class);
event = dao.events().insert(calendar.getId(), event).execute();
entry.setId(event.getId());
entry.setUserObject(event);
return entr... | java |
public GoogleEntry updateEntry(GoogleEntry entry) throws IOException {
GoogleCalendar calendar = (GoogleCalendar) entry.getCalendar();
Event event = converter.convert(entry, Event.class);
dao.events().update(calendar.getId(), event.getId(), event).execute();
return entry;
} | java |
public void deleteEntry(GoogleEntry entry, GoogleCalendar calendar) throws IOException {
dao.events().delete(calendar.getId(), entry.getId()).execute();
} | java |
public GoogleEntry moveEntry(GoogleEntry entry, GoogleCalendar from, GoogleCalendar to) throws IOException {
dao.events().move(from.getId(), entry.getId(), to.getId()).execute();
return entry;
} | java |
public List<GoogleCalendar> getCalendars() throws IOException {
List<CalendarListEntry> calendarListEntries = dao.calendarList().list().execute().getItems();
List<GoogleCalendar> calendars = new ArrayList<>();
if (calendarListEntries != null && !calendarListEntries.isEmpty()) {
for ... | java |
public List<GoogleEntry> getEntries(GoogleCalendar calendar, LocalDate startDate, LocalDate endDate, ZoneId zoneId) throws IOException {
if (!calendar.existsInGoogle()) {
return new ArrayList<>(0);
}
ZonedDateTime st = ZonedDateTime.of(startDate, LocalTime.MIN, zoneId);
Zone... | java |
public List<GoogleEntry> getEntries(GoogleCalendar calendar, String searchText) throws IOException {
if (!calendar.existsInGoogle()) {
return new ArrayList<>(0);
}
String calendarId = URLDecoder.decode(calendar.getId(), "UTF-8");
List<Event> events = dao.events()
... | java |
public final GoogleCalendar createCalendar(String name, Calendar.Style style) {
GoogleCalendar calendar = new GoogleCalendar();
calendar.setName(name);
calendar.setStyle(style);
return calendar;
} | java |
public GoogleCalendar getPrimaryCalendar() {
return (GoogleCalendar) getCalendars().stream()
.filter(calendar -> ((GoogleCalendar) calendar).isPrimary())
.findFirst()
.orElse(null);
} | java |
public List<GoogleCalendar> getGoogleCalendars() {
List<GoogleCalendar> googleCalendars = new ArrayList<>();
for (Calendar calendar : getCalendars()) {
if (!(calendar instanceof GoogleCalendar)) {
continue;
}
googleCalendars.add((GoogleCalendar) calend... | java |
@SafeVarargs
public final void removeCalendarListeners(ListChangeListener<Calendar>... listeners) {
if (listeners != null) {
for (ListChangeListener<Calendar> listener : listeners) {
getCalendars().removeListener(listener);
}
}
} | java |
public final Map<LocalDate, List<Entry<?>>> findEntries(LocalDate startDate, LocalDate endDate, ZoneId zoneId) {
fireEvents = false;
Map<LocalDate, List<Entry<?>>> result;
try {
result = doGetEntries(startDate, endDate, zoneId);
} finally {
fireEvents = true;
... | java |
public final void addEventHandler(EventHandler<CalendarEvent> l) {
if (l != null) {
if (MODEL.isLoggable(FINER)) {
MODEL.finer(getName() + ": adding event handler: " + l); //$NON-NLS-1$
}
eventHandlers.add(l);
}
} | java |
public final void removeEventHandler(EventHandler<CalendarEvent> l) {
if (l != null) {
if (MODEL.isLoggable(FINER)) {
MODEL.finer(getName() + ": removing event handler: " + l); //$NON-NLS-1$
}
eventHandlers.remove(l);
}
} | java |
public final void fireEvent(CalendarEvent evt) {
if (fireEvents && !batchUpdates) {
if (MODEL.isLoggable(FINER)) {
MODEL.finer(getName() + ": fireing event: " + evt); //$NON-NLS-1$
}
requireNonNull(evt);
Event.fireEvent(this, evt);
}
} | java |
public static List<Slice> split(LocalDate start, LocalDate end) {
Objects.requireNonNull(start);
Objects.requireNonNull(end);
Preconditions.checkArgument(!start.isAfter(end));
List<Slice> slices = Lists.newArrayList();
LocalDate startOfMonth = start.withDayOfMonth(1);
L... | java |
public final boolean contains(E entry) {
TreeEntry<E> e = getEntry(entry);
return e != null;
} | java |
private TreeEntry<E> getEntry(Entry<?> entry) {
TreeEntry<E> t = root;
while (t != null) {
int cmp = compareLongs(getLow(entry), t.low);
if (cmp == 0)
cmp = compareLongs(getHigh(entry), t.high);
if (cmp == 0)
cmp = entry.hashCode() - t.... | java |
private void setDateControl(DateControl control) {
requireNonNull(control);
control.addEventFilter(RequestEvent.REQUEST,
evt -> addEvent(evt, LogEntryType.REQUEST_EVENT));
control.addEventFilter(LoadEvent.LOAD,
evt -> addEvent(evt, LogEntryType.LOAD_EVENT));
... | java |
public void setDayDateTimeFormatter(DateTimeFormatter formatter) {
if (getFormatterMap().get(ViewType.DAY_VIEW) == null) {
getFormatterMap().put(ViewType.DAY_VIEW, formatter);
} else {
getFormatterMap().replace(ViewType.DAY_VIEW, formatter);
}
} | java |
public void setWeekDateTimeFormatter(DateTimeFormatter formatter) {
if (getFormatterMap().get(ViewType.WEEK_VIEW) == null) {
getFormatterMap().put(ViewType.WEEK_VIEW, formatter);
} else {
getFormatterMap().replace(ViewType.WEEK_VIEW, formatter);
}
} | java |
public void setMonthDateTimeFormatter(DateTimeFormatter formatter) {
if (getFormatterMap().get(ViewType.MONTH_VIEW) == null) {
getFormatterMap().put(ViewType.MONTH_VIEW, formatter);
} else {
getFormatterMap().replace(ViewType.MONTH_VIEW, formatter);
}
} | java |
private void removeDataBindings() {
Bindings.unbindContent(detailedDayView.getCalendarSources(),
getCalendarSources());
Bindings.unbindContentBidirectional(
detailedDayView.getCalendarVisibilityMap(),
getCalendarVisibilityMap());
Bindings.unbindCon... | java |
private DetailedDayView createDetailedDayView() {
DetailedDayView newDetailedDayView = new DetailedDayView();
newDetailedDayView.setShowScrollBar(false);
newDetailedDayView.setShowToday(false);
newDetailedDayView.setEnableCurrentTimeMarker(false);
newDetailedDayView.weekFieldsPro... | java |
protected void configureDetailedDayView(DetailedDayView newDetailedDayView,
boolean trimTimeBounds) {
newDetailedDayView.getDayView().setStartTime(LocalTime.MIN);
newDetailedDayView.getDayView().setEndTime(LocalTime.MAX);
newDetailedDayView.getDayView().setEarlyLateHoursStrategy(
... | java |
private DetailedWeekView createDetailedWeekView() {
DetailedWeekView newDetailedWeekView = new DetailedWeekView();
newDetailedWeekView.setShowScrollBar(false);
newDetailedWeekView.layoutProperty().bind(layoutProperty());
newDetailedWeekView.setEnableCurrentTimeMarker(false);
newD... | java |
protected void configureDetailedWeekView(
DetailedWeekView newDetailedWeekView, boolean trimTimeBounds) {
newDetailedWeekView.getWeekView().setShowToday(false);
newDetailedWeekView.getWeekView().setTrimTimeBounds(trimTimeBounds);
} | java |
protected MonthView createMonthView() {
MonthView newMonthView = new MonthView();
newMonthView.setShowToday(false);
newMonthView.setShowCurrentWeek(false);
newMonthView.weekFieldsProperty().bind(weekFieldsProperty());
newMonthView.showFullDayEntriesProperty()
.bin... | java |
public final Calendar getCalendar() {
Calendar calendar = calendarSelector.getCalendar();
if (calendar == null) {
calendar = entry.getCalendar();
}
return calendar;
} | java |
public ZonedDateTime getStartZonedDateTime() {
if (zonedStartDateTime == null) {
zonedStartDateTime = ZonedDateTime.of(startDate, startTime, zoneId);
}
return zonedStartDateTime;
} | java |
public ZonedDateTime getEndZonedDateTime() {
if (zonedEndDateTime == null) {
zonedEndDateTime = ZonedDateTime.of(endDate, endTime, zoneId);
}
return zonedEndDateTime;
} | java |
public Interval withTimes(LocalTime startTime, LocalTime endTime) {
requireNonNull(startTime);
requireNonNull(endTime);
return new Interval(this.startDate, startTime, this.endDate, endTime, this.zoneId);
} | java |
public Interval withStartDate(LocalDate date) {
requireNonNull(date);
return new Interval(date, startTime, endDate, endTime, zoneId);
} | java |
public Interval withEndDate(LocalDate date) {
requireNonNull(date);
return new Interval(startDate, startTime, date, endTime, zoneId);
} | java |
public Interval withStartTime(LocalTime time) {
requireNonNull(time);
return new Interval(startDate, time, endDate, endTime, zoneId);
} | java |
public Interval withStartDateTime(LocalDateTime dateTime) {
requireNonNull(dateTime);
return new Interval(dateTime.toLocalDate(), dateTime.toLocalTime(), endDate, endTime);
} | java |
public Interval withEndTime(LocalTime time) {
requireNonNull(time);
return new Interval(startDate, startTime, endDate, time, zoneId);
} | java |
public Interval withEndDateTime(LocalDateTime dateTime) {
requireNonNull(dateTime);
return new Interval(startDate, startTime, dateTime.toLocalDate(), dateTime.toLocalTime());
} | java |
public Interval withZoneId(ZoneId zone) {
requireNonNull(zone);
return new Interval(startDate, startTime, endDate, endTime, zone);
} | java |
public LocalDateTime getStartDateTime() {
if (startDateTime == null) {
startDateTime = LocalDateTime.of(getStartDate(), getStartTime());
}
return startDateTime;
} | java |
public LocalDateTime getEndDateTime() {
if (endDateTime == null) {
endDateTime = LocalDateTime.of(getEndDate(), getEndTime());
}
return endDateTime;
} | java |
public static <T> Predicate<T> not(Predicate<? super T> predicate) {
assert null != predicate;
return new NotPredicate<T>(predicate);
} | java |
protected void parse(String icalString, IcalSchema schema)
throws ParseException {
String paramText;
String content;
{
String unfolded = IcalParseUtil.unfoldIcal(icalString);
Matcher m = CONTENT_LINE_RE.matcher(unfolded);
if (!m.matches()) {
... | java |
public Map<String, String> getExtParams() {
if (null == extParams) {
extParams = new LinkedHashMap<String, String>();
}
return extParams;
} | java |
public DateValue next() {
if (null == this.pendingUtc_) {
this.fetchNext();
}
DateValue next = this.pendingUtc_;
this.pendingUtc_ = null;
return next;
} | java |
public DateTimeValue toDateTime() {
normalize();
return new DateTimeValueImpl(year, month, day, hour, minute, second);
} | java |
public final ObservableMap<Object, Object> getProperties() {
if (properties == null) {
properties = FXCollections.observableMap(new HashMap<>());
MapChangeListener<? super Object, ? super Object> changeListener = change -> {
if (change.getKey().equals("com.calendarfx.rec... | java |
public final void changeStartDate(LocalDate date, boolean keepDuration) {
requireNonNull(date);
Interval interval = getInterval();
LocalDateTime newStartDateTime = getStartAsLocalDateTime().with(date);
LocalDateTime endDateTime = getEndAsLocalDateTime();
if (keepDuration) {
... | java |
public final void changeStartTime(LocalTime time, boolean keepDuration) {
requireNonNull(time);
Interval interval = getInterval();
LocalDateTime newStartDateTime = getStartAsLocalDateTime().with(time);
LocalDateTime endDateTime = getEndAsLocalDateTime();
if (keepDuration) {
... | java |
public final void changeEndDate(LocalDate date, boolean keepDuration) {
requireNonNull(date);
Interval interval = getInterval();
LocalDateTime newEndDateTime = getEndAsLocalDateTime().with(date);
LocalDateTime startDateTime = getStartAsLocalDateTime();
if (keepDuration) {
... | java |
public final void changeEndTime(LocalTime time, boolean keepDuration) {
requireNonNull(time);
Interval interval = getInterval();
LocalDateTime newEndDateTime = getEndAsLocalDateTime().with(time);
LocalDateTime startDateTime = getStartAsLocalDateTime();
if (keepDuration) {
... | java |
public final boolean isRecurring() {
return recurrenceRule != null && !(recurrenceRule.get() == null) && !recurrenceRule.get().trim().equals(""); //$NON-NLS-1$
} | java |
public final ReadOnlyObjectProperty<LocalDate> recurrenceEndProperty() {
if (recurrenceEnd == null) {
recurrenceEnd = new ReadOnlyObjectWrapper<>(this, "recurrenceEnd", _recurrenceEnd); //$NON-NLS-1$
}
return recurrenceEnd.getReadOnlyProperty();
} | java |
public final void setId(String id) {
requireNonNull(id);
if (MODEL.isLoggable(FINE)) {
MODEL.fine("setting id to " + id); //$NON-NLS-1$
}
this.id = id;
} | java |
public final ObjectProperty<T> userObjectProperty() {
if (userObject == null) {
userObject = new SimpleObjectProperty<T>(this, "userObject") { //$NON-NLS-1$
@Override
public void set(T newObject) {
T oldUserObject = get();
// W... | java |
public final ReadOnlyObjectProperty<ZoneId> zoneIdProperty() {
if (zoneId == null) {
zoneId = new ReadOnlyObjectWrapper<>(this, "zoneId", getInterval().getZoneId()); //$NON-NLS-1$
}
return zoneId.getReadOnlyProperty();
} | java |
public final StringProperty locationProperty() {
if (location == null) {
location = new SimpleStringProperty(null, "location") { //$NON-NLS-1$
@Override
public void set(String newLocation) {
String oldLocation = get();
if (!Uti... | java |
public final boolean isShowing(LocalDate startDate, LocalDate endDate, ZoneId zoneId) {
return isShowing(this, startDate, endDate, zoneId);
} | java |
public void setSize(int width, int height) {
final float r = width * 0.75f / SIN;
final float y = COS * r;
final float h = r - y;
final float or = height * 0.75f / SIN;
final float oy = COS * or;
final float oh = or - oy;
mRadius = r;
mBaseGlowScale = h >... | java |
private MenuItem createNewMenuItem(int group, int id, int categoryOrder, int ordering,
CharSequence title, int defaultShowAsAction) {
return new MenuItem(group, id, categoryOrder, title);
} | java |
private static int getOrdering(int categoryOrder) {
final int index = (categoryOrder & CATEGORY_MASK) >> CATEGORY_SHIFT;
if (index < 0 || index >= sCategoryToOrder.length) {
throw new IllegalArgumentException("order does not contain a valid category.");
}
return (sCategoryT... | java |
public Drawable createFromStream(InputStream is, String srcName) {
return createFromResourceStream(null, is, srcName);
} | java |
private void drawShape(
Canvas canvas,
Paint paint,
Path path,
ShapeAppearanceModel shapeAppearanceModel,
RectF bounds) {
if (shapeAppearanceModel.isRoundRect()) {
float cornerSize = shapeAppearanceModel.getTopRightCorner().getCornerSize();... | java |
private void drawCompatShadow(Canvas canvas) {
// Draw the fake shadow for each of the corners and edges.
for (int index = 0; index < 4; index++) {
cornerShadowOperation[index].draw(shadowRenderer, drawableState.shadowCompatRadius, canvas);
edgeShadowOperation[index].draw(shadow... | java |
public void setButtonDrawable(Drawable d) {
if (drawable != d) {
if (drawable != null) {
drawable.setCallback(null);
unscheduleDrawable(drawable);
}
drawable = d;
if (d != null) {
d.setCallback(this);
... | java |
public void addState(int[] specs, Animator animation, Animator.AnimatorListener listener) {
Tuple tuple = new Tuple(specs, animation, listener);
animation.addListener(mAnimationListener);
mTuples.add(tuple);
} | java |
public void setState(int[] state) {
Tuple match = null;
final int count = mTuples.size();
for (int i = 0; i < count; i++) {
final Tuple tuple = mTuples.get(i);
if (StateSet.stateSetMatches(tuple.mSpecs, state)) {
match = tuple;
break;
... | java |
public static void applyTheme(Drawable d, Resources.Theme t) {
IMPL.applyTheme(d, t);
} | java |
public void adjustChildren(int widthMeasureSpec, int heightMeasureSpec) {
if (Log.isLoggable(TAG, Log.DEBUG)) {
Log.d(TAG, "adjustChildren: " + mHost + " widthMeasureSpec: "
+ View.MeasureSpec.toString(widthMeasureSpec) + " heightMeasureSpec: "
+ View.MeasureS... | java |
public final void enter(boolean fast) {
cancel();
mSoftwareAnimator = createSoftwareEnter(fast);
if (mSoftwareAnimator != null) {
mSoftwareAnimator.start();
}
} | java |
public void lineTo(float x, float y) {
PathLineOperation operation = new PathLineOperation();
operation.x = x;
operation.y = y;
operations.add(operation);
LineShadowOperation shadowOperation = new LineShadowOperation(operation, endX, endY);
// The previous endX and endY... | java |
public void quadToPoint(float controlX, float controlY, float toX, float toY) {
PathQuadOperation operation = new PathQuadOperation();
operation.controlX = controlX;
operation.controlY = controlY;
operation.endX = toX;
operation.endY = toY;
operations.add(operation);
... | java |
public void addArc(float left, float top, float right, float bottom, float startAngle,
float sweepAngle) {
PathArcOperation operation = new PathArcOperation(left, top, right, bottom);
operation.startAngle = startAngle;
operation.sweepAngle = sweepAngle;
operations.... | java |
ShadowCompatOperation createShadowCompatOperation(final Matrix transform) {
// If the shadowCompatOperations don't end on the desired endShadowAngle, add an arc to do so.
addConnectingShadowIfNecessary(endShadowAngle);
final List<ShadowCompatOperation> operations = new ArrayList<>(shadowCompatOp... | java |
private void setTargetDensity(DisplayMetrics metrics) {
if (mDensity != metrics.density) {
mDensity = metrics.density;
invalidateSelf(false);
}
} | java |
private void tryBackgroundEnter(boolean focused) {
if (mBackground == null) {
mBackground = new RippleBackground(this, mHotspotBounds);
}
mBackground.setup(mState.mMaxRadius, mDensity);
mBackground.enter(focused);
} | java |
private void tryRippleEnter() {
if (mExitingRipplesCount >= MAX_RIPPLES) {
// This should never happen unless the user is tapping like a maniac
// or there is a bug that's preventing ripples from being removed.
return;
}
if (mRipple == null) {
fin... | java |
private void tryRippleExit() {
if (mRipple != null) {
if (mExitingRipples == null) {
mExitingRipples = new RippleForeground[MAX_RIPPLES];
}
mExitingRipples[mExitingRipplesCount++] = mRipple;
mRipple.exit();
mRipple = null;
}
... | java |
private void clearHotspots() {
if (mRipple != null) {
mRipple.end();
mRipple = null;
mRippleActive = false;
}
if (mBackground != null) {
mBackground.end();
mBackground = null;
mBackgroundActive = false;
}
c... | java |
private void onHotspotBoundsChanged() {
final int count = mExitingRipplesCount;
final RippleForeground[] ripples = mExitingRipples;
for (int i = 0; i < count; i++) {
ripples[i].onHotspotBoundsChanged();
}
if (mRipple != null) {
mRipple.onHotspotBoundsChan... | java |
public void drawEdgeShadow(Canvas canvas, Matrix transform, RectF bounds, int elevation) {
bounds.bottom += elevation;
bounds.offset(0, -elevation);
edgeColors[0] = shadowEndColor;
edgeColors[1] = shadowMiddleColor;
edgeColors[2] = shadowStartColor;
edgeShadowPaint.setS... | java |
public void drawCornerShadow(
Canvas canvas,
Matrix matrix,
RectF bounds,
int elevation,
float startAngle,
float sweepAngle) {
Path arcBounds = scratch;
// Calculate the arc bounds to prevent drawing shadow in the same part of the... | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.