RelativeRectangle

RelativeRectangle

Približni podaci

RelativeRectangle je klasa u Aspose.3D FOSS za Java. Nasljednici od: Struct<RelativeRectangle>, Serializable.

Relativni pravougaon Formula između relativne komponente i apsolutne vrijednosti je: Skala * (Referenčna širina) + ofset Dakle, ako želimo da predstavlja apsolutu vrijednost, ostavimo sve polja skali na nulu, a umjesto toga koristimo offset polje.

Ova klasa pruža 25 metoda za rad s RelativeRectangle objektima u Java programima. Postoje i sljedeće metode: RelativeRectangle, clone, copyFrom, equals, fromScale, getOffsetHeight, getOffsetWidth, getOffsetX, getOffsetY, getScaleHeight, getScaleWidth, getScaleX, i 12 dodatnih metoda. Svi javni članovi su dostupni bilo kojoj Java aplikaciji nakon instalacije paketa Aspose.3D FOSS za Java. Ograničenja: offsetHeight, offsetWidth, offsetX, offsetY, scaleHeight, scaleWidth, i još 2 .

Oznake i značajke

NameTypeAccessDescription
scaleXfloatReadRelative coordinate X @return Relative coordinate X /
scaleYfloatReadRelative coordinate Y @return Relative coordinate Y /
scaleWidthfloatReadRelative width @return Relative width /
scaleHeightfloatReadRelative height @return Relative height /
offsetXintReadGets the offset for coordinate X @return the offset for coordinate X /
offsetYintReadGets the offset for coordinate Y @return the offset for coordinate Y /
offsetWidthintReadGets the offset for width @return the offset for width /
offsetHeightintReadGets the offset for height @return the offset for height /

Metoda za primjenu

SignatureDescription
RelativeRectangle()Calls RelativeRectangle on this RelativeRectangle instance.
RelativeRectangle(left: int, top: int, width: int, height: int)Calls RelativeRectangle(left, top, width, height) on this RelativeRectangle instance.
getScaleX()floatRelative coordinate X @return Relative coordinate X /
setScaleX(value: float)Relative coordinate X @param value New value /
getScaleY()floatRelative coordinate Y @return Relative coordinate Y /
setScaleY(value: float)Relative coordinate Y @param value New value /
getScaleWidth()floatRelative width @return Relative width /
setScaleWidth(value: float)Relative width @param value New value /
getScaleHeight()floatRelative height @return Relative height /
setScaleHeight(value: float)Relative height @param value New value /
getOffsetX()intGets the offset for coordinate X @return the offset for coordinate X /
setOffsetX(value: int)Sets the offset for coordinate X @param value New value /
getOffsetY()intGets the offset for coordinate Y @return the offset for coordinate Y /
setOffsetY(value: int)Sets the offset for coordinate Y @param value New value /
getOffsetWidth()intGets the offset for width @return the offset for width /
setOffsetWidth(value: int)Sets the offset for width @param value New value /
getOffsetHeight()intGets the offset for height @return the offset for height /
setOffsetHeight(value: int)Sets the offset for height @param value New value /
toAbsolute(left: int, top: int, width: int, height: int)RectConvert the relative rectangle to absolute rectangle @param left Left of the rectangle @param top Top of the rectangle @param width Width of the rectangle @param height Height of the rectangle @r
fromScale(scaleX: float, scaleY: float, scaleWidth: float, scaleHeight: float)RelativeRectangleConstruct a RelativeRectangle with all offset fields zero and scale fields from given parameters.
toString()StringCalls toString on this RelativeRectangle instance.
clone()RelativeRectangleCalls clone on this RelativeRectangle instance.
copyFrom(src: RelativeRectangle)Calls copyFrom(src) on this RelativeRectangle instance.
hashCode()intCalls hashCode on this RelativeRectangle instance.
equals(obj: Object)booleanCalls equals(obj) on this RelativeRectangle instance.

Također pogledajte:

 Hrvatski