|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.fraid.plugin.BehaviorBean
public class BehaviorBean
The adapter to the plugin interface. All current plugins extend this. All public variables are being persisted. The extending plugins add their specific fields and all this is being persisted to settings files (which you create/edit with the settings editor).
| Field Summary | |
|---|---|
boolean |
autoScale
Are the algorithms trying to adjust the scale automatically (not all of them can). |
java.awt.Color |
backgroundColor
The background color. |
DoublePoint |
bottomRight
The plane coordinates of the bottom right corner of the region we are painting. |
java.awt.Dimension |
frameSize
The size of the image. |
java.awt.Color |
gridColor
The color of the grid. |
protected javax.swing.JCheckBoxMenuItem |
mAutoScaleMenuItem
|
java.util.Vector<DoublePoint> |
mGridCrossPoints
The grid. |
protected PaintAlgorithmThread |
mPainterThread
The refernece to the algorithm. |
protected GraphicsUser |
mPanel
The reference to the current user. |
int |
numberGridMarkerDigitsX
How many digits are there on the grid marks - X. |
int |
numberGridMarkerDigitsY
How many digits are there on the grid marks - Y. |
DoublePoint |
upperLeft
The plane coordinates of the upper left corner of the region we are painting. |
| Constructor Summary | |
|---|---|
BehaviorBean()
Creates a new BehaviourPlugInAdapter instance. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent aE)
|
java.lang.Object |
clone()
Clone when saving to file. |
void |
completePopupMenu(javax.swing.JPopupMenu aPopup)
See superclass. |
void |
copyAlgorithmStructures(PaintAlgorithmThread aAlgorithm)
|
boolean |
doActionPerformed(java.awt.event.ActionEvent aE)
|
boolean |
doItemStateChanged(java.awt.event.ItemEvent aE)
|
boolean |
doKeyPressed(java.awt.event.KeyEvent aE)
|
boolean |
doKeyReleased(java.awt.event.KeyEvent aE)
|
boolean |
doKeyTyped(java.awt.event.KeyEvent aE)
|
boolean |
doMouseClicked(java.awt.event.MouseEvent aE)
|
boolean |
doMouseDragged(java.awt.event.MouseEvent aE)
|
boolean |
doMouseEntered(java.awt.event.MouseEvent aE)
|
boolean |
doMouseExited(java.awt.event.MouseEvent aE)
|
boolean |
doMouseMoved(java.awt.event.MouseEvent aE)
|
boolean |
doMousePressed(java.awt.event.MouseEvent aE)
|
boolean |
doMouseReleased(java.awt.event.MouseEvent aE)
|
boolean |
doObjectChanged()
The actual worker for objectChanged. |
PaintAlgorithmThread |
getAlgorithm()
Returns the current algorithm |
java.awt.Color |
getBackgroundColor()
Get the BackgroundColor value. |
DoublePoint |
getBottomRight()
Get the BottomRight value. |
java.awt.Dimension |
getFrameSize()
Get the FrameSize value. |
java.awt.Color |
getGridColor()
Get the GridColor value. |
int |
getNumberGridMarkerDigitsX()
Get the NumberGridMarkerDigitsX value. |
int |
getNumberGridMarkerDigitsY()
Get the NumberGridMarkerDigitsY value. |
java.lang.String |
getToolTipText(java.awt.event.MouseEvent e)
|
DoublePoint |
getUpperLeft()
Get the UpperLeft value. |
boolean |
isAutoScale()
Get the AutoScale value. |
void |
itemStateChanged(java.awt.event.ItemEvent aE)
|
void |
keyPressed(java.awt.event.KeyEvent aE)
|
void |
keyReleased(java.awt.event.KeyEvent aE)
|
void |
keyTyped(java.awt.event.KeyEvent aE)
|
void |
mouseClicked(java.awt.event.MouseEvent aE)
|
void |
mouseDragged(java.awt.event.MouseEvent aE)
|
void |
mouseEntered(java.awt.event.MouseEvent aE)
|
void |
mouseExited(java.awt.event.MouseEvent aE)
|
void |
mouseMoved(java.awt.event.MouseEvent aE)
|
void |
mousePressed(java.awt.event.MouseEvent aE)
|
void |
mouseReleased(java.awt.event.MouseEvent aE)
|
void |
objectChanged()
If we have check boxes or radio buttons on the popup menu they need to get refreshed if their coresponding values changed. |
void |
setAutoScale(boolean newAutoScale)
Set the AutoScale value. |
void |
setBackgroundColor(java.awt.Color newBackgroundColor)
Set the BackgroundColor value. |
void |
setBottomRight(DoublePoint newBottomRight)
Set the BottomRight value. |
void |
setFrameSize(java.awt.Dimension newFrameSize)
Set the FrameSize value. |
void |
setGraphicsPanel(GraphicsUser aPanel)
See superclass. |
void |
setGridColor(java.awt.Color newGridColor)
Set the GridColor value. |
void |
setLimits(DoublePoint aUl,
DoublePoint aBr)
Sets the corners and checks for consistency. |
void |
setNumberGridMarkerDigitsX(int newNumberGridMarkerDigitsX)
Set the NumberGridMarkerDigitsX value. |
void |
setNumberGridMarkerDigitsY(int newNumberGridMarkerDigitsY)
Set the NumberGridMarkerDigitsY value. |
void |
setUpperLeft(DoublePoint newUpperLeft)
Set the UpperLeft value. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected transient GraphicsUser mPanel
protected transient PaintAlgorithmThread mPainterThread
protected transient javax.swing.JCheckBoxMenuItem mAutoScaleMenuItem
public transient java.util.Vector<DoublePoint> mGridCrossPoints
public DoublePoint upperLeft
public DoublePoint bottomRight
public java.awt.Dimension frameSize
public java.awt.Color backgroundColor
public java.awt.Color gridColor
public int numberGridMarkerDigitsX
public int numberGridMarkerDigitsY
public boolean autoScale
| Constructor Detail |
|---|
public BehaviorBean()
BehaviourPlugInAdapter instance.
| Method Detail |
|---|
public boolean isAutoScale()
public void setAutoScale(boolean newAutoScale)
newAutoScale - The new AutoScale value.public int getNumberGridMarkerDigitsY()
public void setNumberGridMarkerDigitsY(int newNumberGridMarkerDigitsY)
newNumberGridMarkerDigitsY - The new NumberGridMarkerDigitsY value.public int getNumberGridMarkerDigitsX()
public void setNumberGridMarkerDigitsX(int newNumberGridMarkerDigitsX)
newNumberGridMarkerDigitsX - The new NumberGridMarkerDigitsX value.public java.awt.Color getGridColor()
public void setGridColor(java.awt.Color newGridColor)
newGridColor - The new GridColor value.public java.awt.Color getBackgroundColor()
public void setBackgroundColor(java.awt.Color newBackgroundColor)
newBackgroundColor - The new BackgroundColor value.public java.awt.Dimension getFrameSize()
public void setFrameSize(java.awt.Dimension newFrameSize)
newFrameSize - The new FrameSize value.public DoublePoint getUpperLeft()
public void setUpperLeft(DoublePoint newUpperLeft)
newUpperLeft - The new UpperLeft value.public DoublePoint getBottomRight()
public void setBottomRight(DoublePoint newBottomRight)
newBottomRight - The new BottomRight value.
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.ObjectObject value
java.lang.CloneNotSupportedException - if an error occurs
public void setGraphicsPanel(GraphicsUser aPanel)
throws PlugInException
setGraphicsPanel in interface BehaviorBeanInterfaceaPanel - a GraphicsUser value
PlugInException - if an error occurs
public void setLimits(DoublePoint aUl,
DoublePoint aBr)
throws GraphicsException
aUl - a DoublePoint valueaBr - a DoublePoint value
GraphicsException - if an error occurspublic PaintAlgorithmThread getAlgorithm()
getAlgorithm in interface BehaviorBeanInterfacePaintAlgorithmThread valuepublic java.lang.String getToolTipText(java.awt.event.MouseEvent e)
public void completePopupMenu(javax.swing.JPopupMenu aPopup)
completePopupMenu in interface BehaviorBeanInterfaceaPopup - a JPopupMenu valuepublic final void objectChanged()
objectChanged in interface ChangeAwareObjectpublic final void actionPerformed(java.awt.event.ActionEvent aE)
actionPerformed in interface java.awt.event.ActionListenerpublic final void itemStateChanged(java.awt.event.ItemEvent aE)
itemStateChanged in interface java.awt.event.ItemListenerpublic final void mouseClicked(java.awt.event.MouseEvent aE)
mouseClicked in interface java.awt.event.MouseListenerpublic final void mouseEntered(java.awt.event.MouseEvent aE)
mouseEntered in interface java.awt.event.MouseListenerpublic final void mouseExited(java.awt.event.MouseEvent aE)
mouseExited in interface java.awt.event.MouseListenerpublic final void mousePressed(java.awt.event.MouseEvent aE)
mousePressed in interface java.awt.event.MouseListenerpublic final void mouseReleased(java.awt.event.MouseEvent aE)
mouseReleased in interface java.awt.event.MouseListenerpublic final void mouseDragged(java.awt.event.MouseEvent aE)
mouseDragged in interface java.awt.event.MouseMotionListenerpublic final void mouseMoved(java.awt.event.MouseEvent aE)
mouseMoved in interface java.awt.event.MouseMotionListenerpublic final void keyPressed(java.awt.event.KeyEvent aE)
keyPressed in interface java.awt.event.KeyListenerpublic final void keyReleased(java.awt.event.KeyEvent aE)
keyReleased in interface java.awt.event.KeyListenerpublic final void keyTyped(java.awt.event.KeyEvent aE)
keyTyped in interface java.awt.event.KeyListenerpublic boolean doObjectChanged()
boolean valuepublic boolean doActionPerformed(java.awt.event.ActionEvent aE)
public boolean doItemStateChanged(java.awt.event.ItemEvent aE)
public boolean doMouseClicked(java.awt.event.MouseEvent aE)
public boolean doMouseEntered(java.awt.event.MouseEvent aE)
public boolean doMouseExited(java.awt.event.MouseEvent aE)
public boolean doMousePressed(java.awt.event.MouseEvent aE)
public boolean doMouseReleased(java.awt.event.MouseEvent aE)
public boolean doMouseDragged(java.awt.event.MouseEvent aE)
public boolean doMouseMoved(java.awt.event.MouseEvent aE)
public boolean doKeyPressed(java.awt.event.KeyEvent aE)
public boolean doKeyReleased(java.awt.event.KeyEvent aE)
public boolean doKeyTyped(java.awt.event.KeyEvent aE)
public void copyAlgorithmStructures(PaintAlgorithmThread aAlgorithm)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||