Quiq::Gd::Component::BlockDiagram - Farbige Blöcke in einer Fläche
Quiq::Gd::Component
Fett hervorgehobene Attribute sind Pflichtangaben beim Konstruktor-Aufruf.
Breite der Grafik in Pixeln.
Höhe der Grafik in Pixeln.
Anfang des X-Wertebereichs (Weltkoodinate).
Ende des X-Wertebereichs (Weltkoodinate).
Anfang des Y-Wertebereichs (Weltkoodinate).
Ende des Y-Wertebereichs (Weltkoodinate).
Die Y-Achse geht von oben nach unten statt von unten nach oben, d.h. die kleineren Werte sind oben.
Liste der Objekte, die die Blockinformation liefern.
Subroutine, die aus einem Objekt die Block-Information liefert. Signatur:
sub { my $obj = shift; ... return ($x,$y,$width,$height,$color); }
$g = $class->new(@keyVal);
Instantiiere ein Blockdiagramm-Objekt mit den Eigenschaften @keyVal (s. Abschnitt ATTRIBUTES) und liefere eine Referenz auf das Objekt zurück.
@blocks | $blockA = $g->render($img); @blocks | $blockA = $g->render($img,$x,$y,@keyVal); @blocks | $blockA = $class->render($img,$x,$y,@keyVal);
Liste der gezeichneten Blöcke. Im Skalarkontext eine Referenz auf die Liste. Ein Listenelement hat die Komponenten:
[$obj,$x1,$y1,$x2,$y2]
Ein Element gibt zu jedem Objekt die Pixelkoordinaten des Blocks im Bild $img an.
Zeichne die Grafik in Bild $img an Position ($x,$y).
1.189
Frank Seitz, http://fseitz.de/
Copyright (C) 2020 Frank Seitz
This code is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Quiq, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Quiq
CPAN shell
perl -MCPAN -e shell install Quiq
For more information on module installation, please visit the detailed CPAN module installation guide.