|
||||||||||
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 sideMethod Detail |
---|
public void setVisible(boolean visible_Arg)
DSElement
setVisible
in interface DSElement
visible_Arg
- The new visibility valuepublic void setActive(boolean Active_Arg)
DSElement
setActive
in interface DSElement
Active_Arg
- The new active valuepublic boolean isMouseTarget(MouseEvent e)
DSElement
isMouseTarget
in interface DSElement
e
- Description of the Parameter
public void mouseClicked(MouseEvent MouseEvent_Arg)
DSElement
mouseClicked
in interface DSElement
MouseEvent_Arg
- Description of the Parameterpublic void mouseDragged(MouseEvent MouseEvent_Arg)
DSElement
mouseDragged
in interface DSElement
MouseEvent_Arg
- Description of the Parameterpublic void mouseMoved(MouseEvent MouseEvent_Arg)
DSElement
mouseMoved
in interface DSElement
MouseEvent_Arg
- Description of the Parameterpublic void mousePressed(MouseEvent MouseEvent_Arg)
DSElement
mousePressed
in interface DSElement
MouseEvent_Arg
- Description of the Parameterpublic void mouseReleased(MouseEvent MouseEvent_Arg)
DSElement
mouseReleased
in interface DSElement
MouseEvent_Arg
- Description of the Parameterpublic void paint(Graphics2D g, int q)
DSElement
paint
in interface DSElement
g
- Description of the Parameterq
- Description of the Parameterpublic void setScale(double scale)
DSElement
setScale
in interface DSElement
scale
- The new scale valuepublic void setD(double d)
DSElement
setD
in interface DSElement
d
- The new d valuepublic void setBeta(double alpha)
DSElement
setBeta
in interface DSElement
alpha
- The new beta valuepublic void setAlpha(double alpha)
DSElement
setAlpha
in interface DSElement
alpha
- The new alpha valuepublic void paint(Graphics g)
DSElement
paint
in interface DSElement
g
- Description of the Parameterpublic void removeDSElementListener(DSElementListener DSElementListener_Arg)
DSElement
removeDSElementListener
in interface DSElement
DSElementListener_Arg
- Description of the Parameterpublic void addDSElementListener(DSElementListener DSElementListener_Arg)
DSElement
addDSElementListener
in interface DSElement
DSElementListener_Arg
- The feature to be added to the DSElementListener attributepublic void setIDOwner(int id)
DSElement
setIDOwner
in interface DSElement
id
- The new iDOwner valuepublic boolean acceptSlavery(DSElement dsElement)
DSElement
acceptSlavery
in interface DSElement
public boolean acceptSlaveryRelease()
DSElement
acceptSlaveryRelease
in interface DSElement
public AffineTransform getTransform()
DSElement
getTransform
in interface DSElement
public void moveElementCenterTo(Point2D.Double touchPoint)
DSElement
moveElementCenterTo
in interface DSElement
touchPoint
- Description of the Parameterpublic void setSize(int Width_Arg, int Height_Arg)
DSElement
setSize
in interface DSElement
Width_Arg
- The new size valueHeight_Arg
- The new size valuepublic int getWidth()
DSElement
getWidth
in interface DSElement
public double getScale()
DSElement
getScale
in interface DSElement
public int getIDOwner()
DSElement
getIDOwner
in interface DSElement
public int getHeight()
DSElement
getHeight
in interface DSElement
public double getD()
DSElement
getD
in interface DSElement
public double getBeta()
DSElement
getBeta
in interface DSElement
public boolean isBetaAbs()
DSElement
isBetaAbs
in interface DSElement
public void setBetaAbs(boolean betaAbs)
DSElement
setBetaAbs
in interface DSElement
public double getAlpha()
DSElement
getAlpha
in interface DSElement
public double getAbsoluteScale()
DSElement
getAbsoluteScale
in interface DSElement
public boolean doesContain(double x, double y)
DSElement
doesContain
in interface DSElement
x
- Description of the Parametery
- Description of the Parameter
public boolean grabElement(int DX_Arg, int DY_Arg)
DSElement
grabElement
in interface DSElement
DX_Arg
- Description of the ParameterDY_Arg
- Description of the Parameterpublic boolean isActive()
DSElement
isActive
in interface DSElement
public boolean isVisible()
isVisible
in interface DSElement
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public DSFrame getFrame()
public boolean isSide()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |