gzz.vob.buoy
Class SimpleBuoy

java.lang.Object
  |
  +--gzz.vob.buoy.SimpleBuoy
All Implemented Interfaces:
BuoyPlacer.Buoy

public class SimpleBuoy
extends java.lang.Object
implements BuoyPlacer.Buoy

A simple buoy that just takes a size and a vob to place. When called to place itself in a vobscene, this buoy places the given vob.


Field Summary
 boolean constAspectScalable
           
static boolean dbg
           
 int depth
           
 int minHeight
           
 int minWidth
           
 int prefHeight
           
 int prefWidth
           
static java.lang.String rcsid
           
 Vob vob
           
 
Constructor Summary
SimpleBuoy(int prefWidth, int prefHeight, int minWidth, int minHeight, boolean constAspectScalable, int depth, Vob vob)
           
 
Method Summary
 boolean constAspectScalable()
          If false, scale any way you like; if true, retain aspect ratio.
 int getMinHeight()
           
 int getMinWidth()
           
 int getPrefHeight()
           
 int getPrefWidth()
           
 void put(VobScene into, int x, int y, int w, int h)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rcsid

public static final java.lang.String rcsid
See Also:
Constant Field Values

dbg

public static boolean dbg

prefWidth

public int prefWidth

prefHeight

public int prefHeight

minWidth

public int minWidth

minHeight

public int minHeight

constAspectScalable

public boolean constAspectScalable

depth

public int depth

vob

public Vob vob
Constructor Detail

SimpleBuoy

public SimpleBuoy(int prefWidth,
                  int prefHeight,
                  int minWidth,
                  int minHeight,
                  boolean constAspectScalable,
                  int depth,
                  Vob vob)
Method Detail

getPrefWidth

public int getPrefWidth()
Specified by:
getPrefWidth in interface BuoyPlacer.Buoy

getPrefHeight

public int getPrefHeight()
Specified by:
getPrefHeight in interface BuoyPlacer.Buoy

getMinWidth

public int getMinWidth()
Specified by:
getMinWidth in interface BuoyPlacer.Buoy

getMinHeight

public int getMinHeight()
Specified by:
getMinHeight in interface BuoyPlacer.Buoy

constAspectScalable

public boolean constAspectScalable()
Description copied from interface: BuoyPlacer.Buoy
If false, scale any way you like; if true, retain aspect ratio.

Specified by:
constAspectScalable in interface BuoyPlacer.Buoy

put

public void put(VobScene into,
                int x,
                int y,
                int w,
                int h)
Specified by:
put in interface BuoyPlacer.Buoy