|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.latexdraw.glib.models.impl.LShape
net.sf.latexdraw.glib.models.impl.LGroup
net.sf.latexdraw.glib.models.impl.LDrawing
class LDrawing
Defines a drawing that contains a set of shapes and
a set of selected shapes. It corresponds to the
model of a canvas that contains representations of shapes.
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/25/2010
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 IGroup |
selection
The selected shapes of the drawing. |
protected IUnary<IShape> |
tempShape
A temporary shape in the drawing. |
Fields inherited from class net.sf.latexdraw.glib.models.impl.LGroup |
---|
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 |
LDrawing()
Initialises a drawing. |
Method Summary | |
---|---|
void |
addToSelection(IShape sh)
Adds the given shape to the selection. |
void |
addToSelection(java.util.List<IShape> newSelection)
Adds the given shapes to the selection. |
void |
clear()
Empties the drawing. |
IGroup |
getSelection()
|
IShape |
getTempShape()
|
IUnary<IShape> |
getUnaryTempShape()
|
boolean |
isModified()
|
void |
reinit()
Reinitialises the object. |
void |
removeFromSelection(IShape sh)
Removes the given shape from the selection. |
void |
removeSelection()
Clears the selection. |
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 |
setSelection(IShape sh)
Selects the given shape and unselect the already selected shapes. |
void |
setSelection(java.util.List<IShape> newSelection)
Selects the given shapes and unselect the already selected shapes. |
void |
setTempShape(IShape tempShape)
Sets the temporary 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, 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.ISetShapes |
---|
addShape, addShape, contains, getShapeAt, getShapes, isEmpty, size |
Methods inherited from interface org.malai.properties.Modifiable |
---|
setModified |
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 |
Field Detail |
---|
protected IGroup selection
protected IUnary<IShape> tempShape
Constructor Detail |
---|
protected LDrawing()
Method Detail |
---|
public void addToSelection(IShape sh)
IDrawing
addToSelection
in interface IDrawing
sh
- The shape to select.public void addToSelection(java.util.List<IShape> newSelection)
IDrawing
addToSelection
in interface IDrawing
newSelection
- The shapes to select.public IGroup getSelection()
getSelection
in interface IDrawing
public void removeFromSelection(IShape sh)
IDrawing
removeFromSelection
in interface IDrawing
sh
- The shape to remove from the selection.public void removeSelection()
IDrawing
removeSelection
in interface IDrawing
public void setSelection(IShape sh)
IDrawing
setSelection
in interface IDrawing
sh
- The shape to select.public void setSelection(java.util.List<IShape> newSelection)
IDrawing
setSelection
in interface IDrawing
newSelection
- The shapes to select.public void clear()
ISetShapes
clear
in interface ISetShapes
clear
in class LGroup
public boolean removeShape(IShape sh)
ISetShapes
removeShape
in interface ISetShapes
removeShape
in class LGroup
sh
- The shape to remove.
public IShape removeShape(int i)
ISetShapes
removeShape
in interface ISetShapes
removeShape
in class LGroup
i
- the position of the shape in the vector (-1: the last shape of the vector).
public IShape getTempShape()
getTempShape
in interface IDrawing
public IUnary<IShape> getUnaryTempShape()
getUnaryTempShape
in interface IDrawing
public void setTempShape(IShape tempShape)
IDrawing
setTempShape
in interface IDrawing
tempShape
- The new temporary shape. Can be null.public boolean isModified()
isModified
in interface Modifiable
isModified
in class LShape
public void reinit()
Reinitialisable
reinit
in interface Reinitialisable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |