ach.vectorGraphics
Class ShapeProps

java.lang.Object
  extended byach.vectorGraphics.ShapeProps
All Implemented Interfaces:
java.io.Serializable

public class ShapeProps
extends java.lang.Object
implements java.io.Serializable

Title: ShapeProps

Description: Shape Properties (vector graphics object)

Copyright: Copyright (c) 2005

Organisation: Art&Computer Hackbarth

See Also:
Serialized Form

Constructor Summary
ShapeProps()
          Constructor
ShapeProps(java.awt.Color fillColor, java.awt.Color outlineColor, java.awt.Color textColor, boolean XORMode, java.awt.Font font, double fontSize)
          Constructor.
 
Method Summary
 java.lang.String getColorDescription()
          Returns a string describing outline-, fill- and textcolor and optional XOR mode
 java.awt.Color getFillColor()
           
 java.awt.Font getFont()
           
 java.lang.String getFontDescription()
          Returns a string describing the current font name, style and size
 double getFontSize()
          Get font size.
 java.awt.Color getOutlineColor()
           
 java.awt.Color getTextColor()
           
 boolean getXORMode()
           
 void setFillColor(java.awt.Color col)
           
 void setFont(java.awt.Font font)
           
 void setFontSize(double fontSize)
          Set font size.
 void setOutlineColor(java.awt.Color col)
           
 void setTextColor(java.awt.Color col)
           
 void setXORMode(boolean mode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShapeProps

public ShapeProps(java.awt.Color fillColor,
                  java.awt.Color outlineColor,
                  java.awt.Color textColor,
                  boolean XORMode,
                  java.awt.Font font,
                  double fontSize)
Constructor.

Parameters:
fillColor - Color for object filling
outlineColor - Color for object outline
textColor - Color for text objects
XORMode - boolean flag controlling if object is drawn in XOR mode
font - text Font
fontSize - size of text (relative to image height). E.g. 0.05 for a 1000 pixel height image will result in 20 pixel font size

ShapeProps

public ShapeProps()
Constructor

Method Detail

getFillColor

public java.awt.Color getFillColor()

setFillColor

public void setFillColor(java.awt.Color col)

getOutlineColor

public java.awt.Color getOutlineColor()

setOutlineColor

public void setOutlineColor(java.awt.Color col)

getTextColor

public java.awt.Color getTextColor()

setTextColor

public void setTextColor(java.awt.Color col)

setXORMode

public void setXORMode(boolean mode)

getXORMode

public boolean getXORMode()

getFont

public java.awt.Font getFont()

setFont

public void setFont(java.awt.Font font)

getFontSize

public double getFontSize()
Get font size. (size of text relative to image height. E.g. 0.05 for a 1000 pixel height image will result in 20 pixel font size)

Returns:
fontSize size of text (relative to image height)

setFontSize

public void setFontSize(double fontSize)
Set font size. (size of text relative to image height. E.g. 0.05 for a 1000 pixel height image will result in 20 pixel font size)

Parameters:
fontSize - size of text (relative to image height)

getColorDescription

public java.lang.String getColorDescription()
Returns a string describing outline-, fill- and textcolor and optional XOR mode

Returns:
String with color description

getFontDescription

public java.lang.String getFontDescription()
Returns a string describing the current font name, style and size

Returns:
String with font description