public class OutputDisplayImpl extends java.lang.Object implements OutputDisplay
| Constructor and Description |
|---|
OutputDisplayImpl(java.awt.Graphics2D g) |
| Modifier and Type | Method and Description |
|---|---|
void |
colorizeByClass(Area area,
java.lang.String cname)
Draws the colorized are bounds.
|
void |
colorizeByTags(Area area,
java.util.Set<Tag> s)
Draws the colorized are bounds.
|
void |
drawBox(Box box)
Draws the box contents on the page depending on the box type.
|
void |
drawExtent(Area area)
Draws the area bounds at the output display.
|
void |
drawExtent(Box box)
Draws the box bounds at the output display.
|
void |
drawPage(Page page)
Draws the complete page including all the boxes.
|
void |
drawRectangle(Rectangular rect,
java.awt.Color color)
Draws the given rectangle with the specified color.
|
java.awt.Graphics2D |
getGraphics() |
protected java.awt.Color |
stringColor(java.lang.String cname) |
public java.awt.Graphics2D getGraphics()
getGraphics in interface OutputDisplaypublic void drawPage(Page page)
OutputDisplaydrawPage in interface OutputDisplaypage - The page to draw.public void drawBox(Box box)
OutputDisplaydrawBox in interface OutputDisplaybox - The box do draw.public void drawExtent(Box box)
OutputDisplaydrawExtent in interface OutputDisplaybox - The box to be displayedpublic void drawExtent(Area area)
OutputDisplaydrawExtent in interface OutputDisplayarea - The area to be displayedpublic void drawRectangle(Rectangular rect, java.awt.Color color)
OutputDisplaydrawRectangle in interface OutputDisplayrect - the rectangle to be drawncolor - the drawing colorpublic void colorizeByTags(Area area, java.util.Set<Tag> s)
OutputDisplaycolorizeByTags in interface OutputDisplayarea - The area to be displayeds - A set of tags used for generating the area colorspublic void colorizeByClass(Area area, java.lang.String cname)
OutputDisplaycolorizeByClass in interface OutputDisplayarea - The area to be displayedcname - The class name used for generating the colors.protected java.awt.Color stringColor(java.lang.String cname)