DocumentPanel Class Reference

List of all members.

Public Member Functions

 DocumentPanel ()
int getDefaultHorizontalScreenPadding ()
int getDefaultVerticalScreenPadding ()
Dimension getPreferredSize ()
void setParentFrame (JFrame mainFrame)
void setParentScrollPane (JScrollPane scrollPane)

Static Public Attributes

static final int DROP_SHADOW_DISTANCE = 4
 Drop shadow for the (on screen) rendered paper.
static final Color SHADOW_COLOR = new Color(0, 0, 0, 99)
 Color of the paper's drop shadow.

Protected Member Functions

void paintComponent (Graphics g)

Package Attributes

final Pixels pixelsReferenceUnit = new Pixels()

Detailed Description

Renders the document in our interactive designer. It actually renders the Sheet to a JPEG, so we don't have to do interactive rendering (which sucks for complicated sheets).

This software is distributed under the BSD License.

Ron B Yeh (ronyeh(AT)

Definition at line 32 of file

Constructor & Destructor Documentation

DocumentPanel (  ) 


Definition at line 82 of file

Member Function Documentation

int getDefaultHorizontalScreenPadding (  ) 

Feb 26, 2006
Ron Yeh

Definition at line 105 of file

Referenced by DocumentPanel.getPreferredSize().

int getDefaultVerticalScreenPadding (  ) 

number of pixels to pad the document vertically. Feb 26, 2006
Ron Yeh

Definition at line 114 of file

Referenced by DocumentPanel.getPreferredSize().

Dimension getPreferredSize (  ) 

See also:

Definition at line 129 of file

References DocumentPanel.getDefaultHorizontalScreenPadding(), and DocumentPanel.getDefaultVerticalScreenPadding().

void paintComponent ( Graphics  g  )  [protected]

See also:
The approach we take is to draw all the background materials, and then let the Document paint itself. This enables the Document to be placed in a full screen window, or some other cool layout.

Definition at line 143 of file

References DocumentPanel.DROP_SHADOW_DISTANCE, and DocumentPanel.SHADOW_COLOR.

The documentation for this class was generated from the following file:
Generated on Sat Apr 14 18:21:44 2007 for R3 Paper Toolkit by  doxygen 1.4.7