Package tripleplay.ui

Class Icons

java.lang.Object
tripleplay.ui.Icons

public class Icons extends Object
Contains icon related utility classes and methods, mostly basic icon factories.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Defers to another icon.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Icon
    image(TileSource source)
    Creates an icon using the supplied texture tile source.
    static Icon
    offset(Icon icon, float tx, float ty)
    Creates an icon that nests and offsets the given icon by the given translation.
    static Icon
    scaled(Icon icon, float scale)
    Creates an icon that applies the given scale to the given icon.
    static Icon
    solid(int color, float size)
    Creates a solid square icon of the given size.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Icons

      public Icons()
  • Method Details

    • image

      public static Icon image(TileSource source)
      Creates an icon using the supplied texture tile source.
    • scaled

      public static Icon scaled(Icon icon, float scale)
      Creates an icon that applies the given scale to the given icon.
    • offset

      public static Icon offset(Icon icon, float tx, float ty)
      Creates an icon that nests and offsets the given icon by the given translation.
    • solid

      public static Icon solid(int color, float size)
      Creates a solid square icon of the given size.