|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JPanel jwo.landserf.gui.GraphicsArea
Panel for the displaying and graphical querying of spatial objects.
Nested Class Summary |
Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
static int |
BLEND
Blend surface and drape. |
static int |
BROADCAST_QUERY
Indicates broadcast query mode (listeners informed). |
static int |
CLEAR
No raster display. |
static int |
DIGIT_PAN
Indicates panning while in digitizing mode. |
static int |
DIGITIZE
Indicates digitizing mode. |
static int |
HUESAT
Hue-Saturation map. |
static int |
MULTISCALE_QUERY
Indicates multiscale query mode. |
static int |
NORMAL
Indicates normal display mode. |
static int |
PAN
Indicates panning display mode. |
static int |
PROFILE
Indicates cross-sectional profile mode. |
static int |
QUERY
Indicates query mode. |
static int |
RASTER
Interpolated k-colour raster. |
static int |
SHADED
Shaded relief blended with k-colour raster |
static int |
ZOOM
Indicates zooming display mode. |
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 | |
GraphicsArea()
Creates a stand-alone panel for displaying spatial models. |
|
GraphicsArea(GISFrame parent)
Creates a panel for displaying spatial models. |
Method Summary | |
void |
addRubberbandListener(RubberbandListener rbListener)
Adds a rubberband listener to the list of objects to be informed when a new rubberband is created. |
void |
addScaleQuery(JWDialogueListener listener,
int paramType)
Adds a link between graphics area and mouse for multi-scale raster query. |
boolean |
displayRast()
Displays the currently selected raster(s) according to the currently selected display type. |
Color |
getBoundaryColour()
Reports the colour to use for polygon boundaries. |
int |
getDisplayType()
Reports the currently selected raster display type. |
Footprint |
getGeoBounds()
Reports the georeferenced boundaries of the current viewing area. |
AffineTransform |
getGeoToPixel()
Reports the affine transformation required to convert georeferenced to pixel coordinates. |
Point2D |
getGeoToPixel(Point2D geo)
Transforms the given point from georeferenced to pixel coordinates. |
Image |
getImage()
Returns the current image associated with the graphics area. |
int |
getImageHeight()
Returns the current image height in pixels. |
int |
getImageWidth()
Returns the current image width in pixels. |
Color |
getLabelBackgroundColour()
Reports the colour to use for label backgrounds. |
Color |
getLabelForegroundColour()
Reports the colour to use for label foregrounds. |
float |
getLabelSize()
Reports the font size at which to display labels. |
float |
getLineWidth()
Reports the rendering line width (in pixels). |
AffineTransform |
getPixelToGeo()
Reports the affine transformation required to convert pixel to georeferenced coordinates. |
Point2D |
getPixelToGeo(Point2D pxl)
Transforms the given point from pixel to georeferenced coordinates. |
float |
getPointSize()
Reports the point symbol size (in pixels). |
int |
getRenderingStyle()
Reports the rendering style for vectors. |
Image |
getScaledImage()
Returns the scaled image associated with the graphics area. |
float |
getTransparency()
Reports the rendering transparency of polygon interiors. |
boolean |
isLineFixed()
Reports whether line width should be fixed as user zooms in/out. |
boolean |
isPointFixed()
Reports whether point symbol size should be fixed as user zooms in/out. |
boolean |
isShowLabels()
Reports whether point lables are to be shown or not. |
void |
keepOverlay(boolean isKept)
Determines if any overlay vectors remain on screen with successive repaints. |
void |
paintComponent(Graphics g)
Updates the graphics area with a representation of the currently selected spatial objects. |
void |
removeRubberbandListener(RubberbandListener rbListener)
Removes a given listener from the list of objects to be informed when a new rubberband is created. |
void |
removeScaleQuery(ScaleGraphBox scaleGraph)
Removes a given scale graph for reporting multi-scale variation. |
void |
setBoundaryColour(Color colour)
Sets the colour to use for polygon boundaries. |
void |
setBusy(boolean isBusy)
Indicates that some process has started or stopped. |
void |
setCursor(Cursor newCursor)
Changes the cursor associated with this graphics area. |
void |
setDisplayMode(int mode)
Sets the display mode (NORMAL, ZOOM, PAN, QUERY, BROADCAST_QUERY or MULTISCALE_QUERY). |
void |
setDisplayType(int displayType)
Sets the raster display type. |
void |
setDisplayVect(boolean display)
Determines whether the currently selected vectors are displayed or not. |
void |
setLabelBackgroundColour(Color labelBgColour)
Sets the colour to use for label backgrounds. |
void |
setLabelForegroundColour(Color labelFgColour)
Sets the colour to use for label foregrounds. |
void |
setLabelSize(float size)
Sets the font size at which to display labels. |
void |
setLineFixed(boolean fixed)
Sets whether line width should be fixed as user zooms in/out. |
void |
setLineWidth(float width)
Sets the rendering line width (in pixels). |
void |
setPointFixed(boolean fixed)
Sets whether point symbol size should be fixed as user zooms in/out. |
void |
setPointSize(float pointSize)
Sets the point symbol size (in pixels). |
void |
setRaster1(RasterMap raster)
Makes the given raster surface the primary one to display. |
void |
setRaster2(RasterMap raster)
Makes the given raster surface the secondary one to display. |
void |
setRenderingStyle(int style)
Sets the rendering style for vectors. |
void |
setRubberbandType(int bandType)
Sets the type of rubberband feature to be displayed. |
void |
setTransparency(float transparency)
Sets the rendering transparency of polygon interiors. |
void |
setVectorMap1(VectorMap vectorMap)
Makes the given vector map the primary one to display. |
void |
setVectorMap2(VectorMap vectorMap)
Makes the given vector map the secondary one to display. |
void |
setVectorOverlay(VectorMap overlay)
Displays the given vector map as an overlay. |
void |
showFullImage()
Resets the zoom/panning display to show full image. |
void |
showLabels(boolean show)
Determines whether point lables are to be shown or not. |
void |
startProfileQuery(JWDialogueListener listener)
Creates a profile query box to display surface or vector profiles. |
void |
stopProfileQuery()
Stops querying surface profiles. |
boolean |
usesRaster1()
Reports whether primaray raster is being used in the current display. |
boolean |
usesRaster2()
Reports whether secondary raster is being used in the current display. |
boolean |
usesVector()
Reports whether vector is being used in the current display. |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int CLEAR
public static final int RASTER
public static final int SHADED
public static final int BLEND
public static final int HUESAT
public static final int NORMAL
public static final int ZOOM
public static final int PAN
public static final int QUERY
public static final int MULTISCALE_QUERY
public static final int PROFILE
public static final int BROADCAST_QUERY
public static final int DIGITIZE
public static final int DIGIT_PAN
Constructor Detail |
public GraphicsArea()
public GraphicsArea(GISFrame parent)
parent
- Containing window with status and progress output.Method Detail |
public boolean displayRast()
public void setVectorOverlay(VectorMap overlay)
overlay
- Vector map to overlay on display.public void keepOverlay(boolean isKept)
isKept
- Vector overlay will remain on screen if true.public void setRaster1(RasterMap raster)
raster
- New primary raster to be displayed.public void setRaster2(RasterMap raster)
raster
- New secondary raster to be displayed.public void setVectorMap1(VectorMap vectorMap)
vectorMap
- New vector map to be displayed.public void setVectorMap2(VectorMap vectorMap)
vectorMap
- New vector map to be displayed.public void setDisplayVect(boolean display)
display
- True if vector is to be displayed.public void showFullImage()
public void paintComponent(Graphics g)
g
- Graphics context in which to draw.public Footprint getGeoBounds()
public void addRubberbandListener(RubberbandListener rbListener)
rbListener
- Object listening out for a rubberband event.public void removeRubberbandListener(RubberbandListener rbListener)
rbListener
- Object to be removed from listeners.public void setRubberbandType(int bandType)
bandType
- Type of rubberband to display. Can be JWRubberband.BOX or
JWRubberband.LINE.JWRubberband
public void addScaleQuery(JWDialogueListener listener, int paramType)
listener
- Listens for a close in the scale query box and informs the GUI.paramType
- Parameter type to calculate on query.public void removeScaleQuery(ScaleGraphBox scaleGraph)
scaleGraph
- Scale graph to remove.public void startProfileQuery(JWDialogueListener listener)
listener
- Listens for a close in the profile query box and informs the GUI.public void stopProfileQuery()
public AffineTransform getGeoToPixel()
public int getDisplayType()
public boolean usesRaster1()
public boolean usesRaster2()
public boolean usesVector()
public Point2D getGeoToPixel(Point2D geo)
geo
- Georeferenced coordinate pair to transform.
public AffineTransform getPixelToGeo()
public Point2D getPixelToGeo(Point2D pxl)
pxl
- Pixel coordinate pair to transform.
public Image getImage()
public Image getScaledImage()
public int getImageWidth()
public int getImageHeight()
public float getPointSize()
public boolean isPointFixed()
public float getLineWidth()
public boolean isLineFixed()
public float getTransparency()
public Color getBoundaryColour()
public int getRenderingStyle()
public Color getLabelBackgroundColour()
public Color getLabelForegroundColour()
public boolean isShowLabels()
public float getLabelSize()
public void setDisplayType(int displayType)
displayType
- Raster display type.public void setDisplayMode(int mode)
mode
- Display mode to use.public void setBusy(boolean isBusy)
isBusy
- Busy if true.public void setCursor(Cursor newCursor)
newCursor
- New cursor to use.public void setPointSize(float pointSize)
pointSize
- Point size in pixels. Need not be a whole number.public void setPointFixed(boolean fixed)
fixed
- True if fixed size is to be used.public void setLineWidth(float width)
width
- Line width in pixels. Need not be a whole number.public void setLineFixed(boolean fixed)
fixed
- True if fixed size is to be used.public void setTransparency(float transparency)
transparency
- Polygon interior transparancy (0-1).public void setBoundaryColour(Color colour)
colour
- Polygon boundary colour, or null if vector attribute
used to determine colour.public void setRenderingStyle(int style)
style
- Rendering style for vector. Either SPEED or QUALITY.public void setLabelBackgroundColour(Color labelBgColour)
labelBgColour
- Label background colour.public void setLabelForegroundColour(Color labelFgColour)
labelFgColour
- Label foreground colour.public void showLabels(boolean show)
show
- Point labels are shown if true.public void setLabelSize(float size)
size
- Label font size (in point units).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |