public interface Background
extends java.io.Serializable
paint
method, paint anything you want.Modifier and Type | Method and Description |
---|---|
java.awt.Dimension |
getBackgroundSize()
Given the background's size.
|
void |
paint(java.awt.Graphics g,
double zoom,
java.awt.Rectangle viewportRect)
The
Network uses a Background to paint network
map background. |
void paint(java.awt.Graphics g, double zoom, java.awt.Rectangle viewportRect)
Network
uses a Background
to paint network
map background. Network object call this method to paint background, input
the map graphics, zoom factor, and map scroll's viewpoint rectangle. We can
paint anything you want in this method.g
- network map graphics object.zoom
- current network map zooming factor.viewportRect
- current map scroll's viewpoint rectangle.java.awt.Dimension getBackgroundSize()
Copyright © 2002 - 2010 Serva Software. All Rights Reserved.