Logo Search packages:      
Sourcecode: latexdraw version File versions  Download package

latexDraw::figures::Text Class Reference

Inheritance diagram for latexDraw::figures::Text:

latexDraw::figures::Figure latexDraw::figures::properties::Drawable

List of all members.


Detailed Description

This class defines a text.
This file is part of LaTeXDraw
Copyright (c) 2005-2008 Arnaud BLOUIN

LaTeXDraw is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

LaTeXDraw is distributed without any warranty; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

01/20/06
Author:
Arnaud BLOUIN
Version:
2.0.0

Definition at line 43 of file Text.java.


Public Member Functions

synchronized boolean addBox (FramedBox box)
boolean canBeFilled ()
boolean canBeHatched ()
synchronized boolean canHaveArrow ()
boolean canHaveShadow ()
synchronized void changeMeter ()
Object clone () throws CloneNotSupportedException
double computeRotationAngle (Point formerPt, Point newPt) throws IllegalArgumentException
Shape createNonRotatedShape2D ()
Shape createShadowShape ()
Shape createShape2D ()
void draw (Graphics2D g, Object antiAlias, Object rendering, Object alphaInter, Object colorRendering)
synchronized float getBlackDashLength ()
synchronized LaTeXDrawRectangle getBorders ()
synchronized LaTeXDrawPoint2D getBordersPoint (int id)
synchronized String getBordersPosition ()
LaTeXDrawRectangle getBoundBorders ()
synchronized String getCodePSTricks (DrawBorders drawBorders, float ppc)
synchronized String getCodePSTricksBody (DrawBorders drawBorders, float ppc)
synchronized Font getCurrentFont ()
synchronized TextFont getCurrentTextFont ()
synchronized float getDotSep ()
synchronized Color getDoubleColor ()
synchronized double getDoubleSep ()
synchronized TextPosition getFirstTextPosition ()
synchronized FontMetrics getFontMetrics ()
synchronized FontRenderContext getFontRenderContext ()
synchronized double getGradientAngle ()
synchronized Color getGradientEndColor ()
synchronized double getGradientMidPoint ()
synchronized Color getGradientStartColor ()
synchronized LaTeXDrawPoint2D getGravityCenter ()
synchronized double getHatchingAngle ()
synchronized Color getHatchingColor ()
synchronized double getHatchingSep ()
synchronized String getHatchingStyle ()
synchronized float getHatchingWidth ()
synchronized double getHeight ()
synchronized Color getInteriorColor ()
LaTeXDrawPoint2D getLastPoint ()
synchronized TextPosition getLastTextPosition ()
synchronized Color getLinesColor ()
synchronized String getLineStyle ()
synchronized Vector< FramedBoxgetMultipleBox ()
synchronized Vector< FramedBoxgetMultipleBoxDisplay ()
synchronized int getNumber ()
synchronized Color getOpacityColor ()
LaTeXDrawRectangle getOpaqueBackGround ()
synchronized LaTeXDrawPoint2D getPosition ()
String getPSTricksCodeFilling (float ppc)
String getPSTricksCodeLine (float ppc)
synchronized double getRotationAngle ()
int getSelectedDelimitorOrientation ()
synchronized double getShadowAngle ()
synchronized Color getShadowColor ()
synchronized double getShadowSize ()
synchronized Shape getShape ()
synchronized FramedBox getSimpleBox ()
synchronized String getText ()
synchronized Vector< TextPosition > getTextPos ()
synchronized TextSize getTextSize ()
LaTeXDrawPoint2D getTheNWBoundPoint ()
LaTeXDrawPoint2D getTheNWNonRotatedBoundPoint ()
LaTeXDrawPoint2D getTheNWPoint ()
LaTeXDrawPoint2D getTheNWRotatedPoint ()
LaTeXDrawPoint2D getTheSEBoundPoint ()
LaTeXDrawPoint2D getTheSENonRotatedBoundPoint ()
synchronized LaTeXDrawPoint2D getTheSEPoint ()
synchronized LaTeXDrawPoint2D getTheSERotatedPoint ()
synchronized float getThickness ()
synchronized float getWhiteDashLength ()
synchronized double getWidth ()
synchronized boolean hasDoubleBoundary ()
synchronized boolean hasFramedBox ()
synchronized boolean hasGradient ()
int hashCode ()
synchronized boolean hasSeveralBoxes ()
synchronized boolean hasShadow ()
synchronized boolean hasSimpleFramedBox ()
boolean intersected (Rectangle2D.Double r)
synchronized boolean isADelimitorSelected ()
synchronized boolean isBold ()
synchronized boolean isBordersMovable ()
synchronized boolean isCustomizable ()
synchronized boolean isDashableOrDotable ()
boolean isDelimitorSelected ()
synchronized boolean isDoubleBoundaryable ()
synchronized boolean isFilled ()
synchronized boolean isHatched ()
boolean isIn (Point pt)
boolean isIn (LaTeXDrawPoint2D pt)
synchronized boolean isItalic ()
boolean isOnRotation ()
synchronized boolean isOpaque ()
boolean isParametersEquals (Figure f, boolean considerShadow, boolean considerArrow)
synchronized boolean isResizable ()
synchronized boolean isSelected ()
synchronized boolean isThicknessable ()
synchronized boolean isTooSmallToBeRescaled ()
void mirrorHorizontal (LaTeXDrawPoint2D origin)
void mirrorVertical (LaTeXDrawPoint2D origin)
synchronized void onClick (Point pt)
synchronized void onDelimitorRelease ()
void onDragged (Point formerPt, Point newPt) throws Exception
synchronized void onRelease ()
void removeAllBoxes ()
synchronized void removeBox (FramedBox b)
void rescaleX (double formerX, double newX, double percent, LaTeXDrawRectangle bound)
void rescaleY (double formerY, double newY, double percent, LaTeXDrawRectangle bound)
void rotate (LaTeXDrawPoint2D gravityC, double angle)
void rotate (Point formerPt, Point newPt) throws IllegalArgumentException
LaTeXDrawPoint2D rotateInvertPoint (Point p)
LaTeXDrawPoint2D rotateInvertPoint (LaTeXDrawPoint2D p)
LaTeXDrawPoint2D rotatePoint (Point p)
synchronized LaTeXDrawPoint2D rotatePoint (LaTeXDrawPoint2D p, double theta)
LaTeXDrawPoint2D rotatePoint (LaTeXDrawPoint2D p)
synchronized void setBlackDashLength (float blackDashLength)
synchronized void setBordersPosition (String doubleLinePosition)
synchronized void setCustomizable (boolean isCustomizable)
synchronized void setDotSep (float dotSep)
synchronized void setDoubleColor (Color doublecolor)
synchronized void setDoubleSep (double doubleSep)
synchronized void setFirstPoint (LaTeXDrawPoint2D pt)
void setFirstPoint (double x, double y)
synchronized void setGradientAngle (double gradientAngle)
synchronized void setGradientEndColor (Color gradientEndColor)
synchronized void setGradientMidPoint (double gradientMidPoint)
synchronized void setGradientStartColor (Color gradientStartColor)
synchronized void setHasDoubleBoundary (boolean hasDoubleBoundary)
synchronized void setHasFramedBox (boolean hasFramedBox)
synchronized void setHasShadow (boolean hasShadow)
synchronized void setHasSimpleFramedBox (boolean hasSimpleFramedBox)
synchronized void setHatchingAngle (double hatchingAngle)
synchronized void setHatchingColor (Color color)
synchronized void setHatchingSep (double hatchSep)
synchronized void setHatchingStyle (String style)
synchronized void setHatchingWidth (float width)
synchronized void setInteriorColor (Color c)
synchronized void setIsBold (boolean is)
synchronized void setIsFilled (boolean state)
synchronized void setIsItalic (boolean is)
synchronized void setLastPoint (LaTeXDrawPoint2D pt)
void setLastPoint (double x, double y)
synchronized void setLinesColor (Color c)
synchronized void setLineStyle (String style)
void setNewNumber ()
synchronized void setNumber (int number)
synchronized void setOnRotation (boolean on)
synchronized void setOpacityColor (Color opacityColor)
synchronized void setOpaque (boolean isOpaque)
synchronized void setPosition (LaTeXDrawPoint2D p)
synchronized void setResizable (boolean isResizable)
synchronized void setRotationAngle (double theta)
synchronized void setSelected (boolean state)
synchronized void setShadowAngle (double shadowAngle)
synchronized void setShadowColor (Color shadowColor)
synchronized void setShadowSize (double shadowSize)
synchronized void setSimpleBox (FramedBox simpleBox)
synchronized void setSize (String label)
synchronized void setSize (int size)
synchronized void setSizeByCommand (String cmd)
synchronized void setText (String t)
synchronized void setTextFont (String name)
synchronized void setTextFontByFamily (String fam)
synchronized void setThickness (float value)
synchronized void setWhiteDashLength (float whiteDashLength)
synchronized void setX (double x)
synchronized void setY (double y)
boolean shadowFillsShape ()
void shift (Point formerPt, Point newPt)
void shift (LaTeXDrawPoint2D formerPt, LaTeXDrawPoint2D newPt)
void shift (double shiftX, double shiftY)
 Text (String t, LaTeXDrawPoint2D pos, boolean increaseMeter)
 Text (String t, boolean increaseMeter)
 Text (boolean increaseMeter)
String toString ()
synchronized void updateBorders (FontMetrics f)
synchronized void updateBorders ()
synchronized void updateBoxesOrder ()
void updateFont ()
void updateFontsBorders ()
synchronized void updateFramedBoxes ()
synchronized void updateGravityCenter ()
synchronized void updateShape ()
void updateStyleOfDelimitors ()
void updateTextPosition ()
void updateToGrid (MagneticGrid grid)

Static Public Member Functions

static double computeAngle (Point pt, LaTeXDrawPoint2D gravityC)
static LaTeXDrawComboBox createBordersPositionChoice ()
static LaTeXDrawComboBox createFillChoice ()
static LaTeXDrawComboBox createStyleLineChoice ()
static JComboBox getChoiceFont ()
static JComboBox getChoiceSize ()
static double getCornerGap (Point2D a, Point2D b, Point2D c, double gap)
static boolean isValidBordersPosition (String pos)
static boolean isValidSize (String label)
static boolean isValidStyle (String style)
static LaTeXDrawPoint2D rotatePoint (LaTeXDrawPoint2D p, LaTeXDrawPoint2D gravityC, double theta)

Public Attributes

double rotationAngle

Static Public Attributes

static final String DECREPETED_FILL_CROSS = "Cross hatch"
static final String DECREPETED_FILL_HORIZ = "Horizontal hatch"
static final String DECREPETED_FILL_NO = "No hatch"
static final String DECREPETED_FILL_VERT = "Vertical hatch"
static final float DEFAULT_BLACK_DASH_LGTH = 8
static final Color DEFAULT_BORDERS_COL = Color.BLACK
static final String DEFAULT_BORDERS_POSITION = PSTricksConstants.BORDERS_INSIDE
static final float DEFAULT_DOT_SEP = 8
static final Color DEFAULT_DOUBLE_COLOR = PSTricksConstants.DEFAULT_DOUBLE_COLOR
static final boolean DEFAULT_DOUBLELINE = false
static final double DEFAULT_DOUBLESEP = 6
static final double DEFAULT_GRADIENT_ANGLE = Math.toRadians(PSTricksConstants.DEFAULT_GRADIENT_ANGLE)
static final double DEFAULT_GRADIENT_MID_POINT = 1
static final boolean DEFAULT_HAS_BOX = false
static final boolean DEFAULT_HAS_DOUBLE_BOUNDARY = false
static final boolean DEFAULT_HAS_SIMPLE_BOX = true
static final double DEFAULT_HATCH_ANGLE = 0.
static final Color DEFAULT_HATCH_COL = Color.BLACK
static final double DEFAULT_HATCH_SEP = PSTricksConstants.DEFAULT_HATCH_SEP*PPC
static final String DEFAULT_HATCH_STYLE = PSTricksConstants.TOKEN_FILL_NONE
static final float DEFAULT_HATCH_WIDTH = DEFAULT_THICKNESS
static final Color DEFAULT_INTERIOR_COL = Color.WHITE
static final boolean DEFAULT_IS_BORDERS_MOVABLE = true
static final boolean DEFAULT_IS_CUSTOMISABLE = true
static final boolean DEFAULT_IS_FILLED = false
static final boolean DEFAULT_IS_HATCHED = false
static final boolean DEFAULT_IS_OPAQUE = false
static final boolean DEFAULT_IS_THICKNESSABLE = true
static final boolean DEFAULT_ISBOLD = false
static final boolean DEFAULT_ISITALIC = false
static final boolean DEFAULT_ISRESIZABLE = true
static final String DEFAULT_LINE_STYLE = PSTricksConstants.LINE_NONE_STYLE
static final Color DEFAULT_OPACITY_COLOR = Color.WHITE
static final double DEFAULT_ROTATION_ANGLE = 0.
static final double DEFAULT_SHADOW_ANGLE = Math.toRadians(PSTricksConstants.DEFAULT_SHADOW_ANGLE)
static final Color DEFAULT_SHADOW_COLOR = PSTricksConstants.DEFAULT_SHADOW_COLOR
static final boolean DEFAULT_SHADOW_HAS = PSTricksConstants.DEFAULT_SHADOW
static final double DEFAULT_SHADOW_SIZE = PSTricksConstants.DEFAULT_SHADOW_SIZE*PPC
static final TextSize DEFAULT_SIZE = SIZE_NORMAL
static final int DEFAULT_STYLE = Font.PLAIN
static final TextFont DEFAULT_TEXTFONT = TEXTFONT_TIMES
static final float DEFAULT_THICKNESS = 2
static final float DEFAULT_WHITE_DASH_LGTH = 8
static final short DELIMITOR_ORIENTATION_EAST = 2
static final short DELIMITOR_ORIENTATION_NE = 6
static final short DELIMITOR_ORIENTATION_NONE = -1
static final short DELIMITOR_ORIENTATION_NORTH = 3
static final short DELIMITOR_ORIENTATION_NW = 4
static final short DELIMITOR_ORIENTATION_SE = 7
static final short DELIMITOR_ORIENTATION_SOUTH = 8
static final short DELIMITOR_ORIENTATION_SW = 5
static final short DELIMITOR_ORIENTATION_WEST = 0
static final short DELIMITOR_ROTATION = 9
static final String LABEL_BORDERS_POSITION_CHOICE = LaTeXDrawLang.getOthersString("Figure.boundPos")
static final String LABEL_HATCH_CHOICE = "Hatch choice"
static final String LABEL_HATCH_WIDTH = "Hatch width"
static final int PPC = 50
static final TextSize SIZE_FOOTNOTE = new TextSize("Footnote size", PSTricksConstants.COMMAND_TEXT_FOOTNOTE, 16)
static final TextSize SIZE_HUGE1 = new TextSize("huge", PSTricksConstants.COMMAND_TEXT_HUGE1, 35)
static final TextSize SIZE_HUGE2 = new TextSize("Very huge", PSTricksConstants.COMMAND_TEXT_HUGE2, 44)
static final TextSize SIZE_LARGE1 = new TextSize("Large", PSTricksConstants.COMMAND_TEXT_LARGE1, 22)
static final TextSize SIZE_LARGE2 = new TextSize("Very large", PSTricksConstants.COMMAND_TEXT_LARGE2, 24)
static final TextSize SIZE_LARGE3 = new TextSize("Very very large", PSTricksConstants.COMMAND_TEXT_LARGE3, 30)
static final TextSize SIZE_NORMAL = new TextSize("Normal", PSTricksConstants.COMMAND_TEXT_NORMAL, 18)
static final TextSize SIZE_SCRIPT = new TextSize("Script size", PSTricksConstants.COMMAND_TEXT_SCRIPT, 14)
static final TextSize SIZE_SMALL = new TextSize("Small", PSTricksConstants.COMMAND_TEXT_SMALL, 17)
static final TextSize SIZE_TINY = new TextSize("Tiny", PSTricksConstants.COMMAND_TEXT_TINY, 11)
static final TextFont TEXTFONT_COURIER = new TextFont("Courier New", "pcr", "T1")
static final TextFont TEXTFONT_PALATINO = new TextFont("Palatino Linotype", "ppl", "T1")
static final TextFont TEXTFONT_TIMES = new TextFont("Times New Roman", "ptm", "T1")

Protected Member Functions

void fillFigure (Graphics2D g, Object antiAlias, Object rendering, Object alphaInter, Object colorRendering, Shape s)
Shape getTooSmallShape (Shape s)
void setHasGradient ()

Protected Attributes

float blackDashLength
LaTeXDrawRectangle borders
String bordersPosition
boolean canBeFilled
boolean canHaveArrow
boolean canHaveShadow
Font currentFont
TextSize currentSize
TextFont currentTextFont
float dotSep
Color doubleColor
double doubleSep
Delimitor dSelected
FontMetrics fontMetrics
transient FontRenderContext fontRenderContext
double gradientAngle
Color gradientEndColor
double gradientMidPoint
Color gradientStartColor
LaTeXDrawPoint2D gravityCenter
transient boolean hasChanged
boolean hasDoubleBoundary
boolean hasFramedBox
boolean hasShadow
boolean hasSimpleFramedBox
double hatchingAngle
Color hatchingColor
double hatchingSep
String hatchingStyle
float hatchingWidth
Color interiorColor
boolean isBold
boolean isBordersMovable
boolean isCustomizable
boolean isDashableOrDotable
boolean isDoubleBoundaryable
boolean isFilled
boolean isItalic
boolean isOnRotation
boolean isOpaque
boolean isResizable
boolean isSelected
boolean isThicknessable
Color linesColor
String lineStyle
Vector< FramedBoxmultipleBox
transient Vector< FramedBoxmultipleBoxDisplay
int number
Color opacityColor
LaTeXDrawPoint2D position
double shadowAngle
Color shadowColor
double shadowSize
transient Shape shape
FramedBox simpleBox
String text
transient Vector< TextPosition > textPos
double textSizeDrawn
float thickness
float whiteDashLength

Static Protected Attributes

static final FontMetrics INS_FONT_METRICS
static final FontRenderContext INS_FONT_RENDER_CONT
static final Graphics2D INS_GRAPHICS

Static Package Functions

 [static initializer]

Private Member Functions

void readObject (ObjectInputStream ois) throws IOException, ClassNotFoundException

Static Private Attributes

static final long serialVersionUID = 1L

Classes

class  TextFont
class  TextPosition
class  TextSize

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index