net.sf.jomic.tools
Class ImageRenderSettings

java.lang.Object
  extended by java.util.Dictionary
      extended by java.util.Hashtable
          extended by java.util.Properties
              extended by net.sf.jomic.tools.BasicSettings
                  extended by net.sf.jomic.tools.ImageRenderSettings
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map
Direct Known Subclasses:
ComicSheetRenderSettings

public class ImageRenderSettings
extends BasicSettings

Settings to specify how to render an image depending on user preferences and window size.

Author:
Thomas Aglassinger
See Also:
Serialized Form

Field Summary
static java.lang.String DEFAULT_FILL_COLOR
           
static int DEFAULT_ROTATION
           
static java.lang.String DEFAULT_SCALE_MODE
           
static java.lang.String FILL_COLOR
          Color to use when filling the border in case two pages do not have a similar aspect ratio (specified using the HTML-like "#rrggbb" format).
static int MAX_ROTATION
           
static int MIN_ROTATION
           
static java.lang.String ROTATION
           
static java.lang.String SCALE_MODE
           
static java.lang.String SELECTION_COLOR
          Color use when selection an image or a part of it.
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
ImageRenderSettings()
           
 
Method Summary
 java.awt.Color getFillColor()
           
 int getRotation()
          Get the current rotation.
 java.lang.String getScaleMode()
           
 java.awt.Color getSelectionColor()
           
 void rotateLeft()
           
 void rotateRight()
           
 void setFillColor(java.awt.Color newColor)
           
 void setRotation(int newRotation)
           
 void setScaleMode(java.lang.String mode)
           
 void setSelectionColor(java.awt.Color newColor)
           
 
Methods inherited from class net.sf.jomic.tools.BasicSettings
addPropertyChangeListener, addPropertyChangeListener, applyComponentAreaProperty, clear, firePropertyChangeEvent, getBooleanProperty, getChoiceProperty, getColorProperty, getFileProperty, getIntProperty, getLimitedIntProperty, getProperty, getProperty, getSystemPropertyName, isValidPropertyName, remove, removePropertyChangeListener, removePropertyChangeListener, setBooleanProperty, setChoiceProperty, setColorProperty, setComponentAreaProperty, setDefault, setDefault, setDefault, setFileProperty, setIntProperty, setLimitedIntProperty, setProperty, setSystemPropertyPrefix
 
Methods inherited from class java.util.Properties
list, list, load, load, loadFromXML, propertyNames, save, store, store, storeToXML, storeToXML, stringPropertyNames
 
Methods inherited from class java.util.Hashtable
clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_FILL_COLOR

public static final java.lang.String DEFAULT_FILL_COLOR
See Also:
Constant Field Values

DEFAULT_ROTATION

public static final int DEFAULT_ROTATION
See Also:
Constant Field Values

DEFAULT_SCALE_MODE

public static final java.lang.String DEFAULT_SCALE_MODE
See Also:
Constant Field Values

FILL_COLOR

public static final java.lang.String FILL_COLOR
Color to use when filling the border in case two pages do not have a similar aspect ratio (specified using the HTML-like "#rrggbb" format).

See Also:
Constant Field Values

MAX_ROTATION

public static final int MAX_ROTATION
See Also:
Constant Field Values

MIN_ROTATION

public static final int MIN_ROTATION
See Also:
Constant Field Values

ROTATION

public static final java.lang.String ROTATION
See Also:
Constant Field Values

SCALE_MODE

public static final java.lang.String SCALE_MODE
See Also:
Constant Field Values

SELECTION_COLOR

public static final java.lang.String SELECTION_COLOR
Color use when selection an image or a part of it.

See Also:
Constant Field Values
Constructor Detail

ImageRenderSettings

public ImageRenderSettings()
Method Detail

setFillColor

public void setFillColor(java.awt.Color newColor)

setRotation

public void setRotation(int newRotation)

setScaleMode

public void setScaleMode(java.lang.String mode)

setSelectionColor

public void setSelectionColor(java.awt.Color newColor)

getFillColor

public java.awt.Color getFillColor()

getRotation

public int getRotation()
Get the current rotation.

Returns:
one of ImageTools.ROTATE_*
See Also:
ImageTools.ROTATE_NONE, ImageTools.ROTATE_CLOCKWISE, ImageTools.ROTATE_COUNTERCLOCKWISE, ImageTools.ROTATE_UPSIDE_DOWN

getScaleMode

public java.lang.String getScaleMode()

getSelectionColor

public java.awt.Color getSelectionColor()

rotateLeft

public void rotateLeft()

rotateRight

public void rotateRight()