org.diamondspin
Class DSUserCenteredEngine
java.lang.Object
org.diamondspin.DSUserCenteredEngine
- All Implemented Interfaces:
- DSEngine
public class DSUserCenteredEngine
- extends Object
- implements DSEngine
- Author:
- vernier
Method Summary |
double |
getDistUser()
|
static int |
getFirstUserForSide(DSTabletopPane dsTabletopPane,
DSUserCenteredEngine.UserSide side)
|
static DSMenuBar |
getMenuBarForUserID(DSTabletopPane dsTabletopPane,
int userid)
|
static DSUserCenteredEngine.UserSide |
getSide(DSTabletopPane dsTabletopPane,
double angle)
|
static DSUserCenteredEngine.UserSide |
getSideForUserID(DSTabletopPane dsTabletopPane,
int userid)
|
boolean |
isMenubarCircular()
tells to DSMenubar which policy to choose to draw the border of the menubar |
void |
setDistUser(double distUser)
|
AffineTransform |
transformTable(double d,
double alpha,
double beta,
double scale,
double tangle,
double tzoom,
int elType,
int userid)
Return an AffineTransform object to apply to a Graphics2D before drawing an element. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dsTabletopPane
protected DSTabletopPane dsTabletopPane
DSUserCenteredEngine
public DSUserCenteredEngine(DSTabletopPane dsTabletopPane_Arg)
- Creates a new instance of DSUserCenteredEngine
isMenubarCircular
public boolean isMenubarCircular()
- Description copied from interface:
DSEngine
- tells to DSMenubar which policy to choose to draw the border of the menubar
- Specified by:
isMenubarCircular
in interface DSEngine
transformTable
public AffineTransform transformTable(double d,
double alpha,
double beta,
double scale,
double tangle,
double tzoom,
int elType,
int userid)
- Description copied from interface:
DSEngine
- Return an AffineTransform object to apply to a Graphics2D before drawing an element.
- Specified by:
transformTable
in interface DSEngine
- Parameters:
d
- the distance from the center of the table to the center of the element. 0.5 means between the center and the borderalpha
- the angle of the element. Angle around the center of the table (trigonometric system)beta
- angle around the center of the elementscale
- the scale factor. may be modified by a blackhole or fisheye techniquetangle
- the angle of the whole table to add it to Alpha. 0 when dragged and = angle of the view otherwisetzoom
- the scale of the whole tableelType
- element type tells if the element is metalic or not then subject to magnetization !userid
- user id of the owner of element to transform
- Returns:
- a transformation matrix decribing the element rotations, scale, translation according to the parameter values
getDistUser
public double getDistUser()
setDistUser
public void setDistUser(double distUser)
getSide
public static DSUserCenteredEngine.UserSide getSide(DSTabletopPane dsTabletopPane,
double angle)
getSideForUserID
public static DSUserCenteredEngine.UserSide getSideForUserID(DSTabletopPane dsTabletopPane,
int userid)
getMenuBarForUserID
public static DSMenuBar getMenuBarForUserID(DSTabletopPane dsTabletopPane,
int userid)
getFirstUserForSide
public static int getFirstUserForSide(DSTabletopPane dsTabletopPane,
DSUserCenteredEngine.UserSide side)
Copyright © 2006 Frederic Vernier(LIMSI) Chia Shen(MERL) Guillaume Besacier(LIMSI). All Rights Reserved.