biz-Streamマニュアル XMLページレイアウトタグ リファレンス 第5章 図形 5.2 四角形<Square>

5.2 四角形<Square>


5.2.1機能説明

四角形の定義を行います。



5.2.2属性説明

属性名指定説明指定内容初期値
Name任意名前CDATA
Width必須図形の幅CDATA
Height必須図形の高さCDATA
X任意X座標CDATA0
Y任意Y座標CDATA0
Unit任意単位(Choice)mm / cm / in / px / ptmm
LineColor任意線の色CDATA
LineWidth任意線の幅CDATA0.1
FillColor任意塗りつぶし色CDATA
LineStyle任意線のスタイル(Choice) 「6.2 線<Line>」にある属性説明の「LineStyle属性」を参照Solid
  • (注)初期値:出荷時のXMLデフォルト情報(default_values.properties)値を表します。ユーザにより値の変更が行われた場合は内容が異なります。


5.2.3記述例

Squareサンプル1

Squareサンプル1(『<biz-Stream_home>/sample/xml/Square/SquareSample1.xml』)

<?xml version="1.0" encoding="UTF-8"?>
<!-- XML file created by biz-Stream Designer -->
<!-- biz-Stream Copyright BrainSellers.com Corp. -->
<Layout Name="SquareSample1" Width="140" Height="110" X="10" Y="10" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:bs="http://www.brainsellers.com/schema" xmlns:svg="http://www.brainsellers.com/schema" xmlns:form="http://www.brainsellers.com/schema" xmlns:pdf="http://www.brainsellers.com/schema" version="5.0.0">
    <!-- 枠線 -->

    <Square Width="100" Height="70" LineColor="14,0,176" LineStyle="Solid"/>

    <!-- (1)Square1 -->

    <Square Name="Square1" Width="20" Height="20" X="5" Y="35" LineColor="0,0,0" LineWidth="0" LineStyle="Solid"/>

    <!-- (2)Square2 -->

    <Square Name="Square2" Width="20" Height="20" X="30" Y="35" LineColor="0,0,0" LineWidth="1" LineStyle="Solid"/>

    <!-- (3)Square3 -->

    <Square Name="Square3" Width="20" Height="20" X="55" Y="35" LineColor="0,0,0" LineWidth="2" LineStyle="Solid"/>

    <!-- (4)Square4 -->

    <Square Name="Square4" Width="20" Height="20" X="5" Y="10" FillColor="0,0,0" LineStyle="Solid"/>

    <!-- (5)Square5 -->

    <Square Name="Square5" Width="20" Height="20" X="30" Y="10" LineColor="0,0,0" LineWidth="1" FillColor="204,204,204" LineStyle="Solid"/>

    <!-- (6)Square6 -->

    <Square Name="Square6" Width="40" Height="20" X="55" Y="10" LineColor="153,153,153" LineWidth="2" LineStyle="Solid"/>

</Layout>

生成されるPDF(『<biz-Stream_home>/sample/xml/Square/SquareSample1.pdf』)


Squareサンプル1
  • Square1:LineWidth = "0"
  • Square2:LineWidth = "1"
  • Square3:LineWidth = "2"
  • Square4:FillColor = "0"
  • Square5:FillColor = "80
  • Square6:LineColor = "60"