be.tarsos.dsp.ui.layers.AmplitudeAxisLayer.class Maven / Gradle / Ivy
???? 3 n
( ) * +
, - . /
0 1 2
3 4 * 5
, 6
7 8
, 9
: ;
3 < = >@$
? @
A B
: C D 1 E F G H cs #Lbe/tarsos/dsp/ui/CoordinateSystem; &(Lbe/tarsos/dsp/ui/CoordinateSystem;)V Code draw (Ljava/awt/Graphics2D;)V
StackMapTable drawAmplitudeXAxis G I getName ()Ljava/lang/String; J K L M N O P Q R S # ! T U V I W X Y M Z [ \ ] ^ _ [ ` a b c d %.0f java/lang/Object e f g h i j k l
Amplitude (%) m V Amplitude Axis *be/tarsos/dsp/ui/layers/AmplitudeAxisLayer be/tarsos/dsp/ui/layers/Layer java/awt/Graphics2D ()V be/tarsos/dsp/ui/Axis Y Lbe/tarsos/dsp/ui/Axis; !be/tarsos/dsp/ui/CoordinateSystem getUnitsForAxis 4(Lbe/tarsos/dsp/ui/Axis;)Lbe/tarsos/dsp/ui/AxisUnit; be/tarsos/dsp/ui/AxisUnit AMPLITUDE Lbe/tarsos/dsp/ui/AxisUnit; java/awt/Color black Ljava/awt/Color; setColor (Ljava/awt/Color;)V X getMin (Lbe/tarsos/dsp/ui/Axis;)F java/lang/Math round (F)I getMax &be/tarsos/dsp/ui/layers/LayerUtilities
pixelsToUnits (Ljava/awt/Graphics2D;IZ)F drawLine (IIII)V java/lang/Double valueOf (D)Ljava/lang/Double; java/lang/String format 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
drawString X(Ljava/awt/Graphics2D;Ljava/lang/String;DDZZLjava/awt/Color;)Ljava/awt/geom/Rectangle2D; white !
*? *+? ? ! + *? ? ? ? ? *+? ? " # !
?+? ? *? ? ?
? =*? ? ? ? >+?
? 6+?
? 6+?
? 6+?
? 6*? ? ?
?6?*? ? ? ?? `dp? =+`? ? Y? o? S? : + `??? W?
p? +`? ????+? +`?d?? ? W? " ? ^ $ % ? R? &