org.objectweb.fractal.gui.graph.model
Interface Display

All Known Implementing Classes:
BasicDisplay

public interface Display

A model for the display. A display is used to render components as graphs of boxes and lines (representing components and bindings).


Method Summary
 Rect getDisplayedArea()
          Returns the area of the component graph shown by this display.
 int getItfNameDisplayMode()
          Returns the displaying mode for the interfaces name of this display.
 int getMaxDepth()
          Returns the max depth at which the component graph is shown by this display.
 Rectangle getScreenSize()
          Returns the size of this display.
 boolean isAntialiasing()
          Returns true if this display is anti aliased.
 void setDisplayedArea(Rect displayedArea)
          Sets the area of the component graph shown by this display.
 void setIsAntialiasing(boolean isAntialiasing)
          Sets the anti aliasing option of this display.
 void setItfNameDisplayMode()
          Sets the displaying mode for the interfaces name of this display.
 void setMaxDepth(int maxDepth)
          Sets the max depth at which the component graph is shown by this display.
 void setScreenSize(Rectangle screenSize)
          Sets the size of this display.
 

Method Detail

getScreenSize

public Rectangle getScreenSize()
Returns the size of this display.

Returns:
the size of this display, in pixels.
See Also:
setScreenSize(java.awt.Rectangle)

setScreenSize

public void setScreenSize(Rectangle screenSize)
Sets the size of this display.

Parameters:
screenSize - the new size of this display, in pixels.
See Also:
getScreenSize()

getDisplayedArea

public Rect getDisplayedArea()
Returns the area of the component graph shown by this display. Indeed a display may show only a portion of a component graph, which may be changed by zooming or scrolling.

Returns:
the area of the component graph shown by this display. This area is specified in the following way: if sr is the screen size, and dr is the displayed area, then the configuration in drawn in the rectangle (sr.x+sr.w*dr.x0, sr.y+sr.h*dr.y0, sr.x+sr.w*dr.x1, sr.y+sr.h*dr.y1). So, if sr is equal to (0,0,1,1), the configuration is drawn in the full screen rectangle, if it is equal to (0.5,0,1,1) the configuration is drawn in the half right part of the screen rectangle, and so on.
See Also:
setDisplayedArea(org.objectweb.fractal.gui.graph.model.Rect)

setDisplayedArea

public void setDisplayedArea(Rect displayedArea)
Sets the area of the component graph shown by this display.

Parameters:
displayedArea - the new area of the component graph shown by this display.
See Also:
getDisplayedArea()

isAntialiasing

public boolean isAntialiasing()
Returns true if this display is anti aliased.

Returns:
true if this display is anti aliased.
See Also:
setIsAntialiasing(boolean)

setIsAntialiasing

public void setIsAntialiasing(boolean isAntialiasing)
Sets the anti aliasing option of this display.

Parameters:
isAntialiasing - the new anti aliasing option of this display.

getMaxDepth

public int getMaxDepth()
Returns the max depth at which the component graph is shown by this display.

Returns:
the max depth at which the component graph is shown by this display.
See Also:
setMaxDepth(int)

setMaxDepth

public void setMaxDepth(int maxDepth)
Sets the max depth at which the component graph is shown by this display.

Parameters:
maxDepth - the new max depth at which the component graph is shown by this display.
See Also:
getMaxDepth()

setItfNameDisplayMode

public void setItfNameDisplayMode()
Sets the displaying mode for the interfaces name of this display.


getItfNameDisplayMode

public int getItfNameDisplayMode()
Returns the displaying mode for the interfaces name of this display.