Getlayoutalignmentx(), Setlayoutalignmentx(float), Setscreendpi(double) – MiG InfoCom MiG Calendar JavaBeans User Manual
Page 183: Getlayoutalignmentx, Setlayoutalignmentx, Float, Setscreendpi, Getflowpages, Setflowpages
![background image](https://www.manualsdir.com/files/798675/content/doc183.png)
(continued from last page)
Property: The dots (pixels) per inch that the screen physically have. This value is used to caclulate how long a certain
distance (e.g. one inch) is on the screen. Since a few screens have higher DPI than 72 and Java has no standard way to get
this value you can set it here so that a page that is a certain width will get that width on the screen as well (when the zoom
is 100%).
Returns:
The current value. 96 is default.
setScreenDpi
public void setScreenDpi(double dpi)
Property: The dots (pixels) per inch that the screen physically have. This value is used to caclulate how long a certain
distance (e.g. one inch) is on the screen. Since a few screens have higher DPI than 72 and Java has no standard way to get
this value you can set it here so that a page that is a certain width will get that width on the screen as well (when the zoom
is 100%).
Parameters:
dpi
- The new value. 96 is default.
getFlowPages
public boolean getFlowPages()
Property: If set to
true
the pages will will flow like
java.awt.FlowLayout
and while maintaining the same aspect ratio
flow the pages from left to right and then top to bottom.
If
false
the layout manager will arrange the pages in the way that they look, so that the painted picture will be correct.
This will mean in a x by y grid.
Returns:
The current value.
setFlowPages
public void setFlowPages(boolean b)
Property: If set to
true
the pages will will flow like
java.awt.FlowLayout
and while maintaining the same aspect ratio
flow the pages from left to right and then top to bottom.
If
false
the layout manager will arrange the pages in the way that they look, so that the painted picture will be correct.
This will mean in a x by y grid.
Parameters:
b
- the new value.
setLayoutAlignmentX
public void setLayoutAlignmentX(float alignX)
Property: How to align the preview panels as a group if there are free space to distribute.
Parameters:
alignX
- The new alignment. 0.0 to 1.0.
getLayoutAlignmentX
public float getLayoutAlignmentX()
Property: How to align the preview panels as a group if there are free space to distribute.
Page 183 of 196
com.miginfocom.beans.PrintPreviewBean