public class PageViewSettings extends AbstractListenableRenderSettings
RenderSettings
pertaining and particular to the rendering within
PageView
s.Modifier and Type | Field and Description |
---|---|
static String |
DYNAMIC_ZOOM_MODE
A property key for the dynamic zoom mode.
|
static int |
START_OF_USER_ZOOM_MODES
User-specific zoom modes bay be allocated starting from this constant.
|
static int |
ZOOM_MODE_FIT_BOTH
Dynamically fit pages vertical and horizontal.
|
static int |
ZOOM_MODE_FIT_HEIGHT
Dynamically fit pages vertical.
|
static int |
ZOOM_MODE_FIT_WIDTH
Dynamically fit pages horizontal.
|
static int |
ZOOM_MODE_NONE
No dynamic zoom.
|
Constructor and Description |
---|
PageViewSettings() |
Modifier and Type | Method and Description |
---|---|
PageViewSettings |
createSnapshot()
Create a snapshot copy of this instance.
|
boolean |
equals(Object obj) |
void |
fitBoth()
Dynamically zoom pages so that they fit completely into the page view.
|
void |
fitHeight()
Dynamically zoom pages so that they fill the page view vertically.
|
void |
fitWidth()
Dynamically zoom pages so that they fill the page view horizontally.
|
int |
getDynamicZoomMode() |
int |
hashCode() |
void |
setDynamicZoomMode(int dynamicZoomMode) |
void |
update(String propertyName,
RenderSettings other,
Object... details)
Updates this instance property specified by given property name with the value provided by the
other processing setting.
|
fireChanged, getSettingsChangeHandler, setSettingsChangeHandler
public static final String DYNAMIC_ZOOM_MODE
public static final int ZOOM_MODE_NONE
setDynamicZoomMode(int)
,
Constant Field Valuespublic static final int ZOOM_MODE_FIT_WIDTH
setDynamicZoomMode(int)
,
Constant Field Valuespublic static final int ZOOM_MODE_FIT_HEIGHT
setDynamicZoomMode(int)
,
Constant Field Valuespublic static final int ZOOM_MODE_FIT_BOTH
setDynamicZoomMode(int)
,
Constant Field Valuespublic static final int START_OF_USER_ZOOM_MODES
public void update(String propertyName, RenderSettings other, Object... details)
RenderSettings
propertyName
- the name of the property to update. Update supported properties have unique
property identifier provided by the specific render settings implementation.other
- the processing setting which provide the new property value. Therefore the other
processing setting have to be of the same type as this instance.details
- (optional) if some describing details are necessary to do a specific update, the
details parameter will transport this informationspublic PageViewSettings createSnapshot()
ProcessingSettings
public int getDynamicZoomMode()
public void setDynamicZoomMode(int dynamicZoomMode)
public void fitWidth()
ZOOM_MODE_FIT_WIDTH
public void fitHeight()
ZOOM_MODE_FIT_HEIGHT
public void fitBoth()
ZOOM_MODE_FIT_BOTH
Copyright © 2024 levigo holding gmbh. All rights reserved.