Uses of Class
ch.sahits.game.graphic.image.ImageScaleState
-
Packages that use ImageScaleState Package Description ch.sahits.game.graphic.image ch.sahits.game.graphic.image.impl This package contains implementation classes of interfaces defined inch.sahits.game.openpatrician.display.gameplay.impl ch.sahits.game.graphic.display.gameplay.internalch.sahits.game.openpatrician.display.javafx -
-
Uses of ImageScaleState in ch.sahits.game.graphic.image
Methods in ch.sahits.game.graphic.image with parameters of type ImageScaleState Modifier and Type Method Description (package private) ScalingImageUtil. computeScaleFactorCropLimited(ImageScaleState state, EScaling scaling)Compute the scale factor so the image can be displayed withintargetDim.private javafx.geometry.Rectangle2DImageUtil. createViewPort(ImageScaleState scaleState, javafx.scene.image.Image image, double targetHeight, double targetWidth)Calculate the viewport which is defined by the cropping.javafx.scene.image.ImageViewIImageUtilities. cropAndScale(java.lang.String imageName, ImageScaleState scaleState)Apply proper scaling to the image as defined in the state.javafx.scene.image.ImageViewImageUtil. cropAndScale(java.lang.String imageName, ImageScaleState scaleState)private doubleImageUtil. getScaledMaxCrop(ImageScaleState scaleState)Maximum cropping with considered scaling factor.private doubleImageUtil. getTargetHeight(ImageScaleState scaleState)Retrieve the target height of the imageprivate doubleImageUtil. getTargetWidth(ImageScaleState scaleState)Retrieve the target width of the imageImageDataIPolygonScaling. recalculatePolygons(ImageData imgData, ImageScaleState state)Compute the location and dimensions of the NamedPolygons that are contained inimgDatabased on the scaling state. -
Uses of ImageScaleState in ch.sahits.game.graphic.image.impl
Methods in ch.sahits.game.graphic.image.impl with parameters of type ImageScaleState Modifier and Type Method Description (package private) ImageDataPolygonScaling. recalculatePolygonCrop(ImageData imgData, ImageScaleState state)Compute the polygon affected by the cropping of the image as stated in stateImageDataPolygonScaling. recalculatePolygons(ImageData imgData, ImageScaleState state)(package private) ImageDataPolygonScaling. recalculatePolygonScale(ImageData imgData, ImageScaleState state)Compute the polygon affected by the scaling of the image as stated in state -
Uses of ImageScaleState in ch.sahits.game.openpatrician.display.gameplay.impl
Methods in ch.sahits.game.openpatrician.display.gameplay.impl with parameters of type ImageScaleState Modifier and Type Method Description java.util.List<javafx.scene.shape.Polygon>ScenePolygonInitialzer. initialzePolygons(ImageScaleState state)Initialize the polygons defined in the metadata considering the proper scaling and cropping. -
Uses of ImageScaleState in ch.sahits.game.openpatrician.display.javafx
Methods in ch.sahits.game.openpatrician.display.javafx with parameters of type ImageScaleState Modifier and Type Method Description (package private) voidMainGameImageView. setImageView(double width, double height, javafx.scene.image.ImageView imgView, ImageScaleState state)Set the image view at the right position.Constructors in ch.sahits.game.openpatrician.display.javafx with parameters of type ImageScaleState Constructor Description MainGameImageView(double width, double height, javafx.scene.image.ImageView imgView, ImageScaleState state)
-