com.levigo.jadice.swing.pageview
Class PageViewSettings

java.lang.Object
  extended by com.levigo.jadice.document.render.AbstractListenableRenderSettings
      extended by com.levigo.jadice.swing.pageview.PageViewSettings
All Implemented Interfaces:
ProcessingSettings, RenderSettings, Serializable

public class PageViewSettings
extends AbstractListenableRenderSettings

An implementation RenderSettings pertaining and particular to the rendering within PageViews.

See Also:
Serialized Form

Field Summary
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 Summary
PageViewSettings()
           
 
Method Summary
 ProcessingSettings createSnapshot()
          Create a snapshot of the current ProcessingSettings.
 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.
 
Methods inherited from class com.levigo.jadice.document.render.AbstractListenableRenderSettings
fireChanged, getSettingsChangeHandler, setSettingsChangeHandler
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DYNAMIC_ZOOM_MODE

public static final String DYNAMIC_ZOOM_MODE
A property key for the dynamic zoom mode.

See Also:
setDynamicZoomMode(int), getDynamicZoomMode(), Constant Field Values

ZOOM_MODE_NONE

public static final int ZOOM_MODE_NONE
No dynamic zoom.

See Also:
setDynamicZoomMode(int), Constant Field Values

ZOOM_MODE_FIT_WIDTH

public static final int ZOOM_MODE_FIT_WIDTH
Dynamically fit pages horizontal.

See Also:
setDynamicZoomMode(int), Constant Field Values

ZOOM_MODE_FIT_HEIGHT

public static final int ZOOM_MODE_FIT_HEIGHT
Dynamically fit pages vertical.

See Also:
setDynamicZoomMode(int), Constant Field Values

ZOOM_MODE_FIT_BOTH

public static final int ZOOM_MODE_FIT_BOTH
Dynamically fit pages vertical and horizontal.

See Also:
setDynamicZoomMode(int), Constant Field Values

START_OF_USER_ZOOM_MODES

public static final int START_OF_USER_ZOOM_MODES
User-specific zoom modes bay be allocated starting from this constant.

See Also:
Constant Field Values
Constructor Detail

PageViewSettings

public PageViewSettings()
Method Detail

update

public void update(String propertyName,
                   RenderSettings other,
                   Object... details)
Description copied from interface: RenderSettings
Updates this instance property specified by given property name with the value provided by the other processing setting. For each update-supported property the render settings type have to provide a unique property name.

Parameters:
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 informations

createSnapshot

public ProcessingSettings createSnapshot()
Description copied from interface: ProcessingSettings
Create a snapshot of the current ProcessingSettings. The snapshot must constitute a deep copy, so that changes to the copied object don't affect snapshots.

Returns:
a snapshot copy.

getDynamicZoomMode

public int getDynamicZoomMode()

setDynamicZoomMode

public void setDynamicZoomMode(int dynamicZoomMode)

fitWidth

public void fitWidth()
Dynamically zoom pages so that they fill the page view horizontally.

See Also:
ZOOM_MODE_FIT_WIDTH

fitHeight

public void fitHeight()
Dynamically zoom pages so that they fill the page view vertically.

See Also:
ZOOM_MODE_FIT_HEIGHT

fitBoth

public void fitBoth()
Dynamically zoom pages so that they fit completely into the page view.

See Also:
ZOOM_MODE_FIT_BOTH

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2017 levigo holding gmbh. All rights reserved.