|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectapollo.gui.genomemap.LinearView
apollo.gui.genomemap.ContainerView
public abstract class ContainerView
| Field Summary | |
|---|---|
protected Controller |
controller
|
protected java.util.Vector |
views
|
| Fields inherited from class apollo.gui.genomemap.LinearView |
|---|
apollo_panel, backgroundColour, debug, foregroundColour, graphics, limitsSet, logger, transformer, transparent, viewBounds, visibilityListeners, visible |
| Fields inherited from interface apollo.gui.genomemap.ViewI |
|---|
LEFTSIDE, NONE, RIGHTSIDE |
| Constructor Summary | |
|---|---|
ContainerView(javax.swing.JComponent ap,
java.lang.String name,
boolean visible)
|
|
| Method Summary | |
|---|---|
Selection |
findFeaturesForSelection(java.awt.Point p,
boolean selectParents)
Find features for selection. |
Selection |
findFeaturesForSelection(java.awt.Rectangle rect)
Same as above for rectangle, no selectParents needed |
ViewI |
getContainedViewAt(java.awt.Point p)
|
Controller |
getController()
Gets the Controller for the object |
java.lang.Object |
getControllerWindow()
Shouldnt this return Window - would we ever want a non-window? |
java.util.Vector |
getViews()
|
java.util.Vector |
getViewsOfClass(java.lang.Class c)
|
boolean |
needsAutoRemoval()
If getControllerWindow is non null, and needsAutoRemoval is true then Controller will automatically remove the ControlledObjectI as a listener when its ControllerWindow is closing. |
void |
paintView()
paintView draws a cross in the centre of the View and a small cross in the upper left quadrant |
void |
setCentre(int centre)
Set the centre position. |
void |
setComponent(javax.swing.JComponent ap)
Set the component the view belongs to. |
void |
setController(Controller c)
Sets the Controller for the object |
void |
setDrawBounds(java.awt.Rectangle rect)
|
void |
setGraphics(java.awt.Graphics g)
Set the Graphics to draw to. |
void |
setInvalidity(boolean state)
Set a flag indicating whether the view is currently invalid |
void |
setLimits(int[] limits)
Sets the minimum and maximum limits for the extent |
void |
setLimitsSet(boolean state)
|
void |
setMaximum(int max)
Sets the maximum limit for the extent |
void |
setMinimum(int min)
Sets the minimum limit for the extent |
abstract java.awt.Rectangle |
setScrollSpace(int where)
|
void |
setZoomFactor(double factor)
Set the ZoomFactor along the linear axis |
| Methods inherited from class apollo.gui.genomemap.LinearView |
|---|
addViewListener, addVisibilityListener, areLimitsSet, clear, fireViewEvent, getBackgroundColour, getBounds, getCentre, getComponent, getDrawBounds, getForegroundColour, getGraphics, getLimits, getMaximum, getMinimum, getName, getPreferredSize, getSelectionRectangle, getStrand, getTransform, getVisibleRange, init, isInvalid, isTransparent, isVisible, setBackgroundColour, setBounds, setDebug, setForegroundColour, setName, setStrand, setTransform, setTransparent, setVisible, setVisible |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface apollo.gui.genomemap.ViewI |
|---|
addViewListener, areLimitsSet, clear, getBounds, getCentre, getComponent, getLimits, getMaximum, getMinimum, getName, getPreferredSize, getTransform, getVisibleRange, isInvalid, isTransparent, isVisible, setBounds, setName, setTransparent, setVisible |
| Field Detail |
|---|
protected Controller controller
protected java.util.Vector views
| Constructor Detail |
|---|
public ContainerView(javax.swing.JComponent ap,
java.lang.String name,
boolean visible)
| Method Detail |
|---|
public void setController(Controller c)
ControlledObjectI
setController in interface ControlledObjectIpublic Controller getController()
ControlledObjectI
getController in interface ControlledObjectIpublic java.lang.Object getControllerWindow()
ControlledObjectI
getControllerWindow in interface ControlledObjectIpublic boolean needsAutoRemoval()
ControlledObjectI
needsAutoRemoval in interface ControlledObjectIpublic void paintView()
LinearView
paintView in interface ViewIpaintView in class LinearViewpublic java.util.Vector getViews()
getViews in interface ContainerViewIpublic java.util.Vector getViewsOfClass(java.lang.Class c)
getViewsOfClass in interface ContainerViewIpublic ViewI getContainedViewAt(java.awt.Point p)
getContainedViewAt in interface ContainerViewIpublic void setInvalidity(boolean state)
ViewI
setInvalidity in interface ViewIsetInvalidity in class LinearViewpublic void setLimits(int[] limits)
ViewI
setLimits in interface ViewIsetLimits in class LinearViewpublic void setMinimum(int min)
ViewI
setMinimum in interface ViewIsetMinimum in class LinearViewpublic void setMaximum(int max)
ViewI
setMaximum in interface ViewIsetMaximum in class LinearViewpublic void setDrawBounds(java.awt.Rectangle rect)
setDrawBounds in class LinearViewpublic abstract java.awt.Rectangle setScrollSpace(int where)
public void setGraphics(java.awt.Graphics g)
ViewI
setGraphics in interface ViewIsetGraphics in class LinearViewg - The new graphics to draw to. This will usually be the Graphics for the
containing component (or for its offscreen buffer).public void setComponent(javax.swing.JComponent ap)
ViewI
setComponent in interface ViewIsetComponent in class LinearViewpublic void setCentre(int centre)
ViewI
setCentre in interface ViewIsetCentre in class LinearViewpublic void setZoomFactor(double factor)
ViewI
setZoomFactor in interface ViewIsetZoomFactor in class LinearViewpublic void setLimitsSet(boolean state)
setLimitsSet in interface ViewIsetLimitsSet in class LinearView
public Selection findFeaturesForSelection(java.awt.Point p,
boolean selectParents)
PickViewI
findFeaturesForSelection in interface PickViewIpublic Selection findFeaturesForSelection(java.awt.Rectangle rect)
PickViewI
findFeaturesForSelection in interface PickViewI
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||