|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ViewI
An interface representing a View object which has defined extents eg a start and end base.
| Field Summary | |
|---|---|
static int |
LEFTSIDE
|
static int |
NONE
|
static int |
RIGHTSIDE
|
| Method Summary | |
|---|---|
void |
addViewListener(ViewListener vl)
Add a View event listener |
boolean |
areLimitsSet()
|
void |
clear()
|
java.awt.Rectangle |
getBounds()
Get the coordinates of the rectangle containing the View. |
int |
getCentre()
Get the maximum limit. |
javax.swing.JComponent |
getComponent()
Get the component the view belongs to. |
int[] |
getLimits()
Gets the minimum and maximum limits |
int |
getMaximum()
Get the maximum limit. |
int |
getMinimum()
Get the minimum limit. |
java.lang.String |
getName()
Returns the name of the view. |
java.awt.Rectangle |
getPreferredSize()
Get the preferred size for the view |
Transformer |
getTransform()
Get the tranform object to convert between View and component coordinates. |
int[] |
getVisibleRange()
Get the range on the linear axis that is visible |
boolean |
isInvalid()
Get a flag indicating whether the view is invalid |
boolean |
isTransparent()
|
boolean |
isVisible()
return whether or not a view is visible |
void |
paintView()
Paint the Drawable objects in the View. |
void |
setBounds(java.awt.Rectangle rect)
Set the coordinates of the rectangle containing the View. |
void |
setCentre(int centre)
Set the centre position. |
void |
setComponent(javax.swing.JComponent ap)
Set the component the view belongs to. |
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 |
void |
setName(java.lang.String name)
Sets the name of the view |
void |
setTransparent(boolean state)
|
void |
setVisible(boolean state)
Set whether or not a view is visible |
void |
setZoomFactor(double factor)
Set the ZoomFactor along the linear axis |
| Field Detail |
|---|
static final int RIGHTSIDE
static final int LEFTSIDE
static final int NONE
| Method Detail |
|---|
void setComponent(javax.swing.JComponent ap)
component - The component containing the View.javax.swing.JComponent getComponent()
void paintView()
void setInvalidity(boolean state)
boolean isInvalid()
java.awt.Rectangle getBounds()
Transformer getTransform()
void setBounds(java.awt.Rectangle rect)
rect - The rectangle describing the new bounds of the View in
parent component coordinates.java.awt.Rectangle getPreferredSize()
void setGraphics(java.awt.Graphics g)
g - The new graphics to draw to. This will usually be the Graphics for the
containing component (or for its offscreen buffer).java.lang.String getName()
void setName(java.lang.String name)
name - The name of the view.void addViewListener(ViewListener vl)
void setVisible(boolean state)
boolean isVisible()
void setLimits(int[] limits)
void setMinimum(int min)
void setMaximum(int max)
int[] getLimits()
int getMinimum()
int getMaximum()
void setCentre(int centre)
int getCentre()
void setZoomFactor(double factor)
int[] getVisibleRange()
boolean areLimitsSet()
void setLimitsSet(boolean state)
void setTransparent(boolean state)
boolean isTransparent()
void clear()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||