Class Data

java.lang.Object
fr.formiko.views.gui2d.Data

public class Data extends Object
Contain all data (images) that will be used by the graphic interface.
Author:
Hydrolien
  • Field Details

  • Constructor Details

    • Data

      public Data()
  • Method Details

    • Data

      public void Data()
      Main constructor.
    • getTailleDUneCase

      public int getTailleDUneCase()
    • getTailleIcon

      public int getTailleIcon()
    • setTailleDUneCase

      public void setTailleDUneCase(int x)
    • getImgNull

      public BufferedImage getImgNull()
    • getFere

      public BufferedImage getFere()
    • getCNuageuse

      public BufferedImage getCNuageuse()
    • getCSombre

      public BufferedImage getCSombre()
    • getB

      public BufferedImage[] getB()
    • getTICarte

      public BufferedImage[] getTICarte()
    • getTG

      public BufferedImage[] getTG()
    • getTF

      public BufferedImage[][] getTF()
    • getMap

      public BufferedImage getMap()
    • getCloudMap

      public BufferedImage getCloudMap()
    • getLoopArrow

      public BufferedImage getLoopArrow()
    • getPick

      public BufferedImage getPick()
    • getTImage

      public BufferedImage[] getTImage()
    • getImageChargement

      public BufferedImage getImageChargement()
    • setImageIniForNewGame

      public void setImageIniForNewGame(boolean b)
    • getBackgroundPAI

      public Image getBackgroundPAI()
    • getBackgroundPAS

      public Image getBackgroundPAS()
    • getButtonColor

      public Color getButtonColor()
    • getButtonDisableColor

      public Color getButtonDisableColor()
    • getButtonFocusColor

      public Color getButtonFocusColor()
    • getButtonActivateColor

      public Color getButtonActivateColor()
    • getButtonColorWithoutAlpha

      public Color getButtonColorWithoutAlpha()
    • getButtonDisableColorWithoutAlpha

      public Color getButtonDisableColorWithoutAlpha()
    • getButtonFocusColorWithoutAlpha

      public Color getButtonFocusColorWithoutAlpha()
    • getButonBorderColor

      public Color getButonBorderColor()
    • getButtonColor

      public Color getButtonColor(int colorId)
      Return color used by the buttons.
    • iniTButtonColor

      public void iniTButtonColor()
      Initialize color used by the buttons.
    • getImage

      public BufferedImage getImage(String name)
      Return an image from otherImages. Image from otherImages can be acces by there name.
    • getCreatureImage

      public BufferedImage getCreatureImage(Creature c)
      Return the Image that fit to a Creature.
      Parameters:
      c - the Creature to represent.
    • getGraineImage

      public BufferedImage getGraineImage(Graine s)
      Return the Image that fit to a Seed.
      Parameters:
      s - the Seed to represent
    • getIconImage

      public BufferedImage getIconImage(String name)
      Return an IconImage.
      Parameters:
      name - the name of the icon, the name of the file without ".png"
    • getAntImage

      public BufferedImage[] getAntImage(Fourmi f)
      Return an array with all images use to draw an ant.
      This image are sorted by order to daw.
      • Legs
      • Body
      • Color of the thorax
      • Wings
    • chargerImages

      public void chargerImages()
      Load image in map resolution.
      If the original image have'nt been load, it will call chargerImagesIni.
      The images defined here have the rigth dimention for being used on the map.
    • chargerImagesIni

      public void chargerImagesIni()
      Load image in full resolution.
      Image need to be load in full resolution 1 time only. If it have alredy be done the function will do nothing.
    • iniOtherImages

      public void iniOtherImages()
      Initialize all images that don't need to be resize. Image from otherImages can be acces by there name.
    • loadPnpImage

      public void loadPnpImage(int buttonSize)
      Load the FPanelNouvellePartie images if they aren't load yet. If size is different, image will be reload with the greate size.
      Parameters:
      buttonSize - size of the 2 image to load.
    • chargerTI

      public void chargerTI()
      Load Case image
    • chargerTX

      public BufferedImage[][] chargerTX(String name, int x, byte y, int début)
      Load a group of BufferedImage that starts with a similar name.
      see FImages.getImagess() for more informations.
      Parameters:
      name - Name of de group. Every image will start by this name.
    • chargerTX

      public BufferedImage[][] chargerTX(String name, int x, byte y)
    • chargerTX

      public BufferedImage[][] chargerTX(String name, int x)
    • chargerTX

      public BufferedImage[][] chargerTX(String name)
    • iniBackgroundMapImage

      public void iniBackgroundMapImage()
      Create a background image from tI1 and tI2 images.
    • iniCloudMapImage

      private void iniCloudMapImage()
      Create a cloud image from loading image.
    • getScaledInstance

      public BufferedImage getScaledInstance(BufferedImage bi, int dim, int b)
      Return a scaled BufferedImage
    • getScaledInstance

      public BufferedImage getScaledInstance(BufferedImage bi, int dim)
    • getScaledInstance

      public BufferedImage[] getScaledInstance(BufferedImage[] ti, int dim, int b)
      Return a scaled BufferedImage []
    • getScaledInstance

      public BufferedImage[] getScaledInstance(BufferedImage[] ti, int dim)
    • getScaledInstance

      public BufferedImage[][] getScaledInstance(BufferedImage[][] ti, int dim, int b)
      Return a scaled BufferedImage [][]
    • getScaledInstance

      public BufferedImage[][] getScaledInstance(BufferedImage[][] ti, int dim)
    • chargerTIFPanelAction

      public void chargerTIFPanelAction()
      Load graphics for FPanelAction
    • loadBackgroundPAI

      private void loadBackgroundPAI()
      Load backgroundPAI
    • loadBackgroundPAS

      private void loadBackgroundPAS()
      Load backgroundPAS
    • chargerTImage

      private void chargerTImage()
      Load images for FPanelAction without background
    • chargerTImageAvecFond

      private void chargerTImageAvecFond(fr.formiko.usual.images.Pixel pi)
      Load images for FPanelAction with background
    • chargerTIBZoom

      public Image[] chargerTIBZoom()
      Load images for FPanelZoom
    • tournerLesFleches

      public void tournerLesFleches(String nom)
      Turn the arrow for FPanelZoom.
    • tournerLesFleches

      public void tournerLesFleches()
    • loadImageChargement

      public boolean loadImageChargement()
      Load a loading image for FPanelChargement.