|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--org.concord.biologica.ui.UIView | +--org.concord.biologica.ui.PedigreeView
The pedigree view of BioLogica.
An object of this class will generate the following property change events:
UIProp.BACKGROUND
,
UIProp.CHARACTERISTICS_TEXT_VISIBLE
,
UIProp.CHROMOSOME_TOOL_PICK_ON_ORGANISM
,
UIProp.CROSS_SUCCEEDED
,
UIProp.CROSS_TOOL_ENABLED
,
UIProp.CROSS_TOOL_VISIBLE
,
UIProp.FONT
,
UIProp.FOREGROUND
,
UIProp.NAME_TEXT_VISIBLE
,
UIProp.NUMBER_FEMALE_CHILDREN
,
UIProp.NUMBER_MALE_CHILDREN
,
UIProp.OFFSPRING_MODE
,
UIProp.ORGANISM_ADDED_TO_VIEW
,
UIProp.ORGANISM_IMAGE_SIZE
,
UIProp.ORGANISM_IMAGES_VISIBLE
,
UIProp.ORGANISM_REMOVED_FROM_VIEW
,
UIProp.SELECTION_TOOL_ENABLED
,
UIProp.SELECTION_TOOL_VISIBLE
,
UIProp.SEX_TEXT_VISIBLE
,
UIProp.SNIP_TOOL_ENABLED
,
UIProp.SNIP_TOOL_VISIBLE
,
UIProp.SPECIES_TEXT_VISIBLE
,
UIProp.TEXT_INDENT
,
UIProp.TEXT_LINE_SPACING
,
UIProp.TRAIT_PULLDOWN_ENABLED
,
UIProp.TRAIT_PULLDOWN_VISIBLE
,
PropertyChangeListener
, Serialized FormInner classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
Inner classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent |
Field Summary | |
static int |
OFFSPRING_MODE_FIXED
|
static java.lang.String |
OFFSPRING_MODE_FIXED_STRING
|
static int |
OFFSPRING_MODE_MALE_FEMALE
|
static java.lang.String |
OFFSPRING_MODE_MALE_FEMALE_STRING
|
static int |
OFFSPRING_MODE_MIN_MAX
|
static java.lang.String |
OFFSPRING_MODE_MIN_MAX_STRING
|
Fields inherited from class org.concord.biologica.ui.UIView |
changes, fontAscent, fontDescent, fontHeight, fontMetrics, preferredHeight, preferredWidth, scrollPane |
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 java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
PedigreeView()
Creates a pedigree view. |
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
React to actions |
void |
addFamily(Family aFamily,
int xLocation,
int yLocation)
Add a family to this view. |
void |
addOrganism(Organism anOrganism,
int xLocation,
int yLocation)
Add an organism to this view. |
void |
addOrganism(Organism anOrganism,
int xLocation,
int yLocation,
java.lang.String aTraitName)
Add an organism to this view and specify the trait to show, which is used only if this is the first organism added to the view. |
void |
componentHidden(java.awt.event.ComponentEvent event)
Component events |
void |
componentMoved(java.awt.event.ComponentEvent event)
|
void |
componentResized(java.awt.event.ComponentEvent event)
|
void |
componentShown(java.awt.event.ComponentEvent event)
|
boolean |
containsOrganism(Organism anOrganism)
Returns whether or not the given organism is in this view. |
void |
focusGained(java.awt.event.FocusEvent event)
Handle focus gained event - do nothing in most cases. |
void |
focusLost(java.awt.event.FocusEvent event)
Handle focus lost event - check text in most cases. |
int |
getActiveTool()
Get the active tool. |
java.util.Enumeration |
getFamilies()
Get the set of pedigreeFamilies in this view. |
Family |
getFamilyForParents(Organism parentOne,
Organism parentTwo)
Get the Family for the given parent Organisms |
int |
getFixedNumberChildren()
Get the fixed number of children from a breeding. |
int |
getMaximumNumberChildren()
Get the maximum number of children from a breeding. |
int |
getMinimumNumberChildren()
Get the minimum number of children from a breeding. |
int |
getNumberFemaleChildren()
Get the number of female children to create in a family when the view is in PedigreeView.OFFSPRING_MODE_MALE_FEMALE mode. |
int |
getNumberMaleChildren()
Get the number of male children to create in a family when the view is in PedigreeView.OFFSPRING_MODE_MALE_FEMALE mode. |
int |
getNumberOfFamilies()
Get the number of pedigreeFamilies in this view. |
int |
getNumberOfOrganisms()
Get the number of pedigreeOrganisms in this view. |
int |
getOffspringMode()
Get the offspring mode |
int |
getOrganismImageSize()
Get the organism image size for this view. |
java.util.Enumeration |
getOrganisms()
Get the set of pedigreeOrganisms in this view. |
PedigreeOrganismView |
getPedigreeOrganismView()
Get the pedigree organism view in this view. |
SelectionSet |
getSelectionSet()
Get the current selection set |
Species |
getSpecies()
Get the current species. |
int |
getTextIndent()
Get the text indent for this view. |
int |
getTextLineSpacing()
Get the text line spacing for this view, the number of pixels between lines of text below an organism. |
java.lang.String |
getTrait()
Get the trait for this view. |
javax.swing.JButton |
getUtilityButton()
|
boolean |
isCharacteristicsTextVisible()
Is the characteristics text visible? |
boolean |
isChromosomeToolEnabled()
Is the chromosome tool enabled? |
boolean |
isChromosomeToolVisible()
Is the chromosome tool visible? |
boolean |
isCrossOverEnabled()
Is cross over enabled? |
boolean |
isCrossOverTurnOn()
Is the Cross over turn on? |
boolean |
isCrossOverVisible()
Is the cross over check box visibled? |
boolean |
isCrossToolEnabled()
Is the cross tool enabled? |
boolean |
isCrossToolVisible()
Is the cross tool visible? |
boolean |
isLockSymbolVisible()
Is the lock symbol visible? |
boolean |
isNameTextVisible()
Is the name text visible? |
boolean |
isOffspringModePulldownEnabled()
Is the offspring mode pulldown enabled? |
boolean |
isOffspringModePulldownVisible()
Is the offspring mode pulldown visible? |
boolean |
isOnlyLiveChildren()
Is the Only Live Children flag true? |
boolean |
isOrganismImagesVisible()
Is the organism images visible? |
boolean |
isSelectionToolEnabled()
Is the selection tool enabled? |
boolean |
isSelectionToolVisible()
Is the selection tool visible? |
boolean |
isSexTextVisible()
Is the sex text visible? |
boolean |
isSnipToolEnabled()
Is the snip tool enabled? |
boolean |
isSnipToolVisible()
Is the snip tool visible? |
boolean |
isSpeciesTextVisible()
Is the species text visible? |
boolean |
isTraitPulldownVisible()
Is the trait pulldown visible? |
void |
itemStateChanged(java.awt.event.ItemEvent event)
Handle combo box item changed events. |
void |
paintComponent(java.awt.Graphics g)
Draw the graphics in this view. |
void |
processPendingTextEdits()
Process pending text edit control modifications before allowing something else to occur in the user interface. |
void |
propertyChange(java.beans.PropertyChangeEvent event)
Handle property change events |
void |
removeAll()
Remove all objects in this view, both organisms and families. |
void |
removeAllFamilies()
Remove all pedigreeFamilies, with no notificaition |
void |
removeAllOrganisms()
Remove all pedigreeOrganisms |
boolean |
removeFamily(Family aFamily)
Removes a family from this view. |
boolean |
removeOrganism(Organism anOrganism)
Removes an organism from this view. |
void |
setActiveTool(int anActiveTool)
Set the active tool |
void |
setBounds(int x,
int y,
int width,
int height)
Set the bounds of this view. |
void |
setCharacteristicsTextVisible(boolean aCharacteristicsTextVisible)
Set the characteristics text visible boolean. |
void |
setChromosomeToolEnabled(boolean aChromosomeToolEnabled)
Set the chromosome tool enabled state. |
void |
setChromosomeToolVisible(boolean aChromosomeToolVisible)
Set the chromosome tool visibility. |
void |
setCrossOverEnabled(boolean aCrossOverEnabled)
set the Cross over check box enabled state |
void |
setCrossOverPossibility(int p)
set Cross over possibility |
void |
setCrossOverTurnOn(boolean aBlnCrossOverTurnOn)
|
void |
setCrossOverVisible(boolean aCrossOverVisible)
set the Cross over check box visible state |
void |
setCrossToolEnabled(boolean aCrossToolEnabled)
Set the cross tool enabled state. |
void |
setCrossToolVisible(boolean aCrossToolVisible)
Set the cross tool visibility. |
void |
setFixedNumberChildren(int aFixedNumberChildren)
Set the fixed number of children from a breeding. |
void |
setLockSymbolVisible(boolean aLockSymbolVisible)
Set the lock symbol visible boolean. |
void |
setMaximumNumberChildren(int aMaximumNumberChildren)
Set the maximum number of children from a breeding. |
void |
setMinimumNumberChildren(int aMinimumNumberChildren)
Set the minimum number of children from a breeding. |
void |
setMinMaxNumberChildren(int aMinimumNumberChildren,
int aMaximumNumberChildren)
Set the minimum and maximum number of children from a breeding. |
void |
setNameTextVisible(boolean aNameTextVisible)
Set the name text visible boolean. |
void |
setNumberFemaleChildren(int aNumberFemaleChildren)
Set the number of female children to create in a family when the view is in PedigreeView.OFFSPRING_MODE_MALE_FEMALE mode. |
void |
setNumberMaleChildren(int aNumberMaleChildren)
Set the number of male children to create in a family when the view is in PedigreeView.OFFSPRING_MODE_MALE_FEMALE mode. |
void |
setNumberMaleFemaleChildren(int aNumberFemaleChildren,
int aNumberMaleChildren)
Set the number of female and male children to create in a family when the view is in PedigreeView.OFFSPRING_MODE_MALE_FEMALE mode. |
void |
setOffspringMode(int anOffspringMode)
Set the offspring mode |
void |
setOffspringModePulldownEnabled(boolean anOffspringModePulldownEnabled)
Set the offspring mode pulldown enabled state. |
void |
setOffspringModePulldownVisible(boolean anOffspringModePulldownVisible)
Set the offspring mode pulldown visibility. |
void |
setOnlyLiveChildren(boolean onlyLiveChildren)
Set the Only Live Children flag |
void |
setOrganismImageSize(int anOrganismImageSize)
Set the organism image size for this view. |
void |
setOrganismImagesVisible(boolean visible)
Set the organism images visible |
void |
setSelectionSet(SelectionSet aSelectionSet)
Set the current selection set. |
void |
setSelectionToolEnabled(boolean aSelectionToolEnabled)
Set the selection tool enabled state. |
void |
setSelectionToolVisible(boolean aSelectionToolVisible)
Set the selection tool visibility. |
void |
setSexTextVisible(boolean aSexTextVisible)
Set the sex text visible boolean. |
void |
setSnipToolEnabled(boolean aSnipToolEnabled)
Set the snip tool enabled state. |
void |
setSnipToolVisible(boolean aSnipToolVisible)
Set the snip tool visibility. |
void |
setSpeciesTextVisible(boolean aSpeciesTextVisible)
Set the species text visible boolean. |
void |
setTextIndent(int aTextIndent)
Set the text indent for this view. |
void |
setTextLineSpacing(int aTextLineSpacing)
Set the text line spacing for this view, the number of pixels between lines of text below an organism. |
void |
setTrait(java.lang.String aTraitName)
Set the trait for this view. |
void |
setTraitPulldownEnabled(boolean aTraitPulldownEnabled)
Set the trait pulldown enabled state. |
void |
setTraitPulldownVisible(boolean aTraitPulldownVisible)
Set the trait pulldown visibility. |
void |
setVisible(boolean isVisible)
|
void |
toolChanged(int aTool)
Method called by ToolView when the current tool changes. |
void |
updateControls()
Update the state (visibility, enabled, values) of the controls. |
void |
updateSize()
Update the size of this view. |
Methods inherited from class org.concord.biologica.ui.UIView |
addPropertyChangeListener, getLocalImage, getPreferredSize, paintBackground, removePropertyChangeListener, setBackground, setFont, setForeground, setScrollPane, updateFont |
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getUIClassID, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processFocusEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update, updateUI |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeContainerListener, setLayout, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int OFFSPRING_MODE_FIXED
public static final java.lang.String OFFSPRING_MODE_FIXED_STRING
public static final int OFFSPRING_MODE_MIN_MAX
public static final java.lang.String OFFSPRING_MODE_MIN_MAX_STRING
public static final int OFFSPRING_MODE_MALE_FEMALE
public static final java.lang.String OFFSPRING_MODE_MALE_FEMALE_STRING
Constructor Detail |
public PedigreeView()
Method Detail |
public PedigreeOrganismView getPedigreeOrganismView()
public boolean containsOrganism(Organism anOrganism)
anOrganism
- Organism - the organism to findpublic void addOrganism(Organism anOrganism, int xLocation, int yLocation)
anOrganism
- Organism - an organism to add, may not be nullxLocation
- int - x location of organismyLocation
- int - y location of organismjava.lang.IllegalArgumentException
- - input organism nullpublic void addOrganism(Organism anOrganism, int xLocation, int yLocation, java.lang.String aTraitName)
anOrganism
- Organism - an organism to add, may not be nullxLocation
- int - x location of organismyLocation
- int - y location of organismaTraitName
- String - the name of a trait to show, null causes full organisms to be shownjava.lang.IllegalArgumentException
- - input organism nullpublic boolean removeOrganism(Organism anOrganism)
anOrganism
- Organism - an organism, may be nullpublic void removeAllOrganisms()
public int getNumberOfOrganisms()
public java.util.Enumeration getOrganisms()
public void addFamily(Family aFamily, int xLocation, int yLocation)
If neither parent is in the view, the given x, y coordinates are used to place the mother organism and then the father and children positions are calculated relative to the mother's position.
aFamily
- Family - a family to add, may not be null nor already in the viewxLocation
- int - x location of first parent organism, ignored if a parent already in viewyLocation
- int - y location of first parent organism, ignored if a parent already in viewjava.lang.IllegalArgumentException
- - input organism nullpublic boolean removeFamily(Family aFamily)
aFamily
- Family - a family, may be nullpublic void removeAllFamilies()
public int getNumberOfFamilies()
public java.util.Enumeration getFamilies()
public Family getFamilyForParents(Organism parentOne, Organism parentTwo)
parentOne
- Organism - the first parent OrganismparentTwo
- Organism - the second parent Organismpublic void removeAll()
removeAll
in class java.awt.Container
public int getOffspringMode()
OFFSPRING_MODE_FIXED
,
OFFSPRING_MODE_MIN_MAX
,
OFFSPRING_MODE_MALE_FEMALE
public void setOffspringMode(int anOffspringMode)
anOffspringMode
- int - the new offspring modeOFFSPRING_MODE_FIXED
,
OFFSPRING_MODE_MIN_MAX
,
OFFSPRING_MODE_MALE_FEMALE
public javax.swing.JButton getUtilityButton()
public boolean isOnlyLiveChildren()
public void setOnlyLiveChildren(boolean onlyLiveChildren)
onlyLiveChildren
- boolean - only live children?public boolean isOrganismImagesVisible()
public void setOrganismImagesVisible(boolean visible)
visible
- boolean - visible?public int getActiveTool()
public void toolChanged(int aTool)
toolChanged
in class UIView
aTool
- int - the active toolpublic void setActiveTool(int anActiveTool)
anActiveTool
- int - the new active toolpublic boolean isSelectionToolEnabled()
public void setSelectionToolEnabled(boolean aSelectionToolEnabled)
aSelectionToolEnabled
- boolean - enabled?public boolean isCrossToolEnabled()
public void setCrossToolEnabled(boolean aCrossToolEnabled)
aCrossToolEnabled
- boolean - enabled?public boolean isSnipToolEnabled()
public void setSnipToolEnabled(boolean aSnipToolEnabled)
aSnipToolEnabled
- boolean - enabled?public boolean isChromosomeToolEnabled()
public void setChromosomeToolEnabled(boolean aChromosomeToolEnabled)
aChromosomeToolEnabled
- boolean - enabled?public void setCrossOverPossibility(int p)
public boolean isCrossOverEnabled()
public void setCrossOverEnabled(boolean aCrossOverEnabled)
aCrossOverEnabled
- boolean - enabled?public boolean isCrossOverVisible()
public void setCrossOverVisible(boolean aCrossOverVisible)
aCrossOverEnabled
- boolean - visible?public boolean isCrossOverTurnOn()
public void setCrossOverTurnOn(boolean aBlnCrossOverTurnOn)
public void setTraitPulldownEnabled(boolean aTraitPulldownEnabled)
aTraitPulldownEnabled
- boolean - enabled?public boolean isOffspringModePulldownEnabled()
public void setOffspringModePulldownEnabled(boolean anOffspringModePulldownEnabled)
anOffspringModePulldownEnabled
- boolean - enabled?public boolean isSelectionToolVisible()
public void setSelectionToolVisible(boolean aSelectionToolVisible)
aSelectionToolVisible
- boolean - visible?public boolean isCrossToolVisible()
public void setCrossToolVisible(boolean aCrossToolVisible)
aCrossToolVisible
- boolean - visible?public boolean isSnipToolVisible()
public void setSnipToolVisible(boolean aSnipToolVisible)
aSnipToolVisible
- boolean - visible?public boolean isChromosomeToolVisible()
public void setChromosomeToolVisible(boolean aChromosomeToolVisible)
aChromosomeToolVisible
- boolean - visible?public boolean isTraitPulldownVisible()
public void setTraitPulldownVisible(boolean aTraitPulldownVisible)
aTraitPulldownVisible
- boolean - visible?public boolean isOffspringModePulldownVisible()
public void setOffspringModePulldownVisible(boolean anOffspringModePulldownVisible)
anOffspringModePulldownVisible
- boolean - visible?public void setTrait(java.lang.String aTraitName)
aTraitName
- String - the name of the trait to draw, may be null to cause whole organisms to be drawnpublic java.lang.String getTrait()
public Species getSpecies()
public int getFixedNumberChildren()
public void setFixedNumberChildren(int aFixedNumberChildren)
aFixedNumberChildren
- int - fixed number of children from a breedingjava.lang.IllegalArgumentException
- - new maximum illegal, may be less than minimumpublic int getMaximumNumberChildren()
public void setMaximumNumberChildren(int aMaximumNumberChildren)
aMaximumNumberChildren
- int - maximum number of children from a breedingjava.lang.IllegalArgumentException
- - new maximum illegal, may be less than minimumpublic int getMinimumNumberChildren()
public void setMinimumNumberChildren(int aMinimumNumberChildren)
aMinimumNumberChildren
- int - minimum number of children from a breedingjava.lang.IllegalArgumentException
- - new minimum illegal, may be more than maximumpublic void setMinMaxNumberChildren(int aMinimumNumberChildren, int aMaximumNumberChildren)
aMinimumNumberChildren
- int - minimum number of children from a breedingaMaximumNumberChildren
- int - maximum number of children from a breedingjava.lang.IllegalArgumentException
- - new minimum illegal, may be more than maximumpublic int getNumberFemaleChildren()
public void setNumberFemaleChildren(int aNumberFemaleChildren)
aNumberFemaleChildren
- int - new number of female children, must be >= 0java.lang.IllegalArgumentException
- - new value illegalpublic int getNumberMaleChildren()
public void setNumberMaleChildren(int aNumberMaleChildren)
aNumberMaleChildren
- int - new number of male children, must be >= 0java.lang.IllegalArgumentException
- - new value illegalpublic void setNumberMaleFemaleChildren(int aNumberFemaleChildren, int aNumberMaleChildren)
aNumberFemaleChildren
- int - new number of female children, must be >= 0aNumberMaleChildren
- int - new number of male children, must be >= 0java.lang.IllegalArgumentException
- - new value illegalpublic void setBounds(int x, int y, int width, int height)
setBounds
in class java.awt.Component
x
- int - x of top left cornery
- int - y of top left cornerwidth
- int - widthheight
- int - heightpublic SelectionSet getSelectionSet()
public void setSelectionSet(SelectionSet aSelectionSet)
aSelectionSet
- SelectionSet - a new selection setpublic void setVisible(boolean isVisible)
setVisible
in class javax.swing.JComponent
public void updateSize()
public void updateControls()
public void paintComponent(java.awt.Graphics g)
paintComponent
in class javax.swing.JComponent
g
- Graphics - the given graphics to use in drawingpublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void itemStateChanged(java.awt.event.ItemEvent event)
itemStateChanged
in interface java.awt.event.ItemListener
event
- ItemEvent - change event to handlepublic void componentHidden(java.awt.event.ComponentEvent event)
componentHidden
in interface java.awt.event.ComponentListener
public void componentMoved(java.awt.event.ComponentEvent event)
componentMoved
in interface java.awt.event.ComponentListener
public void componentResized(java.awt.event.ComponentEvent event)
componentResized
in interface java.awt.event.ComponentListener
public void componentShown(java.awt.event.ComponentEvent event)
componentShown
in interface java.awt.event.ComponentListener
public void propertyChange(java.beans.PropertyChangeEvent event)
propertyChange
in interface java.beans.PropertyChangeListener
event
- PropertyChangeEvent - the property change eventpublic boolean isLockSymbolVisible()
public void setLockSymbolVisible(boolean aLockSymbolVisible)
aLockSymbolVisible
- boolean - visible?public boolean isCharacteristicsTextVisible()
public void setCharacteristicsTextVisible(boolean aCharacteristicsTextVisible)
aCharacteristicsTextVisible
- boolean - visible?public boolean isNameTextVisible()
public void setNameTextVisible(boolean aNameTextVisible)
aNameTextVisible
- boolean - visible?public boolean isSexTextVisible()
public void setSexTextVisible(boolean aSexTextVisible)
aSexTextVisible
- boolean - visible?public boolean isSpeciesTextVisible()
public void setSpeciesTextVisible(boolean aSpeciesTextVisible)
aSpeciesTextVisible
- boolean - visible?public int getOrganismImageSize()
public void setOrganismImageSize(int anOrganismImageSize)
anOrganismImageSize
- int - a new organism image sizejava.lang.IllegalArgumentException
- - illegal input valuepublic int getTextIndent()
public void setTextIndent(int aTextIndent)
aTextIndent
- int - a new text indentpublic int getTextLineSpacing()
public void setTextLineSpacing(int aTextLineSpacing)
aTextLineSpacing
- int - a new text line spacingpublic void focusGained(java.awt.event.FocusEvent event)
focusGained
in interface java.awt.event.FocusListener
event
- FocusEvent - focus gained eventpublic void focusLost(java.awt.event.FocusEvent event)
focusLost
in interface java.awt.event.FocusListener
event
- FocusEvent - focus lost eventpublic void processPendingTextEdits()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |