Side of Software
Print Preview Library 1.8.1

sos.preview
Interface Scaleable

All Known Implementing Classes:
JPrintPreviewPage

public interface Scaleable

An object that has preferences as to how it should be scaled. Typically, an object that implements this interface is made up of a scaleable portion and a non-scaleable, or fixed, portion. Scaling the entire object will not produce a correctly scaled object because the fixed portion will not scale. Thus, there are methods to return the preferred size of the scaleable portion and the fixed size of the non-scaleable portion.

Since:
1.0

Method Summary
 double getFixedHeight()
          Returns the height of the fixed portion of this object.
 double getFixedWidth()
          Returns the width of the fixed portion of this object.
 java.awt.Dimension getScaleablePreferredSize()
          Returns the preferred size of the scaleable portion of this object.
 

Method Detail

getScaleablePreferredSize

public java.awt.Dimension getScaleablePreferredSize()
Returns the preferred size of the scaleable portion of this object.

Returns:
the preferred size of the scaleable portion of this object

getFixedWidth

public double getFixedWidth()
Returns the width of the fixed portion of this object.

Returns:
the width of the portion that does not scale

getFixedHeight

public double getFixedHeight()
Returns the height of the fixed portion of this object.

Returns:
the height of the portion that does not scale

Side of Software
Print Preview Library 1.8.1

Copyright 2003-07 Side of Software (SOS). All rights reserved.