use of eu.hansolo.tilesfx.tools.SectionComparator in project tilesfx by HanSolo.
the class Tile method setSections.
/**
* Sets the sections to the given list of Section objects. The
* sections will be used to colorize areas with a special
* meaning such as the red area in a rpm gauge.
* Sections in the Medusa library
* usually are less eye-catching than Areas.
*
* @param SECTIONS
*/
public void setSections(final List<Section> SECTIONS) {
getSections().setAll(SECTIONS);
getSections().sort(new SectionComparator());
fireTileEvent(SECTION_EVENT);
}
use of eu.hansolo.tilesfx.tools.SectionComparator in project tilesfx by HanSolo.
the class Tile method removeSection.
/**
* Removes the given Section from the list of sections.
* Sections in the Medusa library
* usually are less eye-catching than Areas.
*
* @param SECTION
*/
public void removeSection(final Section SECTION) {
if (null == SECTION)
return;
getSections().remove(SECTION);
getSections().sort(new SectionComparator());
fireTileEvent(SECTION_EVENT);
}
use of eu.hansolo.tilesfx.tools.SectionComparator in project tilesfx by HanSolo.
the class Tile method addSection.
/**
* Adds the given Section to the list of sections.
* Sections in the Medusa library
* usually are less eye-catching than Areas.
*
* @param SECTION
*/
public void addSection(final Section SECTION) {
if (null == SECTION)
return;
getSections().add(SECTION);
getSections().sort(new SectionComparator());
fireTileEvent(SECTION_EVENT);
}
Aggregations