Class NTxSize

java.lang.Object
net.thevpc.ntexup.api.document.elem2d.NTxSize
All Implemented Interfaces:
net.thevpc.nuts.elem.NToElement

public class NTxSize extends Object implements net.thevpc.nuts.elem.NToElement
Author:
vpc
  • Constructor Details

    • NTxSize

      public NTxSize(NTxSize.Type type, double value, double value2)
  • Method Details

    • ofElement

      public static NTxSize ofElement(net.thevpc.nuts.elem.NElement b)
    • ofParent

      public static NTxSize ofParent(double percent)
    • ofPage

      public static NTxSize ofPage(double percent)
    • ofPx

      public static NTxSize ofPx(double value)
    • ofRem

      public static NTxSize ofRem(double value)
    • ofBounds

      public static NTxSize ofBounds(double width, double height)
    • ofJava

      public static NTxSize ofJava(double size)
    • type

      public NTxSize.Type type()
    • value

      public double value()
    • value2

      public double value2()
    • percent

      public double percent()
    • size

      public double size()
    • width

      public double width()
    • height

      public double height()
    • toElement

      public net.thevpc.nuts.elem.NElement toElement()
      Specified by:
      toElement in interface net.thevpc.nuts.elem.NToElement
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object