Package com.cedarsoftware.util.geom
Class Dimension
java.lang.Object
com.cedarsoftware.util.geom.Dimension
Zero-dependency geometric primitive - Immutable Dimension class representing width and height.
This class provides an API-compatible replacement for java.awt.Dimension without requiring
the java.desktop module (~8MB), making it ideal for headless servers, microservices,
and modular applications.
No AWT dependency - This class is completely independent and does not require java.awt.
- Author:
- John DeRegnaucourt ([email protected])
Copyright (c) Cedar Software LLC
Licensed 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
License
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.
-
Constructor Summary
ConstructorsConstructorDescriptionDimension(int width, int height) Creates a Dimension with the specified width and height. -
Method Summary
-
Constructor Details
-
Dimension
public Dimension(int width, int height) Creates a Dimension with the specified width and height.- Parameters:
width- the width dimensionheight- the height dimension
-
-
Method Details