net.sf.latexdraw.glib.models.impl
Class LGroup

java.lang.Object
  extended by net.sf.latexdraw.glib.models.impl.LShape
      extended by net.sf.latexdraw.glib.models.impl.LGroup
All Implemented Interfaces:
Arcable, Dottable, IArrowable, IAxes, IGroup, ILineArcShape, IPositionShape, ISetShapes, IShape, IStandardGrid, IText, Modifiable
Direct Known Subclasses:
LDrawing

 class LGroup
extends LShape
implements IGroup

A Group is a group of IShape.

This file is part of LaTeXDraw.
Copyright (c) 2005-2012 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.

02/14/2008

Since:
3.0
Version:
3.0
Author:
Arnaud BLOUIN

Nested Class Summary
 
Nested classes/interfaces inherited from interface net.sf.latexdraw.glib.models.interfaces.IText
IText.TextPosition, IText.TextSize
 
Nested classes/interfaces inherited from interface net.sf.latexdraw.glib.models.interfaces.Arcable
Arcable.ArcStyle
 
Nested classes/interfaces inherited from interface net.sf.latexdraw.glib.models.interfaces.IAxes
IAxes.AxesStyle, IAxes.PlottingStyle, IAxes.TicksStyle
 
Nested classes/interfaces inherited from interface net.sf.latexdraw.glib.models.interfaces.IShape
IShape.BorderPos, IShape.FillingStyle, IShape.LineStyle, IShape.Position
 
Field Summary
protected  java.util.List<IShape> shapes
          The set of shapes.
 
Fields inherited from class net.sf.latexdraw.glib.models.impl.LShape
arrows, bordersPosition, dashSepBlack, dashSepWhite, dbleBordCol, dbleBordSep, dotSep, fillingCol, fillingStyle, gradAngle, gradColEnd, gradColStart, gradMidPt, hasDbleBord, hasShadow, hatchingsAngle, hatchingsCol, hatchingsSep, hatchingsWidth, id, lineColour, lineStyle, modified, opacity, points, rotationAngle, shadowAngle, shadowCol, shadowSize, showPts, thickness
 
Fields inherited from interface net.sf.latexdraw.glib.models.interfaces.IAxes
GAP_LABEL
 
Fields inherited from interface net.sf.latexdraw.glib.models.interfaces.IShape
GOLDEN_ANGLE, PPC
 
Constructor Summary
protected LGroup(boolean uniqueID)
          Creates a group of shapes.
 
Method Summary
 void addShape(IShape sh)
          Adds a shape to the drawing.
 void addShape(IShape s, int index)
          Adds a shape to the drawing at at given position.
 void addToRotationAngle(IPoint gravCentre, double angle)
          Adds the given angle to the current rotation angle.
 void clear()
          Empties the drawing.
 boolean contains(IShape sh)
          Allows to know if a shape is in the drawing.
 boolean containsAxes()
           
 boolean containsRoundables()
           
 boolean containsStandardGrids()
           
 boolean containsTexts()
           
 IGroup duplicate()
          Duplicates the group.
 IGroup duplicate(boolean duplicateShapes)
          Duplicates the group of shapes.
 double getAngleEnd()
           
 java.util.List<java.lang.Double> getAngleEndList()
           
 double getAngleStart()
           
 java.util.List<java.lang.Double> getAngleStartList()
           
 Arcable.ArcStyle getArcStyle()
           
 java.util.List<Arcable.ArcStyle> getArcStyleList()
           
 IArrow getArrowAt(int position)
           
 double getArrowInset()
           
 double getArrowLength()
           
 ILine getArrowLine(IArrow arrow)
           
 java.util.List<IArrow> getArrows()
           
 double getArrowSizeDim()
           
 double getArrowSizeNum()
           
 IArrow.ArrowStyle getArrowStyle(int position)
           
 java.util.List<IArrow.ArrowStyle> getArrowStyleList(int i)
           
 java.util.List<IPoint> getAxesDistLabelsList()
           
 java.util.List<IPoint> getAxesIncrementsList()
           
 java.util.List<IAxes.PlottingStyle> getAxesLabelsDisplayedList()
           
 java.util.List<java.lang.Boolean> getAxesShowOriginList()
           
 IAxes.AxesStyle getAxesStyle()
           
 java.util.List<IAxes.AxesStyle> getAxesStyleList()
           
 java.util.List<IAxes.PlottingStyle> getAxesTicksDisplayedList()
           
 java.util.List<java.lang.Double> getAxesTicksSizeList()
           
 java.util.List<IAxes.TicksStyle> getAxesTicksStyleList()
           
 IShape.BorderPos getBordersPosition()
           
 java.util.List<IShape.BorderPos> getBordersPositionList()
           
 IPoint getBottomLeftPoint()
           
 IPoint getBottomRightPoint()
           
 double getBracketNum()
           
 java.awt.Color getDbleBordCol()
           
 java.util.List<java.awt.Color> getDbleBordColList()
           
 double getDbleBordSep()
           
 java.util.List<java.lang.Double> getDbleBordSepList()
           
 IPoint getDistLabels()
           
 double getDistLabelsX()
           
 double getDistLabelsY()
           
 java.awt.Color getDotFillingCol()
           
 java.util.List<java.awt.Color> getDotFillingColList()
           
 double getDotSizeDim()
           
 java.util.List<java.lang.Double> getDotSizeList()
           
 double getDotSizeNum()
           
 IDot.DotStyle getDotStyle()
           
 java.util.List<IDot.DotStyle> getDotStyleList()
           
 java.awt.Color getFillingCol()
           
 java.util.List<java.awt.Color> getFillingColList()
           
 IShape.FillingStyle getFillingStyle()
           
 java.util.List<IShape.FillingStyle> getFillingStyleList()
           
 double getGradAngle()
           
 java.util.List<java.lang.Double> getGradAngleList()
           
 java.awt.Color getGradColEnd()
           
 java.util.List<java.awt.Color> getGradColEndList()
           
 java.awt.Color getGradColStart()
           
 java.util.List<java.awt.Color> getGradColStartList()
           
 double getGradMidPt()
           
 java.util.List<java.lang.Double> getGradMidPtList()
           
 IPoint getGravityCentre()
           
 IPoint getGridEnd()
           
 java.util.List<IPoint> getGridEndList()
           
 double getGridEndX()
           
 double getGridEndY()
           
 java.util.List<java.lang.Integer> getGridLabelSizeList()
           
 double getGridMaxX()
           
 double getGridMaxY()
           
 double getGridMinX()
           
 double getGridMinY()
           
 java.util.List<IPoint> getGridOriginList()
           
 IPoint getGridStart()
           
 java.util.List<IPoint> getGridStartList()
           
 double getGridStartX()
           
 double getGridStartY()
           
 java.util.List<java.lang.Boolean> getGridXLabelSouthList()
           
 java.util.List<java.lang.Boolean> getGridYLabelWestList()
           
 double getHatchingsAngle()
           
 java.util.List<java.lang.Double> getHatchingsAngleList()
           
 java.awt.Color getHatchingsCol()
           
 java.util.List<java.awt.Color> getHatchingsColList()
           
 double getHatchingsSep()
           
 java.util.List<java.lang.Double> getHatchingsSepList()
           
 double getHatchingsWidth()
           
 java.util.List<java.lang.Double> getHatchingsWidthList()
           
 IPoint getIncrement()
           
 double getIncrementX()
           
 double getIncrementY()
           
 IAxes.PlottingStyle getLabelsDisplayed()
           
 int getLabelsSize()
           
 double getLineArc()
           
 java.util.List<java.lang.Double> getLineArcList()
           
 java.awt.Color getLineColour()
           
 java.util.List<java.awt.Color> getLineColourList()
           
 IShape.LineStyle getLineStyle()
           
 java.util.List<IShape.LineStyle> getLineStyleList()
           
 double getOriginX()
           
 double getOriginY()
           
 IPoint getPosition()
           
 double getRadius()
           
 double getRBracketNum()
           
 double getRotationAngle()
           
 java.util.List<java.lang.Double> getRotationAngleList()
           
 double getShadowAngle()
           
 java.util.List<java.lang.Double> getShadowAngleList()
           
 java.awt.Color getShadowCol()
           
 java.util.List<java.awt.Color> getShadowColList()
           
 double getShadowSize()
           
 java.util.List<java.lang.Double> getShadowSizeList()
           
 IShape getShapeAt(int i)
          Allows to get the shape located at the given position.
 java.util.List<IShape> getShapes()
           
 double getStep()
           
 double getTBarSizeDim()
           
 double getTBarSizeNum()
           
 java.lang.String getText()
           
 java.util.List<java.lang.String> getTextList()
           
 IText.TextPosition getTextPosition()
           
 java.util.List<IText.TextPosition> getTextPositionList()
           
 double getThickness()
           
 java.util.List<java.lang.Double> getThicknessList()
           
 IAxes.PlottingStyle getTicksDisplayed()
           
 double getTicksSize()
           
 IAxes.TicksStyle getTicksStyle()
           
 IPoint getTopLeftPoint()
           
 IPoint getTopRightPoint()
           
 double getX()
           
 double getY()
           
 boolean hasDbleBord()
           
 java.util.List<java.lang.Boolean> hasDbleBordList()
           
 boolean hasDot()
           
 boolean hasGradient()
           
 boolean hasHatchings()
           
 boolean hasShadow()
           
 java.util.List<java.lang.Boolean> hasShadowList()
           
 boolean isArrowable()
           
 boolean isBordersMovable()
           
 boolean isColourable()
           
 boolean isDbleBorderable()
           
 boolean isEmpty()
          Allows to know if the drawing is empty or not.
 boolean isFillable()
           
 boolean isInteriorStylable()
           
 boolean isLineStylable()
           
 boolean isRoundCorner()
           
 boolean isShadowable()
           
 boolean isShowOrigin()
           
 boolean isShowPtsable()
           
 boolean isThicknessable()
           
 boolean isXLabelSouth()
           
 boolean isYLabelWest()
           
 IShape removeShape(int i)
          Removes a shape of the drawing a the given position.
 boolean removeShape(IShape sh)
          Removes a shape of the drawing.
 void rotate(IPoint point, double angle)
          Rotates the shape.
 void scale(double x, double y, IShape.Position pos, java.awt.geom.Rectangle2D bound)
          Scales the shape where the move reference point is the bottom right point, and the fixation point the top left point.
 void setAngleEnd(double angleEnd)
           
 void setAngleEndList(java.util.List<java.lang.Double> values)
          Sets the ending angle of the arcable shapes of the group.
 void setAngleStart(double angleStart)
           
 void setAngleStartList(java.util.List<java.lang.Double> values)
          Sets the starting angle of the arcable shapes of the group.
 void setArcStyle(Arcable.ArcStyle type)
           
 void setArcStyleList(java.util.List<Arcable.ArcStyle> values)
          Sets the arc style of the arcable shapes of the group.
 void setArrowInset(double inset)
          Defines the inset of the arrow.
 void setArrowLength(double lgth)
          Defines the length of the arrow.
 void setArrowSizeDim(double arrowSizeDim)
          Sets the latex parameter arrowSize num.
 void setArrowSizeNum(double arrowSizeNum)
          Sets the latex parameter arrowSize num.
 void setArrowStyle(IArrow.ArrowStyle style, int position)
          Sets the style of the arrow at the given position.
 void setArrowStyleList(java.util.List<IArrow.ArrowStyle> values, int i)
          Sets the arrow style of the arrowable shapes of the group.
 void setAxesDistLabelsList(java.util.List<IPoint> values)
          Sets the distances between the labels of the axes contained by the group are displayed.
 void setAxesIncrementsList(java.util.List<IPoint> values)
          Sets the labels' increments of the axes contained by the group are displayed.
 void setAxesLabelsDisplayedList(java.util.List<IAxes.PlottingStyle> values)
          Sets how the labels of the axes contained by the group are displayed.
 void setAxesShowOriginList(java.util.List<java.lang.Boolean> values)
          Defines if the origin of the axes contained by the group are displayed.
 void setAxesStyle(IAxes.AxesStyle axesStyle)
           
 void setAxesStyleList(java.util.List<IAxes.AxesStyle> values)
          Sets the style of the axes contained by the group.
 void setAxesTicksDisplayedList(java.util.List<IAxes.PlottingStyle> values)
          Sets how the ticks of the axes contained by the group are displayed.
 void setAxesTicksSizeList(java.util.List<java.lang.Double> values)
          Sets the size of the axes' ticks contained by the group.
 void setAxesTicksStyleList(java.util.List<IAxes.TicksStyle> values)
          Sets the style of the axes' ticks contained by the group.
 void setBordersPosition(IShape.BorderPos position)
          Sets the position of the borders.
 void setBordersPositionList(java.util.List<IShape.BorderPos> list)
          Sets the border position of the shapes of the group.
 void setBracketNum(double bracketNum)
          Sets the latex parameter bracket num.
 void setDbleBordCol(java.awt.Color colour)
           
 void setDbleBordColList(java.util.List<java.awt.Color> values)
          Sets the double borders colour of the shapes of the group.
 void setDbleBordSep(double dbleBorderSep)
           
 void setDbleBordSepList(java.util.List<java.lang.Double> values)
          Sets the double border gap of the shapes of the group.
 void setDistLabels(IPoint distLabels)
           
 void setDistLabelsX(double distLabelsX)
           
 void setDistLabelsY(double distLabelsY)
           
 void setDotFillingCol(java.awt.Color fillingCol)
          Sets the filling colour of the dottable.
 void setDotFillingColList(java.util.List<java.awt.Color> values)
          Sets the filling colour of the dot shapes of the group.
 void setDotSizeDim(double dotSizeDim)
          Sets the latex parameter dotsize dim.
 void setDotSizeList(java.util.List<java.lang.Double> values)
          Sets the size of the dot shapes of the group.
 void setDotSizeNum(double dotSizeNum)
          Sets the latex parameter dotsize num.
 void setDotStyle(IDot.DotStyle style)
          Defines the style of the dot.
 void setDotStyleList(java.util.List<IDot.DotStyle> values)
          Sets the dot style of the dottable shapes of the group.
 void setFillingCol(java.awt.Color colour)
           
 void setFillingColList(java.util.List<java.awt.Color> values)
          Sets the filling colour of the shapes of the group.
 void setFillingStyle(IShape.FillingStyle style)
           
 void setFillingStyleList(java.util.List<IShape.FillingStyle> values)
          Sets the style of the filling of the shapes of the group.
 void setGradAngle(double gradAngle)
           
 void setGradAngleList(java.util.List<java.lang.Double> values)
          Sets the starting angle of the gradient of the shapes of the group.
 void setGradColEnd(java.awt.Color colour)
           
 void setGradColEndList(java.util.List<java.awt.Color> values)
          Sets the last gradient colour of the shapes of the group.
 void setGradColStart(java.awt.Color colour)
           
 void setGradColStartList(java.util.List<java.awt.Color> values)
          Sets the first gradient colour of the shapes of the group.
 void setGradMidPt(double gradMidPoint)
           
 void setGradMidPtList(java.util.List<java.lang.Double> values)
          Sets the middle point reference of the gradient of the shapes of the group.
 void setGridEnd(double x, double y)
           
 void setGridEndList(java.util.List<IPoint> values)
          Sets the ending points of the grid shapes of the group.
 void setGridEndX(double x)
           
 void setGridEndY(double y)
           
 void setGridLabelSizeList(java.util.List<java.lang.Integer> values)
          Sets the size of the labels of the grid shapes of the group.
 void setGridOriginList(java.util.List<IPoint> values)
          Sets the origin points of the grid shapes of the group.
 void setGridStart(double x, double y)
           
 void setGridStartList(java.util.List<IPoint> values)
          Sets the starting points of the grid shapes of the group.
 void setGridStartX(double x)
           
 void setGridStartY(double y)
           
 void setGridXLabelSouthList(java.util.List<java.lang.Boolean> values)
          Sets the Y-coordinate of the labels of the grid contained by the group.
 void setGridYLabelWestList(java.util.List<java.lang.Boolean> values)
          Sets the X-coordinate of the labels of the grid contained by the group.
 void setHasDbleBord(boolean dbleBorders)
           
 void setHasDbleBordList(java.util.List<java.lang.Boolean> values)
          Defines if the shapes of the group have double borders.
 void setHasShadow(boolean shadow)
           
 void setHasShadowList(java.util.List<java.lang.Boolean> values)
          Defines if the shapes of the group have a shadow.
 void setHatchingsAngle(double hatchingsAngle)
           
 void setHatchingsAngleList(java.util.List<java.lang.Double> values)
          Sets the hatchings angle of the shapes of the group.
 void setHatchingsCol(java.awt.Color colour)
           
 void setHatchingsColList(java.util.List<java.awt.Color> values)
          Sets the hatchings colour of the shapes of the group.
 void setHatchingsSep(double hatchingsSep)
           
 void setHatchingsSepList(java.util.List<java.lang.Double> values)
          Sets the hatchings gap of the shapes of the group.
 void setHatchingsWidth(double hatchingsWidth)
           
 void setHatchingsWidthList(java.util.List<java.lang.Double> values)
          Sets the hatchings width of the shapes of the group.
 void setIncrement(IPoint increment)
           
 void setIncrementX(double increment)
           
 void setIncrementY(double increment)
           
 void setLabelsDisplayed(IAxes.PlottingStyle labelsDisplayed)
           
 void setLabelsSize(int labelsSize)
          Defines the size of the labels.
 void setLineArc(double lineArc)
           
 void setLineArcList(java.util.List<java.lang.Double> values)
          Sets the line arc value of the line-arcable shapes of the group.
 void setLineColour(java.awt.Color lineColour)
           
 void setLineColourList(java.util.List<java.awt.Color> list)
          Sets the line colour of the shapes of the group.
 void setLineStyle(IShape.LineStyle style)
           
 void setLineStyleList(java.util.List<IShape.LineStyle> values)
          Sets the line style colour of the shapes of the group.
 void setModified(boolean modified)
          Sets the Modifiable object as modified.
 void setOrigin(double x, double y)
           
 void setOriginX(double x)
           
 void setOriginY(double y)
           
 void setPosition(double x, double y)
          Sets the position of the shape (the bottom-left point of the shape).
 void setPosition(IPoint pt)
          Sets the position of the shape (the bottom-left point of the shape).
 void setRadius(double radius)
          Defines the radius of the dot.
 void setRBracketNum(double rBracketNum)
          Sets the latex parameter rbracket num.
 void setRotationAngle(double rotationAngle)
           
 void setRotationAngleList(java.util.List<java.lang.Double> values)
          Sets the rotation angle of the shapes of the group.
 void setShadowAngle(double shadAngle)
           
 void setShadowAngleList(java.util.List<java.lang.Double> values)
          Sets the shadow angles of the shapes of the group.
 void setShadowCol(java.awt.Color colour)
           
 void setShadowColList(java.util.List<java.awt.Color> values)
          Sets the shadow colour of the shapes of the group.
 void setShadowSize(double shadSize)
           
 void setShadowSizeList(java.util.List<java.lang.Double> values)
          Sets the shadow sizes of the shapes of the group.
 void setShowOrigin(boolean showOrigin)
           
 void setTBarSizeDim(double tbarSizeDim)
          Sets the latex parameter tbarsize num.
 void setTBarSizeNum(double tbarSizeNum)
          Sets the latex parameter tbarsize num.
 void setText(java.lang.String text)
           
 void setTextList(java.util.List<java.lang.String> values)
          Sets the text content of the text shapes of the group.
 void setTextPosition(IText.TextPosition textPosition)
          Sets the text position of the text.
 void setTextPositionList(java.util.List<IText.TextPosition> values)
          Sets the text position of the text shapes of the group.
 void setThickness(double thickness)
           
 void setThicknessList(java.util.List<java.lang.Double> values)
          Sets the thickness of the shapes of the group.
 void setTicksDisplayed(IAxes.PlottingStyle ticksDisplayed)
           
 void setTicksSize(double ticksSize)
           
 void setTicksStyle(IAxes.TicksStyle ticksStyle)
           
 void setX(double x)
          Sets the X coordinate of the shape (of the bottom-left point of the shape).
 void setXLabelSouth(boolean isXLabelSouth)
           
 void setY(double y)
          Sets the Y coordinate of the shape (of the bottom-left point of the shape).
 void setYLabelWest(boolean isYLabelWest)
           
 int size()
          Allows to get the number of shapes that contains the drawing.
 void translate(double tx, double ty)
          Translates the shape.
 
Methods inherited from class net.sf.latexdraw.glib.models.impl.LShape
copy, copyArrows, copyPoints, getBorderGap, getDashSepBlack, getDashSepWhite, getDotSep, getFullBottomRightPoint, getFullTopLeftPoint, getId, getNbPoints, getOpacity, getPoints, getPtAt, getShadowGap, isFilled, isModified, isParametersEquals, isShowPts, mirrorHorizontal, mirrorVertical, scaleSetPoints, setDashSepBlack, setDashSepWhite, setDotSep, setFilled, setId, setNewId, setOpacity, setShowPts, shadowFillsShape
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.latexdraw.glib.models.interfaces.IShape
copy, getBorderGap, getDashSepBlack, getDashSepWhite, getDotSep, getFullBottomRightPoint, getFullTopLeftPoint, getId, getNbPoints, getOpacity, getPoints, getPtAt, getShadowGap, isFilled, isParametersEquals, isShowPts, mirrorHorizontal, mirrorVertical, setDashSepBlack, setDashSepWhite, setDotSep, setFilled, setId, setNewId, setOpacity, setShowPts, shadowFillsShape
 
Methods inherited from interface org.malai.properties.Modifiable
isModified
 

Field Detail

shapes

protected java.util.List<IShape> shapes
The set of shapes.

Constructor Detail

LGroup

protected LGroup(boolean uniqueID)
Creates a group of shapes.

Parameters:
uniqueID - True: the model will have a unique ID.
Method Detail

addShape

public void addShape(IShape sh)
Description copied from interface: ISetShapes
Adds a shape to the drawing.

Specified by:
addShape in interface ISetShapes
Parameters:
sh - The shape to add. Does nothing if the given shape is null.

addShape

public void addShape(IShape s,
                     int index)
Description copied from interface: ISetShapes
Adds a shape to the drawing at at given position.

Specified by:
addShape in interface ISetShapes
Parameters:
s - The shape to add. Does nothing if the given shape is null.
index - The position where the figure must be inserted. Does nothing if the given position is not valid.

clear

public void clear()
Description copied from interface: ISetShapes
Empties the drawing.

Specified by:
clear in interface ISetShapes

contains

public boolean contains(IShape sh)
Description copied from interface: ISetShapes
Allows to know if a shape is in the drawing.

Specified by:
contains in interface ISetShapes
Parameters:
sh - The shape to check.
Returns:
True if the shape is in the drawing. False when the given shape is null.

setThickness

public void setThickness(double thickness)
Specified by:
setThickness in interface IShape
Overrides:
setThickness in class LShape
Parameters:
thickness - the thickness to set.

getThickness

public double getThickness()
Specified by:
getThickness in interface IShape
Overrides:
getThickness in class LShape
Returns:
The thickness of the first thicknessable shape. Otherwise NaN is returned.

isThicknessable

public boolean isThicknessable()
Specified by:
isThicknessable in interface IShape
Overrides:
isThicknessable in class LShape
Returns:
True if the thickness of the shape can be changed.

getLineColour

public java.awt.Color getLineColour()
Specified by:
getLineColour in interface IShape
Overrides:
getLineColour in class LShape
Returns:
the lineColour.

isLineStylable

public boolean isLineStylable()
Specified by:
isLineStylable in interface IShape
Overrides:
isLineStylable in class LShape
Returns:
True if the line style of the shape can be changed.

getLineStyle

public IShape.LineStyle getLineStyle()
Specified by:
getLineStyle in interface IShape
Overrides:
getLineStyle in class LShape
Returns:
the lineStyle.

setLineStyle

public void setLineStyle(IShape.LineStyle style)
Specified by:
setLineStyle in interface IShape
Overrides:
setLineStyle in class LShape
Parameters:
style - the lineStyle to set.

isBordersMovable

public boolean isBordersMovable()
Specified by:
isBordersMovable in interface IShape
Overrides:
isBordersMovable in class LShape
Returns:
True if the borders of the shape can be moved.

getBordersPosition

public IShape.BorderPos getBordersPosition()
Specified by:
getBordersPosition in interface IShape
Overrides:
getBordersPosition in class LShape
Returns:
the bordersPosition.

setBordersPosition

public void setBordersPosition(IShape.BorderPos position)
Description copied from interface: IShape
Sets the position of the borders.

Specified by:
setBordersPosition in interface IShape
Overrides:
setBordersPosition in class LShape
Parameters:
position - The new position.

getLineArc

public double getLineArc()
Specified by:
getLineArc in interface ILineArcShape
Returns:
The line arc of the first shape that supports rounded corners. Otherwise NaN is returned.

setLineArc

public void setLineArc(double lineArc)
Specified by:
setLineArc in interface ILineArcShape
Parameters:
lineArc - the lineArc to set. Must be in [0,1]

containsRoundables

public boolean containsRoundables()
Specified by:
containsRoundables in interface IGroup
Returns:
True if one of the shapes of the group supports rounded corners.

isRoundCorner

public boolean isRoundCorner()
Specified by:
isRoundCorner in interface ILineArcShape
Returns:
True if one of the shape of the group has rounded corners.

setLineColour

public void setLineColour(java.awt.Color lineColour)
Specified by:
setLineColour in interface IShape
Overrides:
setLineColour in class LShape
Parameters:
lineColour - the lineColour to set.

setDbleBordCol

public void setDbleBordCol(java.awt.Color colour)
Specified by:
setDbleBordCol in interface IShape
Overrides:
setDbleBordCol in class LShape
Parameters:
colour - the dbleBordCol to set.

getDbleBordCol

public java.awt.Color getDbleBordCol()
Specified by:
getDbleBordCol in interface IShape
Overrides:
getDbleBordCol in class LShape
Returns:
the dbleBordCol.

hasDbleBord

public boolean hasDbleBord()
Specified by:
hasDbleBord in interface IShape
Overrides:
hasDbleBord in class LShape
Returns:
the hasDbleBord.

setHasDbleBord

public void setHasDbleBord(boolean dbleBorders)
Specified by:
setHasDbleBord in interface IShape
Overrides:
setHasDbleBord in class LShape
Parameters:
dbleBorders - the hasDbleBord to set.

isDbleBorderable

public boolean isDbleBorderable()
Specified by:
isDbleBorderable in interface IShape
Overrides:
isDbleBorderable in class LShape
Returns:
True if the shape can have a double border.

setDbleBordSep

public void setDbleBordSep(double dbleBorderSep)
Specified by:
setDbleBordSep in interface IShape
Overrides:
setDbleBordSep in class LShape
Parameters:
dbleBorderSep - the dbleBordSep to set. Must be greater or equal to 0.

getDbleBordSep

public double getDbleBordSep()
Specified by:
getDbleBordSep in interface IShape
Overrides:
getDbleBordSep in class LShape
Returns:
the dbleBordSep.

isShadowable

public boolean isShadowable()
Specified by:
isShadowable in interface IShape
Overrides:
isShadowable in class LShape
Returns:
True if the shape can have a shadow.

hasShadow

public boolean hasShadow()
Specified by:
hasShadow in interface IShape
Overrides:
hasShadow in class LShape
Returns:
the hasShadow.

setHasShadow

public void setHasShadow(boolean shadow)
Specified by:
setHasShadow in interface IShape
Overrides:
setHasShadow in class LShape
Parameters:
shadow - the hasShadow to set.

setShadowSize

public void setShadowSize(double shadSize)
Specified by:
setShadowSize in interface IShape
Overrides:
setShadowSize in class LShape
Parameters:
shadSize - the shadowSize to set. Must be greater than 0.

getShadowSize

public double getShadowSize()
Specified by:
getShadowSize in interface IShape
Overrides:
getShadowSize in class LShape
Returns:
the shadowSize in pixel.

setShadowAngle

public void setShadowAngle(double shadAngle)
Specified by:
setShadowAngle in interface IShape
Overrides:
setShadowAngle in class LShape
Parameters:
shadAngle - the shadowAngle to set. In radian.

getShadowAngle

public double getShadowAngle()
Specified by:
getShadowAngle in interface IShape
Overrides:
getShadowAngle in class LShape
Returns:
the shadowAngle in radian.

setShadowCol

public void setShadowCol(java.awt.Color colour)
Specified by:
setShadowCol in interface IShape
Overrides:
setShadowCol in class LShape
Parameters:
colour - the shadowCol to set.

getShadowCol

public java.awt.Color getShadowCol()
Specified by:
getShadowCol in interface IShape
Overrides:
getShadowCol in class LShape
Returns:
the shadowCol.

getFillingStyle

public IShape.FillingStyle getFillingStyle()
Specified by:
getFillingStyle in interface IShape
Overrides:
getFillingStyle in class LShape
Returns:
the fillingStyle.

setFillingStyle

public void setFillingStyle(IShape.FillingStyle style)
Specified by:
setFillingStyle in interface IShape
Overrides:
setFillingStyle in class LShape
Parameters:
style - the fillingStyle to set.

isFillable

public boolean isFillable()
Specified by:
isFillable in interface Dottable
Specified by:
isFillable in interface IShape
Overrides:
isFillable in class LShape
Returns:
True if the shape can have an interior colour.

isInteriorStylable

public boolean isInteriorStylable()
Specified by:
isInteriorStylable in interface IShape
Overrides:
isInteriorStylable in class LShape
Returns:
True if the interior of the shape can have a style (hatchings, gradient).

setFillingCol

public void setFillingCol(java.awt.Color colour)
Specified by:
setFillingCol in interface IShape
Overrides:
setFillingCol in class LShape
Parameters:
colour - the fillingCol to set.

getFillingCol

public java.awt.Color getFillingCol()
Specified by:
getFillingCol in interface IShape
Overrides:
getFillingCol in class LShape
Returns:
the fillingCol.

setHatchingsCol

public void setHatchingsCol(java.awt.Color colour)
Specified by:
setHatchingsCol in interface IShape
Overrides:
setHatchingsCol in class LShape
Parameters:
colour - the hatchingsCol to set.

getHatchingsCol

public java.awt.Color getHatchingsCol()
Specified by:
getHatchingsCol in interface IShape
Overrides:
getHatchingsCol in class LShape
Returns:
the hatchingsCol.

setGradColStart

public void setGradColStart(java.awt.Color colour)
Specified by:
setGradColStart in interface IShape
Overrides:
setGradColStart in class LShape
Parameters:
colour - the gradColStart to set.

getGradColStart

public java.awt.Color getGradColStart()
Specified by:
getGradColStart in interface IShape
Overrides:
getGradColStart in class LShape
Returns:
the gradColStart.

setGradColEnd

public void setGradColEnd(java.awt.Color colour)
Specified by:
setGradColEnd in interface IShape
Overrides:
setGradColEnd in class LShape
Parameters:
colour - the gradColEnd to set.

getGradColEnd

public java.awt.Color getGradColEnd()
Specified by:
getGradColEnd in interface IShape
Overrides:
getGradColEnd in class LShape
Returns:
the gradColEnd.

setGradAngle

public void setGradAngle(double gradAngle)
Specified by:
setGradAngle in interface IShape
Overrides:
setGradAngle in class LShape
Parameters:
gradAngle - the gradAngle to set. In radian.

getGradAngle

public double getGradAngle()
Specified by:
getGradAngle in interface IShape
Overrides:
getGradAngle in class LShape
Returns:
the gradAngle.

setGradMidPt

public void setGradMidPt(double gradMidPoint)
Specified by:
setGradMidPt in interface IShape
Overrides:
setGradMidPt in class LShape
Parameters:
gradMidPoint - the gradMidPt to set. Must be in [0,1].

getGradMidPt

public double getGradMidPt()
Specified by:
getGradMidPt in interface IShape
Overrides:
getGradMidPt in class LShape
Returns:
the gradMidPt.

getShapeAt

public IShape getShapeAt(int i)
Description copied from interface: ISetShapes
Allows to get the shape located at the given position.

Specified by:
getShapeAt in interface ISetShapes
Parameters:
i - The position of the figure (-1: the last shape of the drawing).
Returns:
The searched shape if it exists. Null if the given position is not valid.

getShapes

public java.util.List<IShape> getShapes()
Specified by:
getShapes in interface ISetShapes
Returns:
The shapes of the drawing.

isEmpty

public boolean isEmpty()
Description copied from interface: ISetShapes
Allows to know if the drawing is empty or not.

Specified by:
isEmpty in interface ISetShapes
Returns:
True if there is at least one shape in the drawing.

removeShape

public boolean removeShape(IShape sh)
Description copied from interface: ISetShapes
Removes a shape of the drawing.

Specified by:
removeShape in interface ISetShapes
Parameters:
sh - The shape to remove.
Returns:
true if the given shape is removed. False if the given shape is null.

removeShape

public IShape removeShape(int i)
Description copied from interface: ISetShapes
Removes a shape of the drawing a the given position.

Specified by:
removeShape in interface ISetShapes
Parameters:
i - the position of the shape in the vector (-1: the last shape of the vector).
Returns:
The deleted shape if it exists. Null if the given position is not valid.

size

public int size()
Description copied from interface: ISetShapes
Allows to get the number of shapes that contains the drawing.

Specified by:
size in interface ISetShapes
Returns:
The number of shapes in the drawing.

duplicate

public IGroup duplicate()
Duplicates the group. Does not duplicate the shapes it contains.

Specified by:
duplicate in interface IAxes
Specified by:
duplicate in interface IGroup
Specified by:
duplicate in interface IShape
Specified by:
duplicate in interface IText
Overrides:
duplicate in class LShape
Returns:
The duplicata.

duplicate

public IGroup duplicate(boolean duplicateShapes)
Description copied from interface: IGroup
Duplicates the group of shapes.

Specified by:
duplicate in interface IGroup
Parameters:
duplicateShapes - True: the shapes will be duplicated as well.
Returns:
The duplicated group of shapes.

getHatchingsAngle

public double getHatchingsAngle()
Specified by:
getHatchingsAngle in interface IShape
Overrides:
getHatchingsAngle in class LShape
Returns:
the hatchingsAngle.

getHatchingsSep

public double getHatchingsSep()
Specified by:
getHatchingsSep in interface IShape
Overrides:
getHatchingsSep in class LShape
Returns:
the hatchingsSep.

getHatchingsWidth

public double getHatchingsWidth()
Specified by:
getHatchingsWidth in interface IShape
Overrides:
getHatchingsWidth in class LShape
Returns:
the hatchingsWidth.

setHatchingsAngle

public void setHatchingsAngle(double hatchingsAngle)
Specified by:
setHatchingsAngle in interface IShape
Overrides:
setHatchingsAngle in class LShape
Parameters:
hatchingsAngle - the hatchingsAngle to set. In radian.

setHatchingsSep

public void setHatchingsSep(double hatchingsSep)
Specified by:
setHatchingsSep in interface IShape
Overrides:
setHatchingsSep in class LShape
Parameters:
hatchingsSep - the hatchingsSep to set. Must be greater or equal than 0.

setHatchingsWidth

public void setHatchingsWidth(double hatchingsWidth)
Specified by:
setHatchingsWidth in interface IShape
Overrides:
setHatchingsWidth in class LShape
Parameters:
hatchingsWidth - the hatchingsWidth to set. Must be greater than 0.

isArrowable

public boolean isArrowable()
Specified by:
isArrowable in interface IShape
Overrides:
isArrowable in class LShape
Returns:
True if the shape can have arrows.

getArrowAt

public IArrow getArrowAt(int position)
Specified by:
getArrowAt in interface IShape
Overrides:
getArrowAt in class LShape
Parameters:
position - The position of the wanted arrow (-1 for the last arrow).
Returns:
The arrow at the given position or null if the position is not valid.

getArrows

public java.util.List<IArrow> getArrows()
Specified by:
getArrows in interface IShape
Overrides:
getArrows in class LShape
Returns:
the arrows.

getArrowLine

public ILine getArrowLine(IArrow arrow)
Specified by:
getArrowLine in interface IShape
Overrides:
getArrowLine in class LShape
Parameters:
arrow - The arrow to analyse.
Returns:
The line that will be used to place the arrow.

setDotSizeDim

public void setDotSizeDim(double dotSizeDim)
Description copied from interface: IArrowable
Sets the latex parameter dotsize dim.

Specified by:
setDotSizeDim in interface IArrowable
Overrides:
setDotSizeDim in class LShape
Parameters:
dotSizeDim - The new dotsize dim.

setDotSizeNum

public void setDotSizeNum(double dotSizeNum)
Description copied from interface: IArrowable
Sets the latex parameter dotsize num.

Specified by:
setDotSizeNum in interface IArrowable
Overrides:
setDotSizeNum in class LShape
Parameters:
dotSizeNum - The new dotsize num.

setTBarSizeNum

public void setTBarSizeNum(double tbarSizeNum)
Description copied from interface: IArrowable
Sets the latex parameter tbarsize num.

Specified by:
setTBarSizeNum in interface IArrowable
Overrides:
setTBarSizeNum in class LShape
Parameters:
tbarSizeNum - The new tbarsize num.

setTBarSizeDim

public void setTBarSizeDim(double tbarSizeDim)
Description copied from interface: IArrowable
Sets the latex parameter tbarsize num.

Specified by:
setTBarSizeDim in interface IArrowable
Overrides:
setTBarSizeDim in class LShape
Parameters:
tbarSizeDim - The new tbarsize num.

getTBarSizeDim

public double getTBarSizeDim()
Specified by:
getTBarSizeDim in interface IArrowable
Overrides:
getTBarSizeDim in class LShape
Returns:
The tbarsize dim parameter.

getTBarSizeNum

public double getTBarSizeNum()
Specified by:
getTBarSizeNum in interface IArrowable
Overrides:
getTBarSizeNum in class LShape
Returns:
The tbarsize num parameter.

setRBracketNum

public void setRBracketNum(double rBracketNum)
Description copied from interface: IArrowable
Sets the latex parameter rbracket num.

Specified by:
setRBracketNum in interface IArrowable
Overrides:
setRBracketNum in class LShape
Parameters:
rBracketNum - The new rbracket num.

setBracketNum

public void setBracketNum(double bracketNum)
Description copied from interface: IArrowable
Sets the latex parameter bracket num.

Specified by:
setBracketNum in interface IArrowable
Overrides:
setBracketNum in class LShape
Parameters:
bracketNum - The new bracket num.

setArrowLength

public void setArrowLength(double lgth)
Description copied from interface: IArrowable
Defines the length of the arrow.

Specified by:
setArrowLength in interface IArrowable
Overrides:
setArrowLength in class LShape
Parameters:
lgth - The new length of the arrow.

setArrowSizeDim

public void setArrowSizeDim(double arrowSizeDim)
Description copied from interface: IArrowable
Sets the latex parameter arrowSize num.

Specified by:
setArrowSizeDim in interface IArrowable
Overrides:
setArrowSizeDim in class LShape
Parameters:
arrowSizeDim - The new arrowSize num.

setArrowSizeNum

public void setArrowSizeNum(double arrowSizeNum)
Description copied from interface: IArrowable
Sets the latex parameter arrowSize num.

Specified by:
setArrowSizeNum in interface IArrowable
Overrides:
setArrowSizeNum in class LShape
Parameters:
arrowSizeNum - The new arrowSize num.

setArrowInset

public void setArrowInset(double inset)
Description copied from interface: IArrowable
Defines the inset of the arrow.

Specified by:
setArrowInset in interface IArrowable
Overrides:
setArrowInset in class LShape
Parameters:
inset - The new inset.

getDotSizeDim

public double getDotSizeDim()
Specified by:
getDotSizeDim in interface IArrowable
Overrides:
getDotSizeDim in class LShape
Returns:
The dotsize dim parameter.

getDotSizeNum

public double getDotSizeNum()
Specified by:
getDotSizeNum in interface IArrowable
Overrides:
getDotSizeNum in class LShape
Returns:
The dotsize num parameter.

getBracketNum

public double getBracketNum()
Specified by:
getBracketNum in interface IArrowable
Overrides:
getBracketNum in class LShape
Returns:
The bracket num parameter.

getArrowSizeNum

public double getArrowSizeNum()
Specified by:
getArrowSizeNum in interface IArrowable
Overrides:
getArrowSizeNum in class LShape
Returns:
The arrowsize num parameter.

getArrowSizeDim

public double getArrowSizeDim()
Specified by:
getArrowSizeDim in interface IArrowable
Overrides:
getArrowSizeDim in class LShape
Returns:
The arrowsize dim parameter.

getArrowInset

public double getArrowInset()
Specified by:
getArrowInset in interface IArrowable
Overrides:
getArrowInset in class LShape
Returns:
The inset of the arrow.

getArrowLength

public double getArrowLength()
Specified by:
getArrowLength in interface IArrowable
Overrides:
getArrowLength in class LShape
Returns:
The length of the arrow.

getRBracketNum

public double getRBracketNum()
Specified by:
getRBracketNum in interface IArrowable
Overrides:
getRBracketNum in class LShape
Returns:
The rbracket parameter.

isShowPtsable

public boolean isShowPtsable()
Specified by:
isShowPtsable in interface IShape
Overrides:
isShowPtsable in class LShape
Returns:
True if the points of the shape can be displayed.

translate

public void translate(double tx,
                      double ty)
Description copied from interface: IShape
Translates the shape.

Specified by:
translate in interface IShape
Overrides:
translate in class LShape
Parameters:
tx - The X translation.
ty - The Y translation.

getTextPosition

public IText.TextPosition getTextPosition()
Specified by:
getTextPosition in interface IText
Returns:
The text position of the text (bottom-right, top-left, etc.).

setTextPosition

public void setTextPosition(IText.TextPosition textPosition)
Description copied from interface: IText
Sets the text position of the text.

Specified by:
setTextPosition in interface IText
Parameters:
textPosition - The new text position of the text.

getText

public java.lang.String getText()
Specified by:
getText in interface IText
Returns:
the text.

setText

public void setText(java.lang.String text)
Specified by:
setText in interface IText
Parameters:
text - the text to set.

getX

public double getX()
Specified by:
getX in interface IPositionShape
Returns:
The X coordinate of the shape (of the bottom-left point of the shape).

getY

public double getY()
Specified by:
getY in interface IPositionShape
Returns:
The Y coordinate of the shape (of the bottom-left point of the shape).

getPosition

public IPoint getPosition()
Specified by:
getPosition in interface IPositionShape
Returns:
The position of the shape (the bottom-left point of the shape).

setPosition

public void setPosition(IPoint pt)
Description copied from interface: IPositionShape
Sets the position of the shape (the bottom-left point of the shape).

Specified by:
setPosition in interface IPositionShape
Parameters:
pt - The new position of the shape.

setPosition

public void setPosition(double x,
                        double y)
Description copied from interface: IPositionShape
Sets the position of the shape (the bottom-left point of the shape).

Specified by:
setPosition in interface IPositionShape
Parameters:
x - The X coordinate of the new position of the shape.
y - The Y coordinate of the new position of the shape.

setX

public void setX(double x)
Description copied from interface: IPositionShape
Sets the X coordinate of the shape (of the bottom-left point of the shape).

Specified by:
setX in interface IPositionShape
Parameters:
x - The X coordinate of the shape.

setY

public void setY(double y)
Description copied from interface: IPositionShape
Sets the Y coordinate of the shape (of the bottom-left point of the shape).

Specified by:
setY in interface IPositionShape
Parameters:
y - The Y coordinate of the shape.

containsTexts

public boolean containsTexts()
Specified by:
containsTexts in interface IGroup
Returns:
True if one of the shapes of the group is a text.

addToRotationAngle

public void addToRotationAngle(IPoint gravCentre,
                               double angle)
Description copied from interface: IShape
Adds the given angle to the current rotation angle.

Specified by:
addToRotationAngle in interface IShape
Overrides:
addToRotationAngle in class LShape
Parameters:
gravCentre - The gravity centre of the rotation. If null, the gravity centre of the shape will be used.
angle - The angle to add. In radian.

setRotationAngle

public void setRotationAngle(double rotationAngle)
Specified by:
setRotationAngle in interface IShape
Overrides:
setRotationAngle in class LShape
Parameters:
rotationAngle - the rotationAngle to set. In radian.

rotate

public void rotate(IPoint point,
                   double angle)
Description copied from interface: IShape
Rotates the shape.

Specified by:
rotate in interface IShape
Overrides:
rotate in class LShape
Parameters:
point - The rotation centre.
angle - The angle of rotation in radians.

getRotationAngle

public double getRotationAngle()
Specified by:
getRotationAngle in interface IShape
Overrides:
getRotationAngle in class LShape
Returns:
the rotationAngle.

getGravityCentre

public IPoint getGravityCentre()
Specified by:
getGravityCentre in interface IShape
Overrides:
getGravityCentre in class LShape
Returns:
the gravityCentre.

getBottomRightPoint

public IPoint getBottomRightPoint()
Specified by:
getBottomRightPoint in interface IShape
Overrides:
getBottomRightPoint in class LShape
Returns:
The bottom right point of the shape. It does not take account of the thickness, the rotation angle, the double border, nor any parameters; only the points of the shape are used to compute the returned point.

getBottomLeftPoint

public IPoint getBottomLeftPoint()
Specified by:
getBottomLeftPoint in interface IShape
Overrides:
getBottomLeftPoint in class LShape
Returns:
The bottom left point of the shape. It does not take account of the thickness, the rotation angle, the double border, nor any parameters; only the points of the shape are used to compute the returned point.

getTopLeftPoint

public IPoint getTopLeftPoint()
Specified by:
getTopLeftPoint in interface IShape
Overrides:
getTopLeftPoint in class LShape
Returns:
The top left point of the shape. It does not take account of the thickness, the rotation angle, the double border, nor any parameters; only the points of the shape are used to compute the returned point.

getTopRightPoint

public IPoint getTopRightPoint()
Specified by:
getTopRightPoint in interface IShape
Overrides:
getTopRightPoint in class LShape
Returns:
The top right point of the shape. It does not take account of the thickness, the rotation angle, the double border, nor any parameters; only the points of the shape are used to compute the returned point.

hasHatchings

public boolean hasHatchings()
Specified by:
hasHatchings in interface IShape
Overrides:
hasHatchings in class LShape
Returns:
True if the shape has hatchings.

hasGradient

public boolean hasGradient()
Specified by:
hasGradient in interface IShape
Overrides:
hasGradient in class LShape
Returns:
True if the shape has a gradient.

setModified

public void setModified(boolean modified)
Description copied from interface: Modifiable
Sets the Modifiable object as modified.

Specified by:
setModified in interface Modifiable
Overrides:
setModified in class LShape
Parameters:
modified - True: the element is will tagged as modified.

setArrowStyle

public void setArrowStyle(IArrow.ArrowStyle style,
                          int position)
Description copied from interface: IShape
Sets the style of the arrow at the given position.

Specified by:
setArrowStyle in interface IShape
Overrides:
setArrowStyle in class LShape
Parameters:
style - The style to set.
position - The position of the arrow to modify.

getArrowStyle

public IArrow.ArrowStyle getArrowStyle(int position)
Specified by:
getArrowStyle in interface IShape
Overrides:
getArrowStyle in class LShape
Parameters:
position - The position of the arrow to use.
Returns:
The style of the arrow at the given position.

getDotFillingCol

public java.awt.Color getDotFillingCol()
Specified by:
getDotFillingCol in interface Dottable
Returns:
The filling colour of the dottable or null if not fillable.

setDotFillingCol

public void setDotFillingCol(java.awt.Color fillingCol)
Description copied from interface: Dottable
Sets the filling colour of the dottable.

Specified by:
setDotFillingCol in interface Dottable
Parameters:
fillingCol - its new colour.

getDotStyle

public IDot.DotStyle getDotStyle()
Specified by:
getDotStyle in interface Dottable
Returns:
The style of the dot.

setDotStyle

public void setDotStyle(IDot.DotStyle style)
Description copied from interface: Dottable
Defines the style of the dot.

Specified by:
setDotStyle in interface Dottable
Parameters:
style - The new style.

getRadius

public double getRadius()
Specified by:
getRadius in interface Dottable
Returns:
the radius of the dot.

setRadius

public void setRadius(double radius)
Description copied from interface: Dottable
Defines the radius of the dot.

Specified by:
setRadius in interface Dottable
Parameters:
radius - the radius to set. Must be greater than 0.

getArcStyle

public Arcable.ArcStyle getArcStyle()
Specified by:
getArcStyle in interface Arcable
Returns:
the style of the arc.

setArcStyle

public void setArcStyle(Arcable.ArcStyle type)
Specified by:
setArcStyle in interface Arcable
Parameters:
type - the arc style to set.

getAngleStart

public double getAngleStart()
Specified by:
getAngleStart in interface Arcable
Returns:
the angleStart.

setAngleStart

public void setAngleStart(double angleStart)
Specified by:
setAngleStart in interface Arcable
Parameters:
angleStart - the angleStart to set.

getAngleEnd

public double getAngleEnd()
Specified by:
getAngleEnd in interface Arcable
Returns:
the angleEnd.

setAngleEnd

public void setAngleEnd(double angleEnd)
Specified by:
setAngleEnd in interface Arcable
Parameters:
angleEnd - the angleEnd to set.

scale

public void scale(double x,
                  double y,
                  IShape.Position pos,
                  java.awt.geom.Rectangle2D bound)
Description copied from interface: IShape
Scales the shape where the move reference point is the bottom right point, and the fixation point the top left point.

Specified by:
scale in interface IShape
Overrides:
scale in class LShape
Parameters:
x - The X scale factor, in ]0,double].
y - The Y scale factor, in ]0,double].
pos - The position of the reference point: if the reference point is top-left point, then the scale will extend or reduce the shape at the bottom-right point. If the reference position is NORTH or SOUTH the sx parameter will not be used. If it is EAST or WEST the sy parameter will not be used.
bound - The bound (e.g. the border of the selected shapes) used to compute the scaling.

hasDot

public boolean hasDot()
Specified by:
hasDot in interface Dottable
Returns:
True if the dottable has or is a dot.

getBordersPositionList

public java.util.List<IShape.BorderPos> getBordersPositionList()
Specified by:
getBordersPositionList in interface IGroup
Returns:
The list of the border positions of the shapes contained by the group. If a shape of the group does not support the border position property, null is added to the list. The list cannot be null.

getLineColourList

public java.util.List<java.awt.Color> getLineColourList()
Specified by:
getLineColourList in interface IGroup
Returns:
The list of line colours of the shapes contained by the group. If a shape of the group does not support the line colour property, null is added to the list. The list cannot be null.

setBordersPositionList

public void setBordersPositionList(java.util.List<IShape.BorderPos> list)
Description copied from interface: IGroup
Sets the border position of the shapes of the group.

Specified by:
setBordersPositionList in interface IGroup
Parameters:
list - The list of values to use. Its must must equals the number of shapes of the group. If an element of the list is null, its corresponding shape will not be set.

setLineColourList

public void setLineColourList(java.util.List<java.awt.Color> list)
Description copied from interface: IGroup
Sets the line colour of the shapes of the group.

Specified by:
setLineColourList in interface IGroup
Parameters:
list - The list of values to use. Its must must equals the number of shapes of the group. If an element of the list is null, its corresponding shape will not be set.

getAngleStartList

public java.util.List<java.lang.Double> getAngleStartList()
Specified by:
getAngleStartList in interface IGroup
Returns:
The list of start angle of the arc shapes contained by the group. If a shape of the group does not support the start angle property, null is added to the list. The list cannot be null.

getAngleEndList

public java.util.List<java.lang.Double> getAngleEndList()
Specified by:
getAngleEndList in interface IGroup
Returns:
The list of end angle of the arc shapes contained by the group. If a shape of the group does not support the end angle property, null is added to the list. The list cannot be null.

getArcStyleList

public java.util.List<Arcable.ArcStyle> getArcStyleList()
Specified by:
getArcStyleList in interface IGroup
Returns:
The list of arc styles of the arc shapes contained by the group. If a shape of the group does not support the arc style property, null is added to the list. The list cannot be null.

getArrowStyleList

public java.util.List<IArrow.ArrowStyle> getArrowStyleList(int i)
Specified by:
getArrowStyleList in interface IGroup
Parameters:
i - The index of the arrows to get.
Returns:
The list of arrow style of the shapes contained by the group. If a shape of the group does not support the arrow style property, null is added to the list. The list cannot be null.

getRotationAngleList

public java.util.List<java.lang.Double> getRotationAngleList()
Specified by:
getRotationAngleList in interface IGroup
Returns:
The list of the rotation angles of the shapes contained by the group. If a shape of the group does not support the rotation angle property, null is added to the list. The list cannot be null.

getTextPositionList

public java.util.List<IText.TextPosition> getTextPositionList()
Specified by:
getTextPositionList in interface IGroup
Returns:
The list of the text positions the shapes contained by the group. If a shape of the group does not support the text position property, null is added to the list. The list cannot be null.

getTextList

public java.util.List<java.lang.String> getTextList()
Specified by:
getTextList in interface IGroup
Returns:
The list of the text contents of the shapes contained by the group. If a shape of the group does not support the text property, null is added to the list. The list cannot be null.

getHatchingsAngleList

public java.util.List<java.lang.Double> getHatchingsAngleList()
Specified by:
getHatchingsAngleList in interface IGroup
Returns:
The list of the hatchings angle of the shapes contained by the group. If a shape of the group does not support the hatchings angle property, null is added to the list. The list cannot be null.

getHatchingsWidthList

public java.util.List<java.lang.Double> getHatchingsWidthList()
Specified by:
getHatchingsWidthList in interface IGroup
Returns:
The list of the hatchings width of the shapes contained by the group. If a shape of the group does not support the hatchings width property, null is added to the list. The list cannot be null.

getHatchingsSepList

public java.util.List<java.lang.Double> getHatchingsSepList()
Specified by:
getHatchingsSepList in interface IGroup
Returns:
The list of the hatchings size of the shapes contained by the group. If a shape of the group does not support the hatchings size property, null is added to the list. The list cannot be null.

getGradAngleList

public java.util.List<java.lang.Double> getGradAngleList()
Specified by:
getGradAngleList in interface IGroup
Returns:
The list of the gradient angle of the shapes contained by the group. If a shape of the group does not support the gradient angle property, null is added to the list. The list cannot be null.

getGradMidPtList

public java.util.List<java.lang.Double> getGradMidPtList()
Specified by:
getGradMidPtList in interface IGroup
Returns:
The list of the gradient middle point of the shapes contained by the group. If a shape of the group does not support the gradient middle point property, null is added to the list. The list cannot be null.

getLineArcList

public java.util.List<java.lang.Double> getLineArcList()
Specified by:
getLineArcList in interface IGroup
Returns:
The list of the line arc values of the shapes contained by the group. If a shape of the group does not support the line arc property, null is added to the list. The list cannot be null.

getFillingColList

public java.util.List<java.awt.Color> getFillingColList()
Specified by:
getFillingColList in interface IGroup
Returns:
The list of filling colours of the shapes contained by the group. If a shape of the group does not support the filling colour property, null is added to the list. The list cannot be null.

getHatchingsColList

public java.util.List<java.awt.Color> getHatchingsColList()
Specified by:
getHatchingsColList in interface IGroup
Returns:
The list of hatchings colours of the shapes contained by the group. If a shape of the group does not support the hatchings colour property, null is added to the list. The list cannot be null.

hasDbleBordList

public java.util.List<java.lang.Boolean> hasDbleBordList()
Specified by:
hasDbleBordList in interface IGroup
Returns:
The list of boolean defining if the shapes contained by the group have double borders. If a shape of the group does not support the double border property, null is added to the list. The list cannot be null.

getDbleBordSepList

public java.util.List<java.lang.Double> getDbleBordSepList()
Specified by:
getDbleBordSepList in interface IGroup
Returns:
The list of double border width of the shapes contained by the group. If a shape of the group does not support the double border width property, null is added to the list. The list cannot be null.

getDbleBordColList

public java.util.List<java.awt.Color> getDbleBordColList()
Specified by:
getDbleBordColList in interface IGroup
Returns:
The list of double border colours of the shapes contained by the group. If a shape of the group does not support the double border colour property, null is added to the list. The list cannot be null.

hasShadowList

public java.util.List<java.lang.Boolean> hasShadowList()
Specified by:
hasShadowList in interface IGroup
Returns:
The list of boolean defining if the shapes contained by the group have shadow. If a shape of the group does not support the shadow property, null is added to the list. The list cannot be null.

getShadowSizeList

public java.util.List<java.lang.Double> getShadowSizeList()
Specified by:
getShadowSizeList in interface IGroup
Returns:
The list of shadow size of the shapes contained by the group. If a shape of the group does not support the shadow size property, null is added to the list. The list cannot be null.

getShadowAngleList

public java.util.List<java.lang.Double> getShadowAngleList()
Specified by:
getShadowAngleList in interface IGroup
Returns:
The list of shadow angle of the shapes contained by the group. If a shape of the group does not support the shadow angle property, null is added to the list. The list cannot be null.

getShadowColList

public java.util.List<java.awt.Color> getShadowColList()
Specified by:
getShadowColList in interface IGroup
Returns:
The list of shadow colours of the shapes contained by the group. If a shape of the group does not support the shadow colour property, null is added to the list. The list cannot be null.

getGradColStartList

public java.util.List<java.awt.Color> getGradColStartList()
Specified by:
getGradColStartList in interface IGroup
Returns:
The list of ending gradient colours of the shapes contained by the group. If a shape of the group does not support the ending gradient colour property, null is added to the list. The list cannot be null.

getGradColEndList

public java.util.List<java.awt.Color> getGradColEndList()
Specified by:
getGradColEndList in interface IGroup
Returns:
The list of starting gradient colours of the shapes contained by the group. If a shape of the group does not support the starting gradient colour property, null is added to the list. The list cannot be null.

getThicknessList

public java.util.List<java.lang.Double> getThicknessList()
Specified by:
getThicknessList in interface IGroup
Returns:
The list of the thicknesses of the shapes contained by the group. If a shape of the group does not support the thickness property, null is added to the list. The list cannot be null.

getFillingStyleList

public java.util.List<IShape.FillingStyle> getFillingStyleList()
Specified by:
getFillingStyleList in interface IGroup
Returns:
The list of the filling styles of the shapes contained by the group. If a shape of the group does not support the filling style property, null is added to the list. The list cannot be null.

getLineStyleList

public java.util.List<IShape.LineStyle> getLineStyleList()
Specified by:
getLineStyleList in interface IGroup
Returns:
The list of the line styles of the shapes contained by the group. If a shape of the group does not support the line style property, null is added to the list. The list cannot be null.

getDotFillingColList

public java.util.List<java.awt.Color> getDotFillingColList()
Specified by:
getDotFillingColList in interface IGroup
Returns:
The list of filling colours of the dot shapes contained by the group. If a shape of the group does not support the dot filling colour property, null is added to the list. The list cannot be null.

getDotStyleList

public java.util.List<IDot.DotStyle> getDotStyleList()
Specified by:
getDotStyleList in interface IGroup
Returns:
The list of the dot styles of the shapes contained by the group. If a shape of the group does not support the dot style property, null is added to the list. The list cannot be null.

getDotSizeList

public java.util.List<java.lang.Double> getDotSizeList()
Specified by:
getDotSizeList in interface IGroup
Returns:
The list of the dot sizes of the shapes contained by the group. If a shape of the group does not support the dot size property, null is added to the list. The list cannot be null.

setAngleStartList

public void setAngleStartList(java.util.List<java.lang.Double> values)
Description copied from interface: IGroup
Sets the starting angle of the arcable shapes of the group.

Specified by:
setAngleStartList in interface IGroup
Parameters:
values - The list of values to use. Its must must equals the number of shapes of the group. If an element of the list is null, its corresponding shape will not be set.

setDotStyleList

public void setDotStyleList(java.util.List<IDot.DotStyle> values)
Description copied from interface: IGroup
Sets the dot style of the dottable shapes of the group.

Specified by:
setDotStyleList in interface IGroup
Parameters:
values - The list of values to use. Its must must equals the number of shapes of the group. If an element of the list is null, its corresponding shape will not be set.

setAngleEndList

public void setAngleEndList(java.util.List<java.lang.Double> values)
Description copied from interface: IGroup
Sets the ending angle of the arcable shapes of the group.

Specified by:
setAngleEndList in interface IGroup
Parameters:
values - The list of values to use. Its must must equals the number of shapes of the group. If an element of the list is null, its corresponding shape will not be set.

setArcStyleList

public void setArcStyleList(java.util.List<Arcable.ArcStyle> values)
Description copied from interface: IGroup
Sets the arc style of the arcable shapes of the group.

Specified by:
setArcStyleList in interface IGroup
Parameters:
values - The list of values to use. Its must must equals the number of shapes of the group. If an element of the list is null, its corresponding shape will not be set.

setArrowStyleList

public void setArrowStyleList(java.util.List<IArrow.ArrowStyle> values,
                              int i)
Description copied from interface: IGroup
Sets the arrow style of the arrowable shapes of the group.

Specified by:
setArrowStyleList in interface IGroup
Parameters:
values - The list of values to use. Its must must equals the number of shapes of the group. If an element of the list is null, its corresponding shape will not be set.
i - The index of the arrow to set.

setRotationAngleList

public void setRotationAngleList(java.util.List<java.lang.Double> values)
Description copied from interface: IGroup
Sets the rotation angle of the shapes of the group.

Specified by:
setRotationAngleList in interface IGroup
Parameters:
values - The list of values to use. Its must must equals the number of shapes of the group. If an element of the list is null, its corresponding shape will not be set.

setTextPositionList

public void setTextPositionList(java.util.List<IText.TextPosition> values)
Description copied from interface: IGroup
Sets the text position of the text shapes of the group.

Specified by:
setTextPositionList in interface IGroup
Parameters:
values - The list of values to use. Its must must equals the number of shapes of the group. If an element of the list is null, its corresponding shape will not be set.

setTextList

public void setTextList(java.util.List<java.lang.String> values)
Description copied from interface: IGroup
Sets the text content of the text shapes of the group.

Specified by:
setTextList in interface IGroup
Parameters:
values - The list of values to use. Its must must equals the number of shapes of the group. If an element of the list is null, its corresponding shape will not be set.

setHatchingsAngleList

public void setHatchingsAngleList(java.util.List<java.lang.Double> values)
Description copied from interface: IGroup
Sets the hatchings angle of the shapes of the group.

Specified by:
setHatchingsAngleList in interface IGroup
Parameters:
values - The list of values to use. Its must must equals the number of shapes of the group. If an element of the list is null, its corresponding shape will not be set.

setHatchingsWidthList

public void setHatchingsWidthList(java.util.List<java.lang.Double> values)
Description copied from interface: IGroup
Sets the hatchings width of the shapes of the group.

Specified by:
setHatchingsWidthList in interface IGroup
Parameters:
values - The list of values to use. Its must must equals the number of shapes of the group. If an element of the list is null, its corresponding shape will not be set.

setHatchingsSepList

public void setHatchingsSepList(java.util.List<java.lang.Double> values)
Description copied from interface: IGroup
Sets the hatchings gap of the shapes of the group.

Specified by:
setHatchingsSepList in interface IGroup
Parameters:
values - The list of values to use. Its must must equals the number of shapes of the group. If an element of the list is null, its corresponding shape will not be set.

setGradAngleList

public void setGradAngleList(java.util.List<java.lang.Double> values)
Description copied from interface: IGroup
Sets the starting angle of the gradient of the shapes of the group.

Specified by:
setGradAngleList in interface IGroup
Parameters:
values - The list of values to use. Its must must equals the number of shapes of the group. If an element of the list is null, its corresponding shape will not be set.

setGradMidPtList

public void setGradMidPtList(java.util.List<java.lang.Double> values)
Description copied from interface: IGroup
Sets the middle point reference of the gradient of the shapes of the group.

Specified by:
setGradMidPtList in interface IGroup
Parameters:
values - The list of values to use. Its must must equals the number of shapes of the group. If an element of the list is null, its corresponding shape will not be set.

setLineArcList

public void setLineArcList(java.util.List<java.lang.Double> values)
Description copied from interface: IGroup
Sets the line arc value of the line-arcable shapes of the group.

Specified by:
setLineArcList in interface IGroup
Parameters:
values - The list of values to use. Its must must equals the number of shapes of the group. If an element of the list is null, its corresponding shape will not be set.

setFillingColList

public void setFillingColList(java.util.List<java.awt.Color> values)
Description copied from interface: IGroup
Sets the filling colour of the shapes of the group.

Specified by:
setFillingColList in interface IGroup
Parameters:
values - The list of values to use. Its must must equals the number of shapes of the group. If an element of the list is null, its corresponding shape will not be set.

setHatchingsColList

public void setHatchingsColList(java.util.List<java.awt.Color> values)
Description copied from interface: IGroup
Sets the hatchings colour of the shapes of the group.

Specified by:
setHatchingsColList in interface IGroup
Parameters:
values - The list of values to use. Its must must equals the number of shapes of the group. If an element of the list is null, its corresponding shape will not be set.

setHasDbleBordList

public void setHasDbleBordList(java.util.List<java.lang.Boolean> values)
Description copied from interface: IGroup
Defines if the shapes of the group have double borders.

Specified by:
setHasDbleBordList in interface IGroup
Parameters:
values - The list of values to use. Its must must equals the number of shapes of the group. If an element of the list is null, its corresponding shape will not be set.

setDbleBordSepList

public void setDbleBordSepList(java.util.List<java.lang.Double> values)
Description copied from interface: IGroup
Sets the double border gap of the shapes of the group.

Specified by:
setDbleBordSepList in interface IGroup
Parameters:
values - The list of values to use. Its must must equals the number of shapes of the group. If an element of the list is null, its corresponding shape will not be set.

setDbleBordColList

public void setDbleBordColList(java.util.List<java.awt.Color> values)
Description copied from interface: IGroup
Sets the double borders colour of the shapes of the group.

Specified by:
setDbleBordColList in interface IGroup
Parameters:
values - The list of values to use. Its must must equals the number of shapes of the group. If an element of the list is null, its corresponding shape will not be set.

setHasShadowList

public void setHasShadowList(java.util.List<java.lang.Boolean> values)
Description copied from interface: IGroup
Defines if the shapes of the group have a shadow.

Specified by:
setHasShadowList in interface IGroup
Parameters:
values - The list of values to use. Its must must equals the number of shapes of the group. If an element of the list is null, its corresponding shape will not be set.

setShadowSizeList

public void setShadowSizeList(java.util.List<java.lang.Double> values)
Description copied from interface: IGroup
Sets the shadow sizes of the shapes of the group.

Specified by:
setShadowSizeList in interface IGroup
Parameters:
values - The list of values to use. Its must must equals the number of shapes of the group. If an element of the list is null, its corresponding shape will not be set.

setShadowAngleList

public void setShadowAngleList(java.util.List<java.lang.Double> values)
Description copied from interface: IGroup
Sets the shadow angles of the shapes of the group.

Specified by:
setShadowAngleList in interface IGroup
Parameters:
values - The list of values to use. Its must must equals the number of shapes of the group. If an element of the list is null, its corresponding shape will not be set.

setShadowColList

public void setShadowColList(java.util.List<java.awt.Color> values)
Description copied from interface: IGroup
Sets the shadow colour of the shapes of the group.

Specified by:
setShadowColList in interface IGroup
Parameters:
values - The list of values to use. Its must must equals the number of shapes of the group. If an element of the list is null, its corresponding shape will not be set.

setGradColStartList

public void setGradColStartList(java.util.List<java.awt.Color> values)
Description copied from interface: IGroup
Sets the first gradient colour of the shapes of the group.

Specified by:
setGradColStartList in interface IGroup
Parameters:
values - The list of values to use. Its must must equals the number of shapes of the group. If an element of the list is null, its corresponding shape will not be set.

setGradColEndList

public void setGradColEndList(java.util.List<java.awt.Color> values)
Description copied from interface: IGroup
Sets the last gradient colour of the shapes of the group.

Specified by:
setGradColEndList in interface IGroup
Parameters:
values - The list of values to use. Its must must equals the number of shapes of the group. If an element of the list is null, its corresponding shape will not be set.

setThicknessList

public void setThicknessList(java.util.List<java.lang.Double> values)
Description copied from interface: IGroup
Sets the thickness of the shapes of the group.

Specified by:
setThicknessList in interface IGroup
Parameters:
values - The list of values to use. Its must must equals the number of shapes of the group. If an element of the list is null, its corresponding shape will not be set.

setFillingStyleList

public void setFillingStyleList(java.util.List<IShape.FillingStyle> values)
Description copied from interface: IGroup
Sets the style of the filling of the shapes of the group.

Specified by:
setFillingStyleList in interface IGroup
Parameters:
values - The list of values to use. Its must must equals the number of shapes of the group. If an element of the list is null, its corresponding shape will not be set.

setLineStyleList

public void setLineStyleList(java.util.List<IShape.LineStyle> values)
Description copied from interface: IGroup
Sets the line style colour of the shapes of the group.

Specified by:
setLineStyleList in interface IGroup
Parameters:
values - The list of values to use. Its must must equals the number of shapes of the group. If an element of the list is null, its corresponding shape will not be set.

setDotFillingColList

public void setDotFillingColList(java.util.List<java.awt.Color> values)
Description copied from interface: IGroup
Sets the filling colour of the dot shapes of the group.

Specified by:
setDotFillingColList in interface IGroup
Parameters:
values - The list of values to use. Its must must equals the number of shapes of the group. If an element of the list is null, its corresponding shape will not be set.

setDotSizeList

public void setDotSizeList(java.util.List<java.lang.Double> values)
Description copied from interface: IGroup
Sets the size of the dot shapes of the group.

Specified by:
setDotSizeList in interface IGroup
Parameters:
values - The list of values to use. Its must must equals the number of shapes of the group. If an element of the list is null, its corresponding shape will not be set.

getGridMinX

public double getGridMinX()
Specified by:
getGridMinX in interface IStandardGrid
Returns:
The minimal X-tick of the grid.

getGridMaxX

public double getGridMaxX()
Specified by:
getGridMaxX in interface IStandardGrid
Returns:
The maximal X-tick of the grid.

getGridMinY

public double getGridMinY()
Specified by:
getGridMinY in interface IStandardGrid
Returns:
The minimal Y-tick of the grid.

getGridMaxY

public double getGridMaxY()
Specified by:
getGridMaxY in interface IStandardGrid
Returns:
The maximal Y-tick of the grid.

getLabelsSize

public int getLabelsSize()
Specified by:
getLabelsSize in interface IStandardGrid
Returns:
The size of the labels.

setLabelsSize

public void setLabelsSize(int labelsSize)
Description copied from interface: IStandardGrid
Defines the size of the labels.

Specified by:
setLabelsSize in interface IStandardGrid
Parameters:
labelsSize - The new size of the labels.

setGridEndX

public void setGridEndX(double x)
Specified by:
setGridEndX in interface IStandardGrid
Parameters:
x - The x-coordinate to set.

setGridEndY

public void setGridEndY(double y)
Specified by:
setGridEndY in interface IStandardGrid
Parameters:
y - The y-coordinate to set.

isXLabelSouth

public boolean isXLabelSouth()
Specified by:
isXLabelSouth in interface IStandardGrid
Returns:
the isXLabelSouth.

setXLabelSouth

public void setXLabelSouth(boolean isXLabelSouth)
Specified by:
setXLabelSouth in interface IStandardGrid
Parameters:
isXLabelSouth - the isXLabelSouth to set.

isYLabelWest

public boolean isYLabelWest()
Specified by:
isYLabelWest in interface IStandardGrid
Returns:
the isYLabelWest.

setYLabelWest

public void setYLabelWest(boolean isYLabelWest)
Specified by:
setYLabelWest in interface IStandardGrid
Parameters:
isYLabelWest - the isYLabelWest to set.

getGridStartX

public double getGridStartX()
Specified by:
getGridStartX in interface IStandardGrid
Returns:
The x-coordinate of the starting point of the grid.

getGridStartY

public double getGridStartY()
Specified by:
getGridStartY in interface IStandardGrid
Returns:
The y-coordinate of the starting point of the grid.

setGridStart

public void setGridStart(double x,
                         double y)
Specified by:
setGridStart in interface IStandardGrid
Parameters:
x - The x-coordinate of the starting point of the grid.
y - The y-coordinate of the starting point of the grid.

getGridEndX

public double getGridEndX()
Specified by:
getGridEndX in interface IStandardGrid
Returns:
The x-coordinate of the ending point of the grid.

getGridEndY

public double getGridEndY()
Specified by:
getGridEndY in interface IStandardGrid
Returns:
The y-coordinate of the ending point of the grid.

setGridEnd

public void setGridEnd(double x,
                       double y)
Specified by:
setGridEnd in interface IStandardGrid
Parameters:
x - The x-coordinate of the ending point of the grid.
y - The y-coordinate of the ending point of the grid.

getOriginX

public double getOriginX()
Specified by:
getOriginX in interface IStandardGrid
Returns:
The x-coordinate of the origin.

getOriginY

public double getOriginY()
Specified by:
getOriginY in interface IStandardGrid
Returns:
The y-coordinate of the origin.

setOrigin

public void setOrigin(double x,
                      double y)
Specified by:
setOrigin in interface IStandardGrid
Parameters:
x - The x-coordinate of the origin of the grid.
y - The y-coordinate of the origin of the grid.

setGridStartY

public void setGridStartY(double y)
Specified by:
setGridStartY in interface IStandardGrid
Parameters:
y - The y-coordinate to set.

setGridStartX

public void setGridStartX(double x)
Specified by:
setGridStartX in interface IStandardGrid
Parameters:
x - The x-coordinate to set.

setOriginX

public void setOriginX(double x)
Specified by:
setOriginX in interface IStandardGrid
Parameters:
x - The X-coordinate to set.

setOriginY

public void setOriginY(double y)
Specified by:
setOriginY in interface IStandardGrid
Parameters:
y - The Y-coordinate to set.

getStep

public double getStep()
Specified by:
getStep in interface IStandardGrid
Returns:
The size of a step of the grid (can be LShape.PPC or LShape.PPC*unit for instance).

containsStandardGrids

public boolean containsStandardGrids()
Specified by:
containsStandardGrids in interface IGroup
Returns:
True if one of the shapes of the group is a grid.

containsAxes

public boolean containsAxes()
Specified by:
containsAxes in interface IGroup
Returns:
True if one of the shapes of the group is an axe.

setGridEndList

public void setGridEndList(java.util.List<IPoint> values)
Description copied from interface: IGroup
Sets the ending points of the grid shapes of the group.

Specified by:
setGridEndList in interface IGroup
Parameters:
values - The list of values to use. Its must must equals the number of shapes of the group. If an element of the list is null, its corresponding shape will not be set.

setGridStartList

public void setGridStartList(java.util.List<IPoint> values)
Description copied from interface: IGroup
Sets the starting points of the grid shapes of the group.

Specified by:
setGridStartList in interface IGroup
Parameters:
values - The list of values to use. Its must must equals the number of shapes of the group. If an element of the list is null, its corresponding shape will not be set.

getGridStartList

public java.util.List<IPoint> getGridStartList()
Specified by:
getGridStartList in interface IGroup
Returns:
The list of the starting points of the grid shapes contained by the group. If a shape of the group does not support the starting point property, null is added to the list. The list cannot be null.

getGridEndList

public java.util.List<IPoint> getGridEndList()
Specified by:
getGridEndList in interface IGroup
Returns:
The list of the ending points of the grid shapes contained by the group. If a shape of the group does not support the starting point property, null is added to the list. The list cannot be null.

getGridStart

public IPoint getGridStart()
Specified by:
getGridStart in interface IStandardGrid
Returns:
The starting point of the grid.

getGridEnd

public IPoint getGridEnd()
Specified by:
getGridEnd in interface IStandardGrid
Returns:
The ending point of the grid.

setGridOriginList

public void setGridOriginList(java.util.List<IPoint> values)
Description copied from interface: IGroup
Sets the origin points of the grid shapes of the group.

Specified by:
setGridOriginList in interface IGroup
Parameters:
values - The list of values to use. Its must must equals the number of shapes of the group. If an element of the list is null, its corresponding shape will not be set.

getGridOriginList

public java.util.List<IPoint> getGridOriginList()
Specified by:
getGridOriginList in interface IGroup
Returns:
The list of the origin points of the grid shapes contained by the group. If a shape of the group does not support the starting point property, null is added to the list. The list cannot be null.

isColourable

public boolean isColourable()
Specified by:
isColourable in interface IShape
Overrides:
isColourable in class LShape
Returns:
True if the shape can have colours.

setGridLabelSizeList

public void setGridLabelSizeList(java.util.List<java.lang.Integer> values)
Description copied from interface: IGroup
Sets the size of the labels of the grid shapes of the group.

Specified by:
setGridLabelSizeList in interface IGroup
Parameters:
values - The list of values to use. Its must must equals the number of shapes of the group. If an element of the list is null, its corresponding shape will not be set.

getGridLabelSizeList

public java.util.List<java.lang.Integer> getGridLabelSizeList()
Specified by:
getGridLabelSizeList in interface IGroup
Returns:
The list of the sizes of the labels of the grid shapes contained by the group. If a shape of the group does not support the starting point property, null is added to the list. The list cannot be null.

setGridXLabelSouthList

public void setGridXLabelSouthList(java.util.List<java.lang.Boolean> values)
Description copied from interface: IGroup
Sets the Y-coordinate of the labels of the grid contained by the group.

Specified by:
setGridXLabelSouthList in interface IGroup
Parameters:
values - The list of values to use. Its must must equals the number of shapes of the group. If an element of the list is null, its corresponding shape will not be set.

getGridXLabelSouthList

public java.util.List<java.lang.Boolean> getGridXLabelSouthList()
Specified by:
getGridXLabelSouthList in interface IGroup
Returns:
The list of the Y-coordinate labels of the grid shapes contained by the group. If a shape of the group does not support the starting point property, null is added to the list. The list cannot be null.

setGridYLabelWestList

public void setGridYLabelWestList(java.util.List<java.lang.Boolean> values)
Description copied from interface: IGroup
Sets the X-coordinate of the labels of the grid contained by the group.

Specified by:
setGridYLabelWestList in interface IGroup
Parameters:
values - The list of values to use. Its must must equals the number of shapes of the group. If an element of the list is null, its corresponding shape will not be set.

getGridYLabelWestList

public java.util.List<java.lang.Boolean> getGridYLabelWestList()
Specified by:
getGridYLabelWestList in interface IGroup
Returns:
The list of the Y-coordinate labels of the grid shapes contained by the group. If a shape of the group does not support the starting point property, null is added to the list. The list cannot be null.

setAxesStyleList

public void setAxesStyleList(java.util.List<IAxes.AxesStyle> values)
Description copied from interface: IGroup
Sets the style of the axes contained by the group.

Specified by:
setAxesStyleList in interface IGroup
Parameters:
values - The list of values to use. Its must must equals the number of shapes of the group. If an element of the list is null, its corresponding shape will not be set.

getAxesStyleList

public java.util.List<IAxes.AxesStyle> getAxesStyleList()
Specified by:
getAxesStyleList in interface IGroup
Returns:
The list of the styles of the axes contained by the group. If a shape of the group is not an axe, null is added. to the list. The list cannot be null.

getIncrementX

public double getIncrementX()
Specified by:
getIncrementX in interface IAxes
Returns:
The X increment of the axes.

getIncrementY

public double getIncrementY()
Specified by:
getIncrementY in interface IAxes
Returns:
The Y increment of the axes.

setIncrementX

public void setIncrementX(double increment)
Specified by:
setIncrementX in interface IAxes
Parameters:
increment - the X increment to set.

setIncrementY

public void setIncrementY(double increment)
Specified by:
setIncrementY in interface IAxes
Parameters:
increment - the Y increment to set.

getDistLabelsX

public double getDistLabelsX()
Specified by:
getDistLabelsX in interface IAxes
Returns:
the distLabels.x.

getDistLabelsY

public double getDistLabelsY()
Specified by:
getDistLabelsY in interface IAxes
Returns:
the distLabels.y.

setDistLabelsX

public void setDistLabelsX(double distLabelsX)
Specified by:
setDistLabelsX in interface IAxes
Parameters:
distLabelsX - the distLabels.x to set.

setDistLabelsY

public void setDistLabelsY(double distLabelsY)
Specified by:
setDistLabelsY in interface IAxes
Parameters:
distLabelsY - the distLabels.y to set.

getLabelsDisplayed

public IAxes.PlottingStyle getLabelsDisplayed()
Specified by:
getLabelsDisplayed in interface IAxes
Returns:
the labelsDisplayed.

setLabelsDisplayed

public void setLabelsDisplayed(IAxes.PlottingStyle labelsDisplayed)
Specified by:
setLabelsDisplayed in interface IAxes
Parameters:
labelsDisplayed - the labelsDisplayed to set.

isShowOrigin

public boolean isShowOrigin()
Specified by:
isShowOrigin in interface IAxes
Returns:
the showOrigin.

setShowOrigin

public void setShowOrigin(boolean showOrigin)
Specified by:
setShowOrigin in interface IAxes
Parameters:
showOrigin - the showOrigin to set.

getTicksDisplayed

public IAxes.PlottingStyle getTicksDisplayed()
Specified by:
getTicksDisplayed in interface IAxes
Returns:
the ticksDisplayed.

setTicksDisplayed

public void setTicksDisplayed(IAxes.PlottingStyle ticksDisplayed)
Specified by:
setTicksDisplayed in interface IAxes
Parameters:
ticksDisplayed - the ticksDisplayed to set.

getTicksStyle

public IAxes.TicksStyle getTicksStyle()
Specified by:
getTicksStyle in interface IAxes
Returns:
the ticksStyle.

setTicksStyle

public void setTicksStyle(IAxes.TicksStyle ticksStyle)
Specified by:
setTicksStyle in interface IAxes
Parameters:
ticksStyle - the ticksStyle to set.

getTicksSize

public double getTicksSize()
Specified by:
getTicksSize in interface IAxes
Returns:
the ticksSize.

setTicksSize

public void setTicksSize(double ticksSize)
Specified by:
setTicksSize in interface IAxes
Parameters:
ticksSize - the ticksSize to set.

getAxesStyle

public IAxes.AxesStyle getAxesStyle()
Specified by:
getAxesStyle in interface IAxes
Returns:
the axesStyle.

setAxesStyle

public void setAxesStyle(IAxes.AxesStyle axesStyle)
Specified by:
setAxesStyle in interface IAxes
Parameters:
axesStyle - the axesStyle to set.

setAxesTicksStyleList

public void setAxesTicksStyleList(java.util.List<IAxes.TicksStyle> values)
Description copied from interface: IGroup
Sets the style of the axes' ticks contained by the group.

Specified by:
setAxesTicksStyleList in interface IGroup
Parameters:
values - The list of values to use. Its must must equals the number of shapes of the group. If an element of the list is null, its corresponding shape will not be set.

getAxesTicksStyleList

public java.util.List<IAxes.TicksStyle> getAxesTicksStyleList()
Specified by:
getAxesTicksStyleList in interface IGroup
Returns:
The list of the styles of the axes' ticks contained by the group. If a shape of the group is not an axe, null is added. to the list. The list cannot be null.

setAxesTicksSizeList

public void setAxesTicksSizeList(java.util.List<java.lang.Double> values)
Description copied from interface: IGroup
Sets the size of the axes' ticks contained by the group.

Specified by:
setAxesTicksSizeList in interface IGroup
Parameters:
values - The list of values to use. Its must must equals the number of shapes of the group. If an element of the list is null, its corresponding shape will not be set.

getAxesTicksSizeList

public java.util.List<java.lang.Double> getAxesTicksSizeList()
Specified by:
getAxesTicksSizeList in interface IGroup
Returns:
The list of the sizes of the axes' ticks contained by the group. If a shape of the group is not an axe, null is added. to the list. The list cannot be null.

setAxesTicksDisplayedList

public void setAxesTicksDisplayedList(java.util.List<IAxes.PlottingStyle> values)
Description copied from interface: IGroup
Sets how the ticks of the axes contained by the group are displayed.

Specified by:
setAxesTicksDisplayedList in interface IGroup
Parameters:
values - The list of values to use. Its must must equals the number of shapes of the group. If an element of the list is null, its corresponding shape will not be set.

getAxesTicksDisplayedList

public java.util.List<IAxes.PlottingStyle> getAxesTicksDisplayedList()
Specified by:
getAxesTicksDisplayedList in interface IGroup
Returns:
The list of the plotting styles of the axes' ticks contained in the group. If a shape of the group is not an axe, null is added. to the list. The list cannot be null.

setAxesIncrementsList

public void setAxesIncrementsList(java.util.List<IPoint> values)
Description copied from interface: IGroup
Sets the labels' increments of the axes contained by the group are displayed.

Specified by:
setAxesIncrementsList in interface IGroup
Parameters:
values - The list of values to use. Its must must equals the number of shapes of the group. If an element of the list is null, its corresponding shape will not be set.

getAxesIncrementsList

public java.util.List<IPoint> getAxesIncrementsList()
Specified by:
getAxesIncrementsList in interface IGroup
Returns:
The list of the labels' increments of the axes' ticks contained in the group. If a shape of the group is not an axe, null is added. to the list. The list cannot be null.

getIncrement

public IPoint getIncrement()
Specified by:
getIncrement in interface IAxes
Returns:
The increments of the axes.

setIncrement

public void setIncrement(IPoint increment)
Specified by:
setIncrement in interface IAxes
Parameters:
increment - The axes' increment to set.

setAxesLabelsDisplayedList

public void setAxesLabelsDisplayedList(java.util.List<IAxes.PlottingStyle> values)
Description copied from interface: IGroup
Sets how the labels of the axes contained by the group are displayed.

Specified by:
setAxesLabelsDisplayedList in interface IGroup
Parameters:
values - The list of values to use. Its must must equals the number of shapes of the group. If an element of the list is null, its corresponding shape will not be set.

getAxesLabelsDisplayedList

public java.util.List<IAxes.PlottingStyle> getAxesLabelsDisplayedList()
Specified by:
getAxesLabelsDisplayedList in interface IGroup
Returns:
The list of the plotting styles of the axes' labels contained in the group. If a shape of the group is not an axe, null is added. to the list. The list cannot be null.

setAxesShowOriginList

public void setAxesShowOriginList(java.util.List<java.lang.Boolean> values)
Description copied from interface: IGroup
Defines if the origin of the axes contained by the group are displayed.

Specified by:
setAxesShowOriginList in interface IGroup
Parameters:
values - The list of values to use. Its must must equals the number of shapes of the group. If an element of the list is null, its corresponding shape will not be set.

getAxesShowOriginList

public java.util.List<java.lang.Boolean> getAxesShowOriginList()
Specified by:
getAxesShowOriginList in interface IGroup
Returns:
The list of booleans defining if the origin of the axes contained in the group must be shown. If a shape of the group is not an axe, null is added. to the list. The list cannot be null.

getDistLabels

public IPoint getDistLabels()
Specified by:
getDistLabels in interface IAxes
Returns:
The distance between the labels of the axes.

setDistLabels

public void setDistLabels(IPoint distLabels)
Specified by:
setDistLabels in interface IAxes
Parameters:
distLabels - The distance between the labels of the axes.

setAxesDistLabelsList

public void setAxesDistLabelsList(java.util.List<IPoint> values)
Description copied from interface: IGroup
Sets the distances between the labels of the axes contained by the group are displayed.

Specified by:
setAxesDistLabelsList in interface IGroup
Parameters:
values - The list of values to use. Its must must equals the number of shapes of the group. If an element of the list is null, its corresponding shape will not be set.

getAxesDistLabelsList

public java.util.List<IPoint> getAxesDistLabelsList()
Specified by:
getAxesDistLabelsList in interface IGroup
Returns:
The list of the distances between the labels of the axes contained in the group. If a shape of the group is not an axe, null is added. to the list. The list cannot be null.