|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JInternalFrame org.diamondspin.DSFrame org.diamondspin.DSPile
public class DSPile
Nested Class Summary | |
---|---|
protected class |
DSPile.DSPilerMover
When folder move, adpat the slave to it Made by piler |
protected class |
DSPile.Position
|
Nested classes/interfaces inherited from class org.diamondspin.DSFrame |
---|
DSFrame.DSInternalFrameTitlePane, DSFrame.DSMenuBarProxy, DSFrame.FingerRotationMode, DSFrame.FingerRotationSpeed |
Nested classes/interfaces inherited from class javax.swing.JInternalFrame |
---|
JInternalFrame.AccessibleJInternalFrame, JInternalFrame.JDesktopIcon |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
static int |
AURA_LENGTH
|
protected HashMap<DSFrame,Double> |
betaList
|
protected Color[] |
colors
|
protected boolean |
fanOnTwoFingers
|
protected Point |
fip
|
protected int |
fmode
|
protected Point |
fop
|
protected boolean |
freeze
|
protected Point |
frip
|
protected Point |
frop
|
protected HashMap<DSFrame,DSPile.Position> |
fsave
|
protected int |
fuser
|
protected HashMap<DSFrame,DSPile.DSPilerMover> |
moverList
|
protected boolean |
unpileOnDoubleTap
|
Fields inherited from class javax.swing.JInternalFrame |
---|
closable, CONTENT_PANE_PROPERTY, desktopIcon, FRAME_ICON_PROPERTY, frameIcon, GLASS_PANE_PROPERTY, iconable, IS_CLOSED_PROPERTY, IS_ICON_PROPERTY, IS_MAXIMUM_PROPERTY, IS_SELECTED_PROPERTY, isClosed, isIcon, isMaximum, isSelected, LAYERED_PANE_PROPERTY, maximizable, MENU_BAR_PROPERTY, resizable, ROOT_PANE_PROPERTY, rootPane, rootPaneCheckingEnabled, title, TITLE_PROPERTY |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface org.diamondspin.DSElement |
---|
HIGH_QUALITY, LOW_QUALITY |
Fields inherited from interface javax.swing.WindowConstants |
---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
DSPile(DSTabletopPane pane)
Creates a new instance of DSPile |
Method Summary | |
---|---|
void |
addSlaveElement(int pos,
DSElement el)
override the adding slave function to process stuff and update pile |
void |
cancelFan()
cancel the fan mode and restore all the slave |
boolean |
containsFront(double x,
double y)
|
void |
fanOut()
lay out slaves along a fan |
DSFrame |
findSlaveInFan(double b2)
find the slave closest to the given angle |
protected void |
fireSlaveAddedEvent(DSElement el)
Fire a slave adding event |
protected void |
fireSlaveReleasedEvent(DSElement el)
Fire a slave release event |
void |
removeAllSlaveElement()
override the removing all slaves function to process stuff and update pile |
void |
removeSlaveElement(DSElement el)
override the removing slave function to process stuff and update pile |
void |
saveSlavePositions()
save the postitions of slves so they can be restored after fan |
void |
setBeta(double b)
change the angle around its own center, not the center of the polar coordinate system |
void |
setColors(Color[] cols)
|
void |
setUnpileOnDoubleTap(boolean unpileOnDoubleTap)
|
void |
updateSize()
update pile size so it overlaps all its slaves |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.diamondspin.DSElement |
---|
getHeight, getWidth, isVisible, setVisible |
Field Detail |
---|
public static final int AURA_LENGTH
protected HashMap<DSFrame,DSPile.DSPilerMover> moverList
protected HashMap<DSFrame,Double> betaList
protected HashMap<DSFrame,DSPile.Position> fsave
protected Color[] colors
protected boolean unpileOnDoubleTap
protected int fmode
protected boolean fanOnTwoFingers
protected int fuser
protected Point fip
protected Point fop
protected Point frip
protected Point frop
protected boolean freeze
Constructor Detail |
---|
public DSPile(DSTabletopPane pane)
Method Detail |
---|
public void setColors(Color[] cols)
public void setUnpileOnDoubleTap(boolean unpileOnDoubleTap)
public boolean containsFront(double x, double y)
containsFront
in class DSFrame
public void cancelFan()
public void saveSlavePositions()
public DSFrame findSlaveInFan(double b2)
b2
- the anglepublic void fanOut()
public void updateSize()
protected void fireSlaveAddedEvent(DSElement el)
protected void fireSlaveReleasedEvent(DSElement el)
public void addSlaveElement(int pos, DSElement el)
addSlaveElement
in class DSFrame
public void removeSlaveElement(DSElement el)
removeSlaveElement
in class DSFrame
public void removeAllSlaveElement()
removeAllSlaveElement
in class DSFrame
public void setBeta(double b)
DSFrame
setBeta
in interface DSElement
setBeta
in class DSFrame
b
- The new beta value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |