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:
Serializable, Cloneable, 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:
net.sf.jomic.tools.ImageView, Serialized Form

Field Summary
static String DEFAULT_FILL_COLOR
           
static int DEFAULT_ROTATION
           
static String DEFAULT_SCALE_MODE
           
static 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 String ROTATION
           
static String SCALE_MODE
           
static 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
 Color getFillColor()
           
 int getRotation()
          Get the current rotation.
 String getScaleMode()
           
 Color getSelectionColor()
           
 void rotateLeft()
           
 void rotateRight()
           
 void setFillColor(Color newColor)
           
 void setRotation(int newRotation)
           
 void setScaleMode(String mode)
           
 void setSelectionColor(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, loadFromXML, propertyNames, save, store, storeToXML, storeToXML
 
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 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 String DEFAULT_SCALE_MODE
See Also:
Constant Field Values

FILL_COLOR

public static final 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

ROTATION

public static final String ROTATION
See Also:
Constant Field Values

SCALE_MODE

public static final String SCALE_MODE
See Also:
Constant Field Values

SELECTION_COLOR

public static final 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(Color newColor)

setRotation

public void setRotation(int newRotation)

setScaleMode

public void setScaleMode(String mode)

setSelectionColor

public void setSelectionColor(Color newColor)

getFillColor

public 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 String getScaleMode()

getSelectionColor

public Color getSelectionColor()

rotateLeft

public void rotateLeft()

rotateRight

public void rotateRight()