Class PieceDefiner

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
MassPieceDefiner, PrototypeDefinition.Config.Definer

public class PieceDefiner extends JPanel
This is the GamePiece designer dialog. It appears when you edit the properties of a "Single Piece" in the Configuration window.
See Also:
  • Field Details Link icon

  • Constructor Details Link icon

    • PieceDefiner Link icon

      public PieceDefiner()
      Creates new form test
    • PieceDefiner Link icon

      public PieceDefiner(String id, GpIdSupport s)
    • PieceDefiner Link icon

      public PieceDefiner(GpIdSupport s)
  • Method Details Link icon

    • isPrototype Link icon

      public boolean isPrototype()
    • setPrototypeName Link icon

      public void setPrototypeName(String prototypeName)
    • getInUseSelectedIndex Link icon

      protected int getInUseSelectedIndex()
    • addElement Link icon

      protected static void addElement(GamePiece piece)
    • initDefinitions Link icon

      protected static void initDefinitions()
    • addDefinition Link icon

      public static void addDefinition(GamePiece definition)
      Plugins can add additional GamePiece definitions
      Parameters:
      definition - GamePiece definition to add
    • getSorted Link icon

      public static Boolean getSorted()
    • setSorted Link icon

      public static void setSorted(Boolean sorted)
    • setPiece Link icon

      public void setPiece(GamePiece piece)
    • refresh Link icon

      protected void refresh()
      The piece defined has been changed. It may have changed size, or image
    • getPiece Link icon

      public GamePiece getPiece()
    • setChanged Link icon

      public void setChanged(boolean b)
    • isChanged Link icon

      public boolean isChanged()
    • initCustomControls Link icon

      public void initCustomControls(JDialog d, Configurable target)
    • isSplitDragInProgress Link icon

      public boolean isSplitDragInProgress()
    • setSplitDragInProgress Link icon

      public void setSplitDragInProgress(boolean splitDragInProgress)
    • copy Link icon

      protected void copy(int index)
    • paste Link icon

      protected void paste()
    • moveDecoratorDown Link icon

      protected void moveDecoratorDown(int index)
    • moveDecoratorUp Link icon

      protected void moveDecoratorUp(int index)
    • moveDecoratorTop Link icon

      protected void moveDecoratorTop(int index)
    • moveDecoratorBottom Link icon

      protected void moveDecoratorBottom(int index)
    • moveDecorator Link icon

      protected void moveDecorator(int fromIndex, int toIndex)
      Move a Decorator to a new position in the list
      Parameters:
      fromIndex - Old Position
      toIndex - New Position
    • removeDecorator Link icon

      protected GamePiece removeDecorator(int index)
      Remove the Decorator at a given position in the list
      Parameters:
      index - Position of Decorator to remove
      Returns:
      Removed Decorator
    • insertDecorator Link icon

      protected void insertDecorator(int index, GamePiece piece)
      Insert a Decorator into the list at a given position
      Parameters:
      index - Position to insert Decorator
      piece - Decorator to insert
    • importPiece Link icon

      protected void importPiece(String className)
    • edit Link icon

      protected boolean edit(int index)
    • removeTrait Link icon

      protected void removeTrait(int index)
    • addTrait Link icon

      protected void addTrait(Decorator c)
    • addTrait Link icon

      protected void addTrait(Decorator c, int insertIndex)
    • getTraitList Link icon

      public List<GamePiece> getTraitList()
      Export a List of all the allowable traits
      Returns: