BlueSpray - Help
© SchoonerTurtles, Inc. 2012-2015

Introduction
Contents
Getting Started
Download
Navigating
Tutorials
Scripting
Advanced
About

Class STStyle

Extends STContent

All the settings to draw an item with a frame, border, and text.
Implements most of the drawing settings available with the Graphics2D class.


Copyright, SchoonerTurtles LLP, 2009
@author Jim Graham

Object Functions

ReturnsFunctionThrows
  STStyle(Color PenColor,Color FillColor,double FontSize,boolean NewSizeInRefUnits) Exception
SetPenAntialiased(boolean NewValue)  
SetPenWidth(double NewPenWidth)  

Object Functions


  STStyle(Color PenColor,Color FillColor,double FontSize,boolean NewSizeInRefUnits) Exception

Create a new style object with the specified pen color,fill color, and
font size. This is a convenience function to allow a style object to
be created in one function call.

Parameters:
    PenColor - standard java color of the pen, null for no pen
    FillColor - the standard java color of the fill, null for no fill
    NewFontSize - font size in reference or pixel units, 0 for no text drawing
    NewSizeInRefUnits - true if the font size is in reference (map) units, false for pixels
Throws: Exception


SetPenAntialiased(boolean NewValue)  

Enables or disabled antialiasing to remove jaggies from lines. Java is
pretty fast for antialiasing so the default is true. Typically you would
only want to disable this for really high resolution images of very complex
items.

Parameters:
    NewValue - True to enable antialiasing, false to disable.


SetPenWidth(double NewPenWidth)  

Sets the width of the pen. This will enable the pen if it is disabled.

Parameters:
    New - Width (and height) of the pen in the units of the item it is