public interface FigureViewManager
Details:
A FigureViewManager
is the client interface to settings and methods related to a logical figure or its view.
All GUI components implementing the InteractiveFigureView
interface must provide access to an implementation of this interface via InteractiveFigureView#getFigureViewManager()
.
Modifier and Type | Method and Description |
---|---|
DetailLevel |
getDetailLevel()
Returns current detail level.
|
Figure |
getFigure()
Returns figure in view.
|
FigureTransform |
getTransform()
Returns transform manager.
|
void |
paint(Graphics2D iG)
Renders figure.
|
void |
setDetailLevel(DetailLevel iDetailLevel)
Sets detail level.
|
void |
setFigure(Figure iFigure)
Sets figure in view.
|
Figure getFigure()
Details: This method returns the current figure displayed in the view.
void setFigure(Figure iFigure)
Details:
This method sets the figure that the view will display.
If you wish to display no figure at all, set the figure to null
.
iFigure
- the new figureDetailLevel getDetailLevel()
void setDetailLevel(DetailLevel iDetailLevel)
Details: This method updates the current detail level to the provided value. The view will redraw the figure if necessary.
iDetailLevel
- the new detail levelFigureTransform getTransform()
Details: This method returns the view's transform manager. The instance returned can be used to query or alter the view's transform.
void paint(Graphics2D iG)
Details: This method renders the current figure, using the current transform and current detail level, to the provided graphics context.
iG
- the graphics contextCopyright © 2013. All Rights Reserved.