 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.gui.map.renderer;
22 import java.awt.Point;
23 import java.awt.Rectangle;
24 import java.awt.event.MouseListener;
25 import java.awt.event.MouseMotionListener;
26 import java.awt.image.BufferedImage;
28 import java.io.IOException;
30 import org.jetbrains.annotations.NotNull;
void setLightVisible(boolean lightVisible)
If set, inverts the setting of net.sf.gridarta.model.mapviewsettings.MapViewSettings#isLightVisible()...
void addMouseMotionListener(@NotNull MouseMotionListener mouseMotionListener)
Adds a MouseMotionListener to be notified about mouse events.
Size2D getImageSize()
Returns the size of an image of the entire map view in pixels.
Base package of all Gridarta classes.
void scrollRectToVisible(@NotNull Rectangle aRect)
Ensures that a rectangular area is visible.
void addMouseListener(@NotNull MouseListener l)
void forceRepaint()
Repaint the view because some view parameters may have changed.
void removeMouseListener(@NotNull MouseListener l)
Rectangle getSquareBounds(@NotNull Point p)
Returns coordinates, length and width of map square.
BufferedImage getFullImage()
Returns an image of the entire map view.
Common interface for renderers of map control instances.
void removeMouseMotionListener(@NotNull MouseMotionListener mouseMotionListener)
Removes a MouseMotionListener to be notified about mouse events.
The class Size2D represents a 2d rectangular area.
void printFullImage(@NotNull File file)
Saves an image of the entire view to a file.
boolean getSquareLocationAt(@NotNull Point point, @NotNull Point retPoint)
Returns the map location at the given point.