Logo Search packages:      
Sourcecode: javamorph version File versions  Download package

int javamorph::CFrame::scaleMarkSize (  )  [inline]

Scale mark & cursor size simultan. (Regression.)

Returns:
Mark size to be draw by scaling decorator.

Definition at line 186 of file CFrame.java.

References getImageBounds(), and image.

Referenced by javamorph::CPolygonDecorator::paint(), and javamorph::CMeshDecorator::paint().

                              {
        /* Bounds = screen pixel size.*/
        /* Image = origin pixel size.*/
        return 
            CConfig.MARK_SIZE * 
            image.getWidth() /
            getImageBounds().width;
    }


Generated by  Doxygen 1.6.0   Back to index