artoflife pre0.1.0-dev

Package org.artoflife.gui.paintable

Introduces concept of a Phenotype that can be painted onto a Graphics2D at an arbitrary size.

See:
          Description

Class Summary
PaintableIndividualPersistence Utility responsible for saving/loading Individuals using a PaintablePhenotype to and from Files as a lores thumbnail or hires PNG image with a serialised copy of the Individual in PNG header as a tEXtEntry record of the tEXt metadata.
PaintableIndividualTransferable Drag Individuals with a PaintablePhenotype using this Transferable wrapper, which is also a ThumbnailTransferable so that the phenotype icon can be painted during drag over ThumbnailIconDropTargetListener.
PaintablePhenotype A Phenotype that can paint itself at various sizes onto a Graphics2D.
 

Package org.artoflife.gui.paintable Description

Introduces concept of a Phenotype that can be painted onto a Graphics2D at an arbitrary size.

The package includes the PaintablePhenotype interface itself as well as an ThumbnailTransferable that allows Individual drags over ThumbnailIconDropTargetListener DropTargets to be tracked with an icon of the phenotype.

As a utility, the package also includes a class implementing static conveniences to save and load Individuals with PaintablePhenotypes as PNG files that include a serialised form of the Indvidual in the image metadata.


artoflife pre0.1.0-dev

Copyright © 2002 the Art Of Life team. All Rights Reserved.