public static class NavigationModel.ViewportState
extends java.lang.Object
| Constructor and Description |
|---|
ViewportState()
Creates a new
NavigationModel.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
NavigationModel.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
NavigationModel.ViewportState. |
NavigationModel.ViewportState |
getCopy()
Returns a copy of this
NavigationModel.ViewportState. |
double |
getHeight()
Returns the viewport height associated with this
NavigationModel.ViewportState. |
double |
getTranslateX()
Returns the horizontal translation associated with this
NavigationModel.ViewportState. |
double |
getTranslateY()
Returns the vertical translation associated with this
NavigationModel.ViewportState. |
double |
getWidth()
Returns the viewport width associated with this
NavigationModel.ViewportState
. |
int |
hashCode() |
public ViewportState()
NavigationModel.ViewportState with
tx = ty = width = height = 0 and an identity transform.public ViewportState(double translateX,
double translateY,
double width,
double height,
AffineTransform contentsTransform)
NavigationModel.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.Objectpublic AffineTransform getContentsTransform()
NavigationModel.ViewportState.public NavigationModel.ViewportState getCopy()
NavigationModel.ViewportState.NavigationModel.ViewportState.public double getHeight()
NavigationModel.ViewportState.public double getTranslateX()
NavigationModel.ViewportState.public double getTranslateY()
NavigationModel.ViewportState.public double getWidth()
NavigationModel.ViewportState
.public int hashCode()
hashCode in class java.lang.ObjectCopyright (c) 2014 itemis AG and others. All rights reserved.