# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
## Build generated
build/
DerivedData/
## Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata/
## Other
*.moved-aside
*.xcuserstate
## Obj-C/Swift specific
*.hmap
*.ipa
*.dSYM.zip
*.dSYM
## Playgrounds
timeline.xctimeline
playground.xcworkspace
# Swift Package Manager
#
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
.build/
# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
# Pods/
# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts
Carthage/Build
# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md
fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
fastlane/test_output
BasicSideFloats'>Temp_BasicSideFloats
Apache XML Graphics FOP: https://github.com/apache/xmlgraphics-fop
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *//* $Id$ */packageorg.apache.fop.area;importjava.awt.geom.Rectangle2D;importjava.io.IOException;importjava.util.HashMap;/** * Region Viewport area. * This object represents the region-viewport-area. It has a * region-reference-area as its child. These areas are described * in the fo:region-body description in the XSL Recommendation. */publicclassRegionViewportextendsAreaimplementsCloneable{// this rectangle is relative to the pageprivateRegionReferenceregionReference;privateRectangle2DviewArea;privatebooleanclip=false;/** * Create a new region-viewport-area * * @param viewArea the view area of this viewport */publicRegionViewport(Rectangle2DviewArea){this.viewArea=viewArea;addTrait(Trait.IS_VIEWPORT_AREA,Boolean.TRUE);}/** * Set the region-reference-area for this region viewport. * * @param reg the child region-reference-area inside this viewport */publicvoidsetRegionReference(RegionReferencereg){regionReference=reg;}/** * Get the region-reference-area for this region viewport. * * @return the child region-reference-area inside this viewport */publicRegionReferencegetRegionReference(){returnregionReference;}/** * Set the clipping for this region viewport. * * @param c the clipping value */publicvoidsetClip(booleanc){clip=c;}/** @return true if the viewport should be clipped. */publicbooleanisClip(){returnthis.clip;}/** * Get the view area of this viewport. * * @return the viewport rectangle area */publicRectangle2DgetViewArea(){returnviewArea;}privatevoidwriteObject(java.io.ObjectOutputStreamout)throwsIOException{out.writeFloat((float)viewArea.getX());out.writeFloat((float)viewArea.getY());out.writeFloat((float)viewArea.getWidth());out.writeFloat((float)viewArea.getHeight());out.writeBoolean(clip);out.writeObject(props);out.writeObject(regionReference);}privatevoidreadObject(java.io.ObjectInputStreamin)throwsIOException,ClassNotFoundException{viewArea=newRectangle2D.Float(in.readFloat(),in.readFloat(),in.readFloat(),in.readFloat());clip=in.readBoolean();props=(HashMap)in.readObject();setRegionReference((RegionReference)in.readObject());}/** * Clone this region viewport. * Used when creating a copy from the page master. * * @return a new copy of this region viewport */publicObjectclone(){RegionViewportrv=newRegionViewport((Rectangle2D)viewArea.clone());rv.regionReference=(RegionReference)regionReference.clone();if(props!=null){rv.props=newHashMap(props);}if(foreignAttributes!=null){rv.foreignAttributes=newHashMap(foreignAttributes);}returnrv;}}