Top Inners Fields Constructors Methods
impl.com.calendarfx.view.util

public final Class VisualBoundsResolver

extends Object
Class Inheritance
Annotations
@SuppressWarnings:javadoc
Imports
com.calendarfx.model.Entry, com.calendarfx.view.DayView, .EntryViewBase, .EntryViewBase.HeightLayoutStrategy, java.util.ArrayList, .Collections, .Comparator, .List

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
private static Comparator<EntryViewBase<?>>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static Comparator<EntryViewBase<?>>
getAdditionalComparator()

The resolver always sorts entries based on their visual bounds but when entries have the same bounds the application might want to sort them based on additional criteria.

public static VisualBoundsResolver.Range
getRange(EntryViewBase<T extends DateControl> entryView, DayView dayView, double contentWidth)

public static <T extends EntryViewBase<T extends DateControl>> List<Placement>
resolve(List<T> entryViews, DayView dayView, double contentWidth)

public static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

additionalComparatorback to summary
private static Comparator<EntryViewBase<?>> additionalComparator

Constructor Detail

VisualBoundsResolverback to summary
public VisualBoundsResolver()

Method Detail

getAdditionalComparatorback to summary
public static Comparator<EntryViewBase<?>> getAdditionalComparator()

The resolver always sorts entries based on their visual bounds but when entries have the same bounds the application might want to sort them based on additional criteria. This can be implemented this way.

getRangeback to summary
public static VisualBoundsResolver.Range getRange(EntryViewBase<T extends DateControl> entryView, DayView dayView, double contentWidth)
resolveback to summary
public static <T extends EntryViewBase<T extends DateControl>> List<Placement> resolve(List<T> entryViews, DayView dayView, double contentWidth)
setAdditionalComparatorback to summary
public static void setAdditionalComparator(Comparator<EntryViewBase<?>> additionalComparator)
impl.com.calendarfx.view.util back to summary

pack-priv Class VisualBoundsResolver.Range

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv String
pack-priv double
pack-priv double

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

titleback to summary
pack-priv String title
y1back to summary
pack-priv double y1
y2back to summary
pack-priv double y2

Constructor Detail

Rangeback to summary
pack-priv Range()

Method Detail

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override