JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.page
Interface Markup


public interface Markup

Denotes a Graphics object which permits the output of markup-style operations.


Method Summary
 void endCell()
          End a cell
 void endCell(boolean isHeaderCell)
          End a cell
 void endRow()
          End a row
 void endTable()
          End a table
 void hRule()
          Draw a simple horizontal rule
 void hRule(double percent)
          Draw a horizontal rule
 void hRule(double percent, String hAlignment, int thickness)
          Draw a horizontal rule
 void hRule(int pointsWidth)
          Draw a horizontal rule
 void hRule(int pointsWidth, String hAlignment, int thickness)
          Draw a horizontal rule
 void newLine()
          Mark an advance to the next line
 void newParagraph()
          Mark an advance to a new paragraph
 void newParagraph(String hAlignment)
          Mark an advance to a new paragraph
 void newSection(String hAlignment)
          Begin a section (HTML "division") of the body
 boolean outputImage(Image image, int width, int height, Color bgcolor, ImageObserver observer, String horizontal, String vertical)
          Add an image to the output
 void startCell()
          Start a table cell
 void startCell(int rows, int columns)
          Start a spanned cell of the table
 void startCell(String hAlignment, boolean isHeaderCell)
          Start a table cell
 void startCell(String hAlignment, boolean isHeaderCell, int rows, int columns)
          Span a cell of the table
 void startRow()
          Start a new table row
 void startTable(int columns)
          Start a table in the output
 

Method Detail

startTable

public void startTable(int columns)
Start a table in the output

Parameters:
columns - Number of columns in the table

startRow

public void startRow()
Start a new table row


startCell

public void startCell()
Start a table cell


startCell

public void startCell(String hAlignment,
                      boolean isHeaderCell)
Start a table cell


startCell

public void startCell(int rows,
                      int columns)
Start a spanned cell of the table

Parameters:
rows - the number of rows the span overlays
columns - the number of columns overlain by the spanned cell

startCell

public void startCell(String hAlignment,
                      boolean isHeaderCell,
                      int rows,
                      int columns)
Span a cell of the table

Parameters:
rows - the number of rows the span overlays
columns - the number of columns overlain by the spanned cell

endCell

public void endCell()
End a cell


endCell

public void endCell(boolean isHeaderCell)
End a cell


endRow

public void endRow()
End a row


endTable

public void endTable()
End a table


newLine

public void newLine()
Mark an advance to the next line


newParagraph

public void newParagraph()
Mark an advance to a new paragraph


newParagraph

public void newParagraph(String hAlignment)
Mark an advance to a new paragraph

Parameters:
hAlignment - Horizontal alignment (left | center | right) to the margins

newSection

public void newSection(String hAlignment)
Begin a section (HTML "division") of the body

Parameters:
hAlignment - Horizontal alignment of the content of this section

hRule

public void hRule()
Draw a simple horizontal rule


hRule

public void hRule(double percent)
Draw a horizontal rule

Parameters:
percent - The percentage width of the document to span with the rule

hRule

public void hRule(double percent,
                  String hAlignment,
                  int thickness)
Draw a horizontal rule

Parameters:
percent - The percentage width of the document to span with the rule

hRule

public void hRule(int pointsWidth)
Draw a horizontal rule

Parameters:
pointsWidth - The width of the rule in points

hRule

public void hRule(int pointsWidth,
                  String hAlignment,
                  int thickness)
Draw a horizontal rule

Parameters:
pointsWidth - The width of the rule in points

outputImage

public boolean outputImage(Image image,
                           int width,
                           int height,
                           Color bgcolor,
                           ImageObserver observer,
                           String horizontal,
                           String vertical)
Add an image to the output

Parameters:
image - The image to paint
width - The width of the image in pixels
height - The height of the image in pixels
bgcolor - The background colour for the image
observer - An ImageObserver to monitor loading of the image
horizontal - The horizontal alignment of the image in the frame
vertical - The vertical alignment of the image in the line

Copyright © 2004 Quest Software Inc..
All rights reserved.