JACK 5.4 Application Interface

aos.jack.sim.visual
Class VisualEntity

java.lang.Object
  extended byaos.jack.sim.visual.awt.Transform
      extended byaos.jack.sim.visual.VisualEntityInit
          extended byaos.jack.sim.visual.VisualEntity
All Implemented Interfaces:
aos.apib.Base, Drawable, Initialise, Movable, java.io.Serializable

public class VisualEntity
extends VisualEntityInit
implements Initialise, Movable

See Also:
Serialized Form

Constructor Summary
VisualEntity()
           
 
Method Summary
 Transform findTransform(java.lang.String n)
           
 java.awt.geom.Rectangle2D getBounds2D()
           
 void heading(double t)
           
 void initialise(Loader loader)
           
 void move(double dx, double dy)
           
static Drawable newCaptured(Drawable d)
           
static VisualEntity newVisualEntity(Loader loader, java.lang.String name, Drawable drawable, double x, double y, double theta, double scale)
           
 void paint(java.awt.Graphics g)
           
 void paint(java.awt.Graphics2D g)
           
 void reshape(Drawable d)
           
 boolean setHidden(boolean h)
           
 void updateTransform(Transform sub, double x, double y, double s, double t, Drawable d)
           
 void zoomTo(double s)
           
 
Methods inherited from class aos.jack.sim.visual.VisualEntityInit
equals, getStreamer, hashCode, toString
 
Methods inherited from class aos.jack.sim.visual.awt.Transform
children, instantiate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VisualEntity

public VisualEntity()
Method Detail

initialise

public void initialise(Loader loader)
Specified by:
initialise in interface Initialise

setHidden

public boolean setHidden(boolean h)

paint

public void paint(java.awt.Graphics g)

paint

public void paint(java.awt.Graphics2D g)
Specified by:
paint in interface Drawable
Overrides:
paint in class Transform

getBounds2D

public java.awt.geom.Rectangle2D getBounds2D()
Specified by:
getBounds2D in interface Drawable
Overrides:
getBounds2D in class Transform

move

public void move(double dx,
                 double dy)
Specified by:
move in interface Movable

heading

public void heading(double t)
Specified by:
heading in interface Movable

zoomTo

public void zoomTo(double s)

reshape

public void reshape(Drawable d)
Specified by:
reshape in interface Movable

newVisualEntity

public static VisualEntity newVisualEntity(Loader loader,
                                           java.lang.String name,
                                           Drawable drawable,
                                           double x,
                                           double y,
                                           double theta,
                                           double scale)

newCaptured

public static Drawable newCaptured(Drawable d)

findTransform

public Transform findTransform(java.lang.String n)

updateTransform

public void updateTransform(Transform sub,
                            double x,
                            double y,
                            double s,
                            double t,
                            Drawable d)

JACK 5.4 Application Interface

Copyright (C) 1999-2008, Agent Oriented Software Pty. Ltd.

US Government Restricted Rights
The JACK Modules and relevant Software Material have been developed entirely at private expense and are accordingly provided with RESTRICTED RIGHTS. Use, duplication, or disclosure by Government is subject to restrictions as set forth in subparagraph (c)(1)(ii) of DFARS 252.227-7013 or subparagraph (c)(1) and (2) of the Commercial Computer Software Restricted Rights and 48 CFR 52.2270-19, as applicable.


Agent Oriented Software Pty. Ltd.     http://www.aosgrp.com
PO Box 639, Carlton South, Victoria 3053, Australia
Phone: +61 3 9349 5055, Fax: +61 3 9349 5088