|
Sweet Home 3D 4.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
com.eteks.sweethome3d.swing.HomePrintableComponent
public class HomePrintableComponent
A printable component used to print or preview the furniture, the plan and the 3D view of a home.
Nested Class Summary | |
---|---|
static class |
HomePrintableComponent.Variable
List of the variables that the user may insert in header and footer. |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.print.Printable |
---|
NO_SUCH_PAGE, PAGE_EXISTS |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
HomePrintableComponent(Home home,
HomeController controller,
Font defaultFont)
Creates a printable component that will print or display the furniture view, the plan view and 3D view of the home
managed by controller . |
Method Summary | |
---|---|
int |
getPage()
Returns the page currently painted by this component. |
int |
getPageCount()
Returns the page count of the home printed by this component. |
static PageFormat |
getPageFormat(HomePrint homePrint)
Returns a PageFormat object created from homePrint . |
Dimension |
getPreferredSize()
Returns the preferred size of this component according to paper orientation and size of home print attributes. |
protected void |
paintComponent(Graphics g)
Paints the current page. |
int |
print(Graphics g,
PageFormat pageFormat,
int page)
Prints a given page . |
void |
setPage(int page)
Sets the page currently painted by this component. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HomePrintableComponent(Home home, HomeController controller, Font defaultFont)
home
managed by controller
.
Method Detail |
---|
public int print(Graphics g, PageFormat pageFormat, int page) throws PrinterException
page
.
print
in interface Printable
PrinterException
public Dimension getPreferredSize()
getPreferredSize
in class JComponent
protected void paintComponent(Graphics g)
paintComponent
in class JComponent
public void setPage(int page)
public int getPage()
public int getPageCount()
public static PageFormat getPageFormat(HomePrint homePrint)
PageFormat
object created from homePrint
.
|
Sweet Home 3D 4.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
![]() |
© Copyrights 2006-2013 eTeks - All rights reserved
Distributed under GNU General Public License |