wiki:PictureEngine

PictureEngine

The PictureEngine allows the display of images on PictureEmbodiments?. TODO: on layers, etc.

XML Setup

Example using a seperate JFrame:

<Loader id="pictureembodiment" loader="asap.picture.swing.JFramePictureEmbodiment">
    <Size width="800" height="600"/> <!-- optional size of the frame; default is 400x400 -->
</Loader>

<Loader id="pictureengine" loader="asap.picture.loader.PictureEngineLoader" requiredloaders="pictureembodiment">
  <PictureBinding basedir="" resources="pictureengine/example/" filename="picturebinding.xml"/>
</Loader>

Example using a panel in an existing JComponentEnvironment:

<Loader id="panelembodiment" loader="hmi.jcomponentenvironment.loader.JComponentEmbodimentLoader">
  <JComponent id="panel1"/>             
</Loader>

<Loader id="pictureembodiment" loader="asap.picture.swing.JComponentPictureEmbodiment" requiredloaders="panelembodiment"/>
  
<Loader id="pictureengine" loader="asap.picture.loader.PictureEngineLoader" requiredloaders="pictureembodiment">
  <PictureBinding basedir="" resources="pictureengine/example/" filename="picturebinding.xml"/>
</Loader>

Discussion

PictureEngine
 unsolved

Enter your message here...