|
CubeTwister 2.0alpha142 2012-02-11 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.randelshofer.beans.AbstractBean
ch.randelshofer.cubetwister.doc.SolverModel
public class SolverModel
SolverModel.
| Field Summary | |
|---|---|
protected javax.swing.event.EventListenerList |
listenerList
|
| Fields inherited from class ch.randelshofer.beans.AbstractBean |
|---|
propertySupport |
| Constructor Summary | |
|---|---|
SolverModel(Cube3D cube3D,
ScriptPlayer player,
CubeAttributes target)
Creates a new instance of SolverModel |
|
| Method Summary | |
|---|---|
void |
addUndoableEditListener(javax.swing.event.UndoableEditListener l)
Adds an UndoableEditListener. |
void |
clear()
|
java.lang.Object |
clone()
Clones the attributes. |
void |
dispose()
Gets rid of allocated resources. |
void |
fill()
|
void |
fireUndoableEditHappened(javax.swing.undo.UndoableEdit edit)
Notify all listeners that have registered interest for notification on this event type. |
float |
getAlpha()
Gets the alpha orientation of the cube. |
float |
getBeta()
Gets the beta orientation of the cube. |
float |
getExplosionFactor()
Gets the global explosion factor of the cube. |
int |
getFaceCount()
|
java.awt.Color |
getFrontBgColor()
|
java.awt.Image |
getFrontBgImage()
|
Cube |
getMappedCube(Cube cube)
|
java.lang.String |
getMappedPermutationString(Cube cube,
Notation notation)
|
java.lang.String |
getMappedStickersString(Cube cube)
|
int |
getPartCount()
|
float |
getPartExplosion(int index)
Gets the explosion factor of a single part of the cube. |
java.awt.Color |
getPartFillColor(int partIndex)
|
java.awt.Color |
getPartOutlineColor(int partIndex)
|
java.awt.Color |
getRearBgColor()
|
java.awt.Image |
getRearBgImage()
|
float |
getScaleFactor()
|
int |
getStickerCount()
|
int |
getStickerCount(int face)
|
float |
getStickerExplosion(int index)
Gets the explosion factor of a single sticker of the cube. |
java.awt.Color |
getStickerFillColor(int stickerIndex)
|
int |
getStickerOffset(int face)
|
java.awt.Color |
getStickerOutlineColor(int index)
|
java.awt.Image |
getStickersImage()
|
int |
getTwistDuration()
|
boolean |
getValueIsAdjusting()
Returns true if the current changes to the value property are part of a series of changes. |
boolean |
isFrontBgImageVisible()
|
boolean |
isPainting()
|
boolean |
isPartVisible(int partIndex)
|
boolean |
isRearBgImageVisible()
|
boolean |
isSolveable()
|
boolean |
isSolverSupported()
|
boolean |
isStickersChanged()
Returns true, if the solver model affects the stickerFaces of the cube. |
boolean |
isStickersImageVisible()
|
boolean |
isStickerVisible(int stickerIndex)
|
boolean |
isTwisting()
|
void |
propertyChange(java.beans.PropertyChangeEvent evt)
This method gets called when a bound property is changed. |
void |
removeUndoableEditListener(javax.swing.event.UndoableEditListener l)
Removes an UndoableEditListener. |
void |
reset()
|
void |
setCubeAttributes(CubeAttributes m)
|
void |
setPaintFace(int newValue)
Sets the face we are painting. |
void |
setPlayer(ScriptPlayer player)
|
void |
setStickerMapping(int stickerIndex,
int mapValue)
The side of the cube. |
void |
setTo(CubeAttributes that)
Sets the attributes of this cube to the specified attributes. |
void |
setValueIsAdjusting(boolean newValue)
This attribute indicates that any upcoming changes to the value of the model should be considered a single event. |
| Methods inherited from class ch.randelshofer.beans.AbstractBean |
|---|
addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, removePropertyChangeListener |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ch.randelshofer.rubik.CubeAttributes |
|---|
addPropertyChangeListener, removePropertyChangeListener |
| Field Detail |
|---|
protected javax.swing.event.EventListenerList listenerList
| Constructor Detail |
|---|
public SolverModel(Cube3D cube3D,
ScriptPlayer player,
CubeAttributes target)
| Method Detail |
|---|
public void setPlayer(ScriptPlayer player)
public void setCubeAttributes(CubeAttributes m)
public void setPaintFace(int newValue)
public boolean isPainting()
public boolean isTwisting()
public void reset()
reset in interface CubeAttributespublic void clear()
public void fill()
public void setStickerMapping(int stickerIndex,
int mapValue)
public java.awt.Color getStickerFillColor(int stickerIndex)
getStickerFillColor in interface CubeAttributespublic boolean isStickerVisible(int stickerIndex)
isStickerVisible in interface CubeAttributespublic java.awt.Color getPartFillColor(int partIndex)
getPartFillColor in interface CubeAttributespublic java.awt.Color getPartOutlineColor(int partIndex)
getPartOutlineColor in interface CubeAttributespublic float getAlpha()
CubeAttributes
getAlpha in interface CubeAttributespublic float getBeta()
CubeAttributes
getBeta in interface CubeAttributespublic float getExplosionFactor()
CubeAttributes
getExplosionFactor in interface CubeAttributespublic float getScaleFactor()
getScaleFactor in interface CubeAttributespublic boolean isPartVisible(int partIndex)
isPartVisible in interface CubeAttributespublic void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange in interface java.beans.PropertyChangeListenerevt - A PropertyChangeEvent object describing the event source
and the property that has changed.public boolean isStickersChanged()
public boolean isSolverSupported()
public boolean isSolveable()
public java.lang.String getMappedStickersString(Cube cube)
public java.lang.String getMappedPermutationString(Cube cube,
Notation notation)
public Cube getMappedCube(Cube cube)
public void addUndoableEditListener(javax.swing.event.UndoableEditListener l)
public void removeUndoableEditListener(javax.swing.event.UndoableEditListener l)
public void fireUndoableEditHappened(javax.swing.undo.UndoableEdit edit)
public int getFaceCount()
getFaceCount in interface CubeAttributespublic int getPartCount()
getPartCount in interface CubeAttributespublic int getStickerCount()
getStickerCount in interface CubeAttributespublic int getStickerCount(int face)
getStickerCount in interface CubeAttributespublic int getStickerOffset(int face)
getStickerOffset in interface CubeAttributespublic java.awt.Color getStickerOutlineColor(int index)
getStickerOutlineColor in interface CubeAttributespublic java.awt.Image getStickersImage()
getStickersImage in interface CubeAttributespublic java.awt.Color getFrontBgColor()
getFrontBgColor in interface CubeAttributespublic java.awt.Image getFrontBgImage()
getFrontBgImage in interface CubeAttributespublic java.awt.Color getRearBgColor()
getRearBgColor in interface CubeAttributespublic java.awt.Image getRearBgImage()
getRearBgImage in interface CubeAttributespublic boolean isFrontBgImageVisible()
isFrontBgImageVisible in interface CubeAttributespublic boolean isRearBgImageVisible()
isRearBgImageVisible in interface CubeAttributespublic boolean isStickersImageVisible()
isStickersImageVisible in interface CubeAttributespublic void setValueIsAdjusting(boolean newValue)
CubeAttributesSliders and scrollbars use this property when a drag is underway.
setValueIsAdjusting in interface CubeAttributesnewValue - true if the upcoming changes to the value property are part of a seriespublic boolean getValueIsAdjusting()
CubeAttributes
getValueIsAdjusting in interface CubeAttributesCubeAttributes.setValueIsAdjusting(boolean)public float getPartExplosion(int index)
CubeAttributes
getPartExplosion in interface CubeAttributespublic float getStickerExplosion(int index)
CubeAttributes
getStickerExplosion in interface CubeAttributespublic void dispose()
CubeAttributes
dispose in interface CubeAttributespublic int getTwistDuration()
getTwistDuration in interface CubeAttributespublic void setTo(CubeAttributes that)
CubeAttributes
setTo in interface CubeAttributespublic java.lang.Object clone()
CubeAttributes
clone in interface CubeAttributesclone in class java.lang.Object
|
(c) Werner Randelshofer. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||