|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.klg.jclass.page.PageArea
|
+--com.klg.jclass.page.JCPage
JCPage describes a page in a JCDocument.
| Field Summary | |
protected boolean |
firstTemplate
Indicates if a template page is marked to be used as the first page. |
protected List |
flowFrameList
List of frames on the page (in order) belonging to the document's flow. |
protected com.klg.jclass.page.JCPage |
flowPageTemplate
Page template from which to generate the next page (flowing). |
protected com.klg.jclass.page.JCPage |
flowSectionTemplate
Next page's template on a section break. |
protected int |
orientation
Indicates the orientation of the page -- automatic, portrait or landscape. |
static int |
ORIENTATION_AUTOMATIC
The orientation of this JCPage is to be determined by its dimensions. |
static int |
ORIENTATION_LANDSCAPE
The orientation of this JCPage is landscape. |
static int |
ORIENTATION_PORTRAIT
The orientation of this JCPage is portrait. |
static int |
PAGE_TYPE_DELETED
A JCPage left as a marker in place of a deleted (flushed) page. |
static int |
PAGE_TYPE_DOCUMENT
A JCPage which is a normal page in a JCDocument. |
static int |
PAGE_TYPE_TEAR_OFF
A JCPage which appears in a document, but is not numbered or counted. |
static int |
PAGE_TYPE_TEMPLATE
A JCPage used as a template page (not counted or printed). |
protected int |
pageNumber
User-controllable page numbering (not an absolute number). |
protected int |
pageType
Distinguishes template and document pages. |
protected String |
templateName
Name of the template this page was copied from. |
| Fields inherited from class com.klg.jclass.page.PageArea |
background, color, document, frameList, layoutStatus, location, name, size |
| Constructor Summary | |
JCPage()
Creates a blank page with unspecified size and no contents. |
|
JCPage(com.klg.jclass.page.JCDocument doc)
Creates a blank page in a given document with unspecified size and no contents. |
|
JCPage(String name)
Creates a named page with unspecified size and no contents. |
|
JCPage(String name,
com.klg.jclass.page.JCDocument doc)
Creates in a document a named page with unspecified size and no contents. |
|
JCPage(String name,
com.klg.jclass.page.JCDocument doc,
com.klg.jclass.page.JCPage template_page)
Creates a page with the given name and contents copied from a template, and makes the new page owned by the given document. |
|
JCPage(String name,
com.klg.jclass.page.JCDocument doc,
JCUnit.Point location,
JCUnit.Dimension size)
Creates in a document a named page with the given size and media offset. |
|
JCPage(String name,
com.klg.jclass.page.JCPage template_page)
Creates a page with the given name and contents copied from a template. |
|
JCPage(String name,
JCUnit.Point location,
JCUnit.Dimension size)
Creates a named page with the given size and media offset. |
|
| Method Summary | |
void |
delete()
Deletes the contents of the page, leaving a minimal page object. |
void |
draw(Graphics2D gc)
Draws the page. |
List |
getFlowFrameList()
Gets the list of flow frames on this page. |
com.klg.jclass.page.JCPage |
getFlowPageTemplate()
Gets the name of the page template from which the next page is to be cloned. |
com.klg.jclass.page.JCPage |
getFlowSectionTemplate()
Gets the page template from which a new page is to be cloned. |
int |
getOrientation()
Internal use only. |
int |
getPageNumber()
Gets the number which is to be used to evaluate the pagenumber macro. |
Rectangle2D |
getPageSize()
Gets the page's size and position and returns the information in the form of a rectangle. |
int |
getPageType()
Gets the page type. |
protected String |
getTemplateName()
Gets the name of the page template from which this page was cloned. |
boolean |
isFirstTemplate()
Finds out if this page template is the first one or not. |
void |
setFirstTemplate(boolean is_first)
Specifies if this page template is to be used for the first flow page. |
void |
setFlowFrameList(List flow)
Sets the frame flow list. |
void |
setFlowPageTemplate(com.klg.jclass.page.JCPage template)
Sets the page template from which the next page is to be cloned. |
void |
setFlowSectionTemplate(com.klg.jclass.page.JCPage template)
Sets the page template from which a new page is to be cloned if the page is terminated with a flow section break. |
protected void |
setOrientation(int orient)
Internal use only. |
void |
setPageNumber(int page_number)
Sets the number which is to be used to evaluate the pagenumber macro. |
void |
setPageType(int page_type)
Sets the page type. |
protected void |
setTemplateName(String template_name)
Sets the name of the page template from which this page was cloned. |
| Methods inherited from class com.klg.jclass.page.PageArea |
calcLayoutStatus, drawEvalWatermark, getBackground, getColor, getDocument, getFrameList, getLayoutStatus, getLocation, getName, getSize, setColor, setDocument, setFrameList, setLayoutStatus, setLocation, setName, setSize, stringToFrame, updateLayoutStatus |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int pageNumber
protected List flowFrameList
protected com.klg.jclass.page.JCPage flowPageTemplate
protected com.klg.jclass.page.JCPage flowSectionTemplate
protected int pageType
protected String templateName
protected boolean firstTemplate
protected int orientation
public static final int PAGE_TYPE_TEMPLATE
JCPage used as a template page (not counted or printed).
public static final int PAGE_TYPE_DOCUMENT
JCPage which is a normal page in a JCDocument.
public static final int PAGE_TYPE_TEAR_OFF
JCPage which appears in a document, but is not numbered or counted.
public static final int PAGE_TYPE_DELETED
JCPage left as a marker in place of a deleted (flushed) page.
public static final int ORIENTATION_AUTOMATIC
JCPage is to be determined by its dimensions.
public static final int ORIENTATION_PORTRAIT
JCPage is portrait.
public static final int ORIENTATION_LANDSCAPE
JCPage is landscape.
| Constructor Detail |
public JCPage()
public JCPage(com.klg.jclass.page.JCDocument doc)
doc - the document to which this page belongspublic JCPage(String name)
name - the name to assign to the page
public JCPage(String name,
com.klg.jclass.page.JCDocument doc)
name - the name to assign to the pagedoc - the document to which this page belongs
public JCPage(String name,
JCUnit.Point location,
JCUnit.Dimension size)
name - the name to assign to the pagelocation - the offset of the printable page relative to the mediasize - the dimensions of the page
public JCPage(String name,
com.klg.jclass.page.JCDocument doc,
JCUnit.Point location,
JCUnit.Dimension size)
name - the name to assign to the pagedoc - the document to which this page belongslocation - the offset of the printable page relative to the mediasize - the dimensions of the page
public JCPage(String name,
com.klg.jclass.page.JCPage template_page)
name - the name to assign to the pagetemplate_page - a template page for initial page layout and contents
public JCPage(String name,
com.klg.jclass.page.JCDocument doc,
com.klg.jclass.page.JCPage template_page)
name - the name to assign to the pagedoc - the document which is to own this pagetemplate_page - a template page for initial page layout and contents| Method Detail |
public int getPageNumber()
public void setPageNumber(int page_number)
page_number - number which is to be used to label the pagepublic com.klg.jclass.page.JCPage getFlowPageTemplate()
public void setFlowPageTemplate(com.klg.jclass.page.JCPage template)
template - template pagepublic com.klg.jclass.page.JCPage getFlowSectionTemplate()
public void setFlowSectionTemplate(com.klg.jclass.page.JCPage template)
template - the template pagepublic List getFlowFrameList()
public void setFlowFrameList(List flow)
flow - the frames (appearing on this page) which are used by the flowpublic boolean isFirstTemplate()
true if this template page is marked to be used firstpublic void setFirstTemplate(boolean is_first)
is_first - true if this page will be the first template used in the flowprotected String getTemplateName()
protected void setTemplateName(String template_name)
template_name - the unique name of a template pagepublic int getOrientation()
AUTOMATIC (to be determined
by the page size), PORTRAIT, or LANDSCAPE.
protected void setOrientation(int orient)
AUTOMATIC (to be determined
by the page size), PORTRAIT, or LANDSCAPE.
orient - the orientation of this pagepublic int getPageType()
public void setPageType(int page_type)
JCPage.PAGE_TYPE_TEMPLATE
and JCPage.PAGE_TYPE_DOCUMENT.
page_type - indicates if this is a document or template pagepublic Rectangle2D getPageSize()
rectangle2D specifying the page offset and sizepublic void delete()
public void draw(Graphics2D gc)
draw in class PageAreagc - the graphics object into which we are printing
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||