Class FPanelMiniMapContainer.FPanelGraphicsOptions

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Enclosing class:
FPanelMiniMapContainer

class FPanelMiniMapContainer.FPanelGraphicsOptions extends FPanel
Change map face.
It can remove/add grid, or icon. Check FPanelCarte.getStatesIconsImages(Creature) to know the action that can be done from here.
Author:
Hydrolien
  • Field Details

    • buttonList

      private fr.formiko.usual.structures.listes.Liste<FButtonPGO> buttonList
  • Constructor Details

    • FPanelGraphicsOptions

      private FPanelGraphicsOptions()
      Main constructor.
      This still need to be build after have set size.
  • Method Details

    • isIni

      private boolean isIni()
    • build

      private void build()
      Build function that add all the button.
    • addGraphicOption

      private void addGraphicOption(int action, BufferedImage icon, Supplier sup)
      Add a graphic option as a FButton.
      Parameters:
      action - the action of the button (between 350 & 399)
      icon - the image of the button
      sup - a function that return a boolean (is enable), or a int/byte corresponding to a color id
    • placeButtons

      private void placeButtons()
      Place all buttons & add it to this.
    • getGridImage

      private BufferedImage getGridImage(int len)
      Return a grid image with len line & len column.
      Parameters:
      len - the number of line & column
    • getLineImage

      private BufferedImage getLineImage()
      Return a text image.
    • getBladesImage

      private BufferedImage getBladesImage()
      Return a grass blade image.
    • getColoredRoundImage

      private BufferedImage getColoredRoundImage(boolean small)
      Return a colored round image as anthill color are draw.
    • getRelationImage

      private BufferedImage getRelationImage()
      Return a relation image.
    • getStateImage

      private BufferedImage getStateImage()
      Return a state image.
    • getSeedNeutralImage

      private BufferedImage getSeedNeutralImage()
      Return a state image.
    • getListeImage

      private BufferedImage getListeImage(fr.formiko.usual.structures.listes.Liste<BufferedImage> listIn)
      Return a small image from a list of images.
    • setEnabled

      public void setEnabled(boolean boo)
      Enable or disable this & all sub component.
      Overrides:
      setEnabled in class JComponent