public class GuiElementFactory extends java.lang.Object implements IGuiElementFactory
| Modifier and Type | Field and Description |
|---|---|
static ITextStyle |
DATABASE_TITLE |
static ITextStyle |
DOMINANT_STYLE |
static ITextStyle |
GUI_STYLE |
static ITextStyle |
GUI_TITLE_STYLE |
static GuiElementFactory |
INSTANCE |
static ITextStyle |
RECESSIVE_STYLE |
| Modifier and Type | Method and Description |
|---|---|
IGeneticAnalyzer |
createAnalyzer(IWindowElement window,
int xPos,
int yPos,
boolean rightBoarder,
IGeneticAnalyzerProvider provider) |
IGuiElement |
createFertilityInfo(IAlleleInteger fertilityAllele,
int texOffset) |
AbstractElementLayout |
createHorizontal(int xPos,
int yPos,
int height) |
IElementGroup |
createMutation(int x,
int y,
int width,
int height,
IMutation mutation,
IAllele species,
IBreedingTracker breedingTracker) |
IElementGroup |
createMutationResultant(int x,
int y,
int width,
int height,
IMutation mutation,
IBreedingTracker breedingTracker) |
ElementGroup |
createPane(int xPos,
int yPos,
int width,
int height) |
IElementLayout |
createToleranceInfo(IAlleleTolerance toleranceAllele) |
IGuiElement |
createToleranceInfo(IAlleleTolerance toleranceAllele,
IAlleleSpecies species,
java.lang.String text) |
AbstractElementLayout |
createVertical(int xPos,
int yPos,
int width) |
int |
getColorCoding(boolean dominant) |
ITextStyle |
getGuiStyle() |
ITextStyle |
getStateStyle(boolean dominant) |
public static final ITextStyle DOMINANT_STYLE
public static final ITextStyle RECESSIVE_STYLE
public static final ITextStyle GUI_STYLE
public static final ITextStyle GUI_TITLE_STYLE
public static final ITextStyle DATABASE_TITLE
public static final GuiElementFactory INSTANCE
public IGeneticAnalyzer createAnalyzer(IWindowElement window, int xPos, int yPos, boolean rightBoarder, IGeneticAnalyzerProvider provider)
createAnalyzer in interface IGuiElementFactorypublic AbstractElementLayout createVertical(int xPos, int yPos, int width)
createVertical in interface IGuiElementFactorypublic AbstractElementLayout createHorizontal(int xPos, int yPos, int height)
createHorizontal in interface IGuiElementFactorypublic ElementGroup createPane(int xPos, int yPos, int width, int height)
createPane in interface IGuiElementFactorypublic final int getColorCoding(boolean dominant)
getColorCoding in interface IGuiElementFactorydominant - True if you want the dominant color and false if you want the recessive color.public final ITextStyle getStateStyle(boolean dominant)
getStateStyle in interface IGuiElementFactorypublic final ITextStyle getGuiStyle()
getGuiStyle in interface IGuiElementFactorypublic IGuiElement createFertilityInfo(IAlleleInteger fertilityAllele, int texOffset)
createFertilityInfo in interface IGuiElementFactorypublic IGuiElement createToleranceInfo(IAlleleTolerance toleranceAllele, IAlleleSpecies species, java.lang.String text)
createToleranceInfo in interface IGuiElementFactorypublic IElementLayout createToleranceInfo(IAlleleTolerance toleranceAllele)
createToleranceInfo in interface IGuiElementFactory@Nullable public IElementGroup createMutationResultant(int x, int y, int width, int height, IMutation mutation, IBreedingTracker breedingTracker)
createMutationResultant in interface IGuiElementFactoryIMutation.isSecret()@Nullable public IElementGroup createMutation(int x, int y, int width, int height, IMutation mutation, IAllele species, IBreedingTracker breedingTracker)
createMutation in interface IGuiElementFactoryIMutation.isSecret()