|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.diamondspin.DSSideHandler
public class DSSideHandler
| Field Summary | |
|---|---|
protected DSFrame |
frame
|
protected int |
idOwner
|
protected boolean |
side
|
| Fields inherited from interface org.diamondspin.DSElement |
|---|
HIGH_QUALITY, LOW_QUALITY |
| Constructor Summary | |
|---|---|
DSSideHandler(DSFrame f,
boolean side)
|
|
| Method Summary | |
|---|---|
boolean |
acceptSlavery(DSElement dsElement)
tells if this dselement accept to be slave of an other one. |
boolean |
acceptSlaveryRelease()
tells if I accept to be released |
void |
addDSElementListener(DSElementListener DSElementListener_Arg)
I'm a element so I can dispatch DSElement events to the listener which suscribe through this method |
Object |
clone()
|
boolean |
doesContain(double x,
double y)
Description of the Method |
double |
getAbsoluteScale()
Gets the Absolute Scale attribute of the DSElement object |
double |
getAlpha()
The degrees of freedom of the DSElements are their distance to the center, their angle comparing to the right direction (from center to the ful right), a scale (for zooming features) and |
double |
getBeta()
The angle around its center |
double |
getD()
The degrees of freedom of the DSElements are their distance to the center, their angle comparing to the right direction (from center to the ful right), a scale (for zooming features) and |
DSFrame |
getFrame()
|
int |
getHeight()
Elements are displayed around their center (not around their top left corner) Width and Height are the amount of space used by the repaint. |
int |
getIDOwner()
Gets the iDOwner attribute of the DSElement object |
double |
getScale()
The degrees of freedom of the DSElements are their distance to the center, their angle comparing to the right direction (from center to the ful right), a scale (for zooming features) and |
AffineTransform |
getTransform()
The matrix decribing how this element is transformed before rendering |
int |
getWidth()
Elements are displayed around their center (not around their top left corner) Width and Height are the amount of space used by the repaint. |
boolean |
grabElement(int DX_Arg,
int DY_Arg)
Simulate the element has been dragged. |
boolean |
isActive()
in the centralized architecture we have some elements are in the views and one or few element are handled directly by the DSTabletopPane as drag&dropped elements. |
boolean |
isBetaAbs()
indicate how to use beta. |
boolean |
isMouseTarget(MouseEvent e)
tell whether a mouse click is within a certain element without actually selecting that element |
boolean |
isSide()
|
boolean |
isVisible()
|
void |
mouseClicked(MouseEvent MouseEvent_Arg)
mouse callbacks the DSTabletopPane or the view will call |
void |
mouseDragged(MouseEvent MouseEvent_Arg)
mouse callbacks the DSTabletopPane or the view will call |
void |
mouseMoved(MouseEvent MouseEvent_Arg)
mouse callbacks the DSTabletopPane or the view will call |
void |
mousePressed(MouseEvent MouseEvent_Arg)
mouse callbacks the DSTabletopPane or the view will call |
void |
mouseReleased(MouseEvent MouseEvent_Arg)
mouse callbacks the DSTabletopPane or the view will call |
void |
moveElementCenterTo(Point2D.Double touchPoint)
MERRIE??? |
void |
paint(Graphics g)
the default paint method. |
void |
paint(Graphics2D g,
int q)
According to the repaint speed of rotated element it can be interesting to distinguish when a high quality repaint is necessary and when a low quality repaint is enough. |
void |
removeDSElementListener(DSElementListener DSElementListener_Arg)
remove a listener |
void |
setActive(boolean Active_Arg)
in the centralized architecture we have some elements are in the views and one or few element are handled directly by the DSTabletopPane as drag&dropped elements. |
void |
setAlpha(double alpha)
The degrees of freedom of the DSElements are their distance to the center, their angle comparing to the right direction (from center to the ful right), a scale (for zooming features) and |
void |
setBeta(double alpha)
The angle around its center |
void |
setBetaAbs(boolean betaAbs)
change how to use beta. |
void |
setD(double d)
The degrees of freedom of the DSElements are their distance to the center, their angle comparing to the right direction (from center to the ful right), a scale (for zooming features) and |
void |
setIDOwner(int id)
elements can have an owner associated with them -1 means no owner |
void |
setScale(double scale)
The degrees of freedom of the DSElements are their distance to the center, their angle comparing to the right direction (from center to the ful right), a scale (for zooming features) and |
void |
setSize(int Width_Arg,
int Height_Arg)
Elements are displayed around their center (not around their top left corner) Width and Height are the amount of space used by the repaint. |
void |
setVisible(boolean visible_Arg)
say if the component is visible |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected DSFrame frame
protected boolean side
protected int idOwner
| Constructor Detail |
|---|
public DSSideHandler(DSFrame f,
boolean side)
side - tells if this handler handles the front side| Method Detail |
|---|
public void setVisible(boolean visible_Arg)
DSElement
setVisible in interface DSElementvisible_Arg - The new visibility valuepublic void setActive(boolean Active_Arg)
DSElement
setActive in interface DSElementActive_Arg - The new active valuepublic boolean isMouseTarget(MouseEvent e)
DSElement
isMouseTarget in interface DSElemente - Description of the Parameter
public void mouseClicked(MouseEvent MouseEvent_Arg)
DSElement
mouseClicked in interface DSElementMouseEvent_Arg - Description of the Parameterpublic void mouseDragged(MouseEvent MouseEvent_Arg)
DSElement
mouseDragged in interface DSElementMouseEvent_Arg - Description of the Parameterpublic void mouseMoved(MouseEvent MouseEvent_Arg)
DSElement
mouseMoved in interface DSElementMouseEvent_Arg - Description of the Parameterpublic void mousePressed(MouseEvent MouseEvent_Arg)
DSElement
mousePressed in interface DSElementMouseEvent_Arg - Description of the Parameterpublic void mouseReleased(MouseEvent MouseEvent_Arg)
DSElement
mouseReleased in interface DSElementMouseEvent_Arg - Description of the Parameter
public void paint(Graphics2D g,
int q)
DSElement
paint in interface DSElementg - Description of the Parameterq - Description of the Parameterpublic void setScale(double scale)
DSElement
setScale in interface DSElementscale - The new scale valuepublic void setD(double d)
DSElement
setD in interface DSElementd - The new d valuepublic void setBeta(double alpha)
DSElement
setBeta in interface DSElementalpha - The new beta valuepublic void setAlpha(double alpha)
DSElement
setAlpha in interface DSElementalpha - The new alpha valuepublic void paint(Graphics g)
DSElement
paint in interface DSElementg - Description of the Parameterpublic void removeDSElementListener(DSElementListener DSElementListener_Arg)
DSElement
removeDSElementListener in interface DSElementDSElementListener_Arg - Description of the Parameterpublic void addDSElementListener(DSElementListener DSElementListener_Arg)
DSElement
addDSElementListener in interface DSElementDSElementListener_Arg - The feature to be added to the DSElementListener attributepublic void setIDOwner(int id)
DSElement
setIDOwner in interface DSElementid - The new iDOwner valuepublic boolean acceptSlavery(DSElement dsElement)
DSElement
acceptSlavery in interface DSElementpublic boolean acceptSlaveryRelease()
DSElement
acceptSlaveryRelease in interface DSElementpublic AffineTransform getTransform()
DSElement
getTransform in interface DSElementpublic void moveElementCenterTo(Point2D.Double touchPoint)
DSElement
moveElementCenterTo in interface DSElementtouchPoint - Description of the Parameter
public void setSize(int Width_Arg,
int Height_Arg)
DSElement
setSize in interface DSElementWidth_Arg - The new size valueHeight_Arg - The new size valuepublic int getWidth()
DSElement
getWidth in interface DSElementpublic double getScale()
DSElement
getScale in interface DSElementpublic int getIDOwner()
DSElement
getIDOwner in interface DSElementpublic int getHeight()
DSElement
getHeight in interface DSElementpublic double getD()
DSElement
getD in interface DSElementpublic double getBeta()
DSElement
getBeta in interface DSElementpublic boolean isBetaAbs()
DSElement
isBetaAbs in interface DSElementpublic void setBetaAbs(boolean betaAbs)
DSElement
setBetaAbs in interface DSElementpublic double getAlpha()
DSElement
getAlpha in interface DSElementpublic double getAbsoluteScale()
DSElement
getAbsoluteScale in interface DSElement
public boolean doesContain(double x,
double y)
DSElement
doesContain in interface DSElementx - Description of the Parametery - Description of the Parameter
public boolean grabElement(int DX_Arg,
int DY_Arg)
DSElement
grabElement in interface DSElementDX_Arg - Description of the ParameterDY_Arg - Description of the Parameterpublic boolean isActive()
DSElement
isActive in interface DSElementpublic boolean isVisible()
isVisible in interface DSElement
public Object clone()
throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic DSFrame getFrame()
public boolean isSide()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||