public static class ViewportModel.ViewportState
extends java.lang.Object
Constructor and Description |
---|
ViewportState()
Creates a new
ViewportModel.ViewportState with
tx = ty = width = height = 0 and an identity transform. |
ViewportState(double translateX,
double translateY,
double width,
double height,
AffineTransform contentsTransform)
Creates a new
ViewportModel.ViewportState for the given translation, size,
and transform. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
AffineTransform |
getContentsTransform()
Returns the contents transform associated with this
ViewportModel.ViewportState . |
ViewportModel.ViewportState |
getCopy()
Returns a copy of this
ViewportModel.ViewportState . |
double |
getHeight()
Returns the viewport height associated with this
ViewportModel.ViewportState . |
double |
getTranslateX()
Returns the horizontal translation associated with this
ViewportModel.ViewportState . |
double |
getTranslateY()
Returns the vertical translation associated with this
ViewportModel.ViewportState . |
double |
getWidth()
Returns the viewport width associated with this
ViewportModel.ViewportState
. |
int |
hashCode() |
public ViewportState()
ViewportModel.ViewportState
with
tx = ty = width = height = 0
and an identity transform.public ViewportState(double translateX, double translateY, double width, double height, AffineTransform contentsTransform)
ViewportModel.ViewportState
for the given translation, size,
and transform.translateX
- The horizontal translation.translateY
- The vertical translation.width
- The viewport width.height
- The viewport height.contentsTransform
- The contents transform.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public AffineTransform getContentsTransform()
ViewportModel.ViewportState
.public ViewportModel.ViewportState getCopy()
ViewportModel.ViewportState
.ViewportModel.ViewportState
.public double getHeight()
ViewportModel.ViewportState
.public double getTranslateX()
ViewportModel.ViewportState
.public double getTranslateY()
ViewportModel.ViewportState
.public double getWidth()
ViewportModel.ViewportState
.public int hashCode()
hashCode
in class java.lang.Object
Copyright (c) 2014 itemis AG and others. All rights reserved.