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.
Constructor Summary |
SimpleBuoy(int prefWidth,
int prefHeight,
int minWidth,
int minHeight,
boolean constAspectScalable,
int depth,
Vob vob)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
SimpleBuoy
public SimpleBuoy(int prefWidth,
int prefHeight,
int minWidth,
int minHeight,
boolean constAspectScalable,
int depth,
Vob vob)
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