Class SimFieldLocationTransformer.ComponentLocation

java.lang.Object
net.simplace.client.sim.graphpanel.transformer.SimFieldLocationTransformer.ComponentLocation
Enclosing class:
SimFieldLocationTransformer

public static final class SimFieldLocationTransformer.ComponentLocation extends Object
Computes the location coordinates depending on content type and order number.
Author:
Andreas Enders
  • Constructor Details

    • ComponentLocation

      public ComponentLocation()
  • Method Details

    • getHight

      public static Double getHight(net.simplace.sim.util.FWSimVariable.CONTENT_TYPE aContentType, int aHeight)
      Parameters:
      aContentType - content type of the field container
      aHeight - height of the graph area
      Returns:
      the vertical position
    • getWidth

      public static Integer getWidth(net.simplace.sim.util.FWSimVariable.CONTENT_TYPE aContentType, Integer aWidth, Integer aOrderNumber)
      Parameters:
      aContentType - content type of the field container
      aWidth - width of the graph area
      aOrderNumber - order number of the field container
      Returns:
      the horizontal position