|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.latexdraw.glib.models.impl.LArrow
class LArrow
Defines a model of an arrow.
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
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface net.sf.latexdraw.glib.models.interfaces.IArrow |
---|
IArrow.ArrowStyle |
Field Summary | |
---|---|
protected double |
arrowInset
The inset of the arrow. |
protected double |
arrowLength
The length of the arrow. |
protected double |
arrowSizeDim
The latex parameter arrowSize num. |
protected double |
arrowSizeNum
The latex parameter arrowSize num. |
protected double |
bracketNum
The latex parameter bracket num. |
protected double |
dotSizeDim
The latex parameter dotsize dim. |
protected double |
dotSizeNum
The latex parameter dotsize num. |
protected IShape |
owner
The owner of the arrow. |
protected double |
rBracketNum
The latex parameter rbracket num. |
protected IArrow.ArrowStyle |
style
The style of the arrow. |
protected double |
tBarSizeDim
The latex parameter tbarsize num. |
protected double |
tBarSizeNum
The latex parameter tbarsize num. |
Constructor Summary | |
---|---|
protected |
LArrow(IArrow arrow,
IShape owner)
Creates an arrow from an other arrow. |
protected |
LArrow(IShape owner)
Creates an arrow. |
Method Summary | |
---|---|
void |
copy(IArrow model)
Copies the parameters of the given arrow to the current arrow. |
double |
getArrowInset()
|
double |
getArrowLength()
|
ILine |
getArrowLine()
|
double |
getArrowShapedWidth()
|
double |
getArrowSizeDim()
|
double |
getArrowSizeNum()
|
IArrow.ArrowStyle |
getArrowStyle()
|
double |
getBarShapedArrowWidth()
|
double |
getBracketNum()
|
double |
getBracketShapedArrowLength()
|
double |
getDotSizeDim()
|
double |
getDotSizeNum()
|
IPoint |
getPosition()
|
double |
getRBracketNum()
|
double |
getRoundShapedArrowRadius()
|
IShape |
getShape()
|
double |
getTBarSizeDim()
|
double |
getTBarSizeNum()
|
boolean |
hasStyle()
|
boolean |
isInverted()
|
boolean |
isLeftArrow()
|
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 arrowStyle)
Defines the style of the arrow. |
void |
setBracketNum(double bracketNum)
Sets the latex parameter bracket num. |
void |
setDotSizeDim(double dotSizeDim)
Sets the latex parameter dotsize dim. |
void |
setDotSizeNum(double dotSizeNum)
Sets the latex parameter dotsize num. |
void |
setRBracketNum(double rBracketNum)
Sets the latex parameter rbracket num. |
void |
setShape(IShape shape)
Defines the shape that contains the arrow. |
void |
setTBarSizeDim(double tbarSizeDim)
Sets the latex parameter tbarsize num. |
void |
setTBarSizeNum(double tBarSizeNum)
Sets the latex parameter tbarsize num. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected IArrow.ArrowStyle style
protected double arrowSizeDim
protected double arrowSizeNum
protected double arrowLength
protected double arrowInset
protected double dotSizeDim
protected double dotSizeNum
protected double tBarSizeDim
protected double tBarSizeNum
protected double bracketNum
protected double rBracketNum
protected IShape owner
Constructor Detail |
---|
protected LArrow(IShape owner)
owner
- The shape that contains the arrow.protected LArrow(IArrow arrow, IShape owner)
arrow
- The arrow to copy.
java.lang.IllegalArgumentException
- If the given arrow is null.Method Detail |
---|
public void copy(IArrow model)
IArrow
copy
in interface IArrow
model
- The arrow to copy. Cannot be null.public double getRoundShapedArrowRadius()
getRoundShapedArrowRadius
in interface IArrow
public double getBarShapedArrowWidth()
getBarShapedArrowWidth
in interface IArrow
public double getBracketShapedArrowLength()
getBracketShapedArrowLength
in interface IArrow
public double getArrowShapedWidth()
getArrowShapedWidth
in interface IArrow
public ILine getArrowLine()
getArrowLine
in interface IArrow
public double getArrowInset()
getArrowInset
in interface IArrowable
public double getArrowLength()
getArrowLength
in interface IArrowable
public double getArrowSizeDim()
getArrowSizeDim
in interface IArrowable
public double getArrowSizeNum()
getArrowSizeNum
in interface IArrowable
public IArrow.ArrowStyle getArrowStyle()
getArrowStyle
in interface IArrow
public double getBracketNum()
getBracketNum
in interface IArrowable
public double getDotSizeDim()
getDotSizeDim
in interface IArrowable
public double getDotSizeNum()
getDotSizeNum
in interface IArrowable
public IPoint getPosition()
getPosition
in interface IArrow
public double getRBracketNum()
getRBracketNum
in interface IArrowable
public IShape getShape()
getShape
in interface IArrow
public double getTBarSizeDim()
getTBarSizeDim
in interface IArrowable
public double getTBarSizeNum()
getTBarSizeNum
in interface IArrowable
public boolean isInverted()
isInverted
in interface IArrow
public boolean isLeftArrow()
isLeftArrow
in interface IArrow
public boolean hasStyle()
hasStyle
in interface IArrow
public void setArrowInset(double inset)
IArrowable
setArrowInset
in interface IArrowable
inset
- The new inset.public void setArrowLength(double lgth)
IArrowable
setArrowLength
in interface IArrowable
lgth
- The new length of the arrow.public void setArrowSizeDim(double arrowSizeDim)
IArrowable
setArrowSizeDim
in interface IArrowable
arrowSizeDim
- The new arrowSize num.public void setArrowSizeNum(double arrowSizeNum)
IArrowable
setArrowSizeNum
in interface IArrowable
arrowSizeNum
- The new arrowSize num.public void setArrowStyle(IArrow.ArrowStyle arrowStyle)
IArrow
setArrowStyle
in interface IArrow
arrowStyle
- The new style of the arrow.public void setBracketNum(double bracketNum)
IArrowable
setBracketNum
in interface IArrowable
bracketNum
- The new bracket num.public void setDotSizeDim(double dotSizeDim)
IArrowable
setDotSizeDim
in interface IArrowable
dotSizeDim
- The new dotsize dim.public void setDotSizeNum(double dotSizeNum)
IArrowable
setDotSizeNum
in interface IArrowable
dotSizeNum
- The new dotsize num.public void setRBracketNum(double rBracketNum)
IArrowable
setRBracketNum
in interface IArrowable
rBracketNum
- The new rbracket num.public void setTBarSizeDim(double tbarSizeDim)
IArrowable
setTBarSizeDim
in interface IArrowable
tbarSizeDim
- The new tbarsize num.public void setTBarSizeNum(double tBarSizeNum)
IArrowable
setTBarSizeNum
in interface IArrowable
tBarSizeNum
- The new tbarsize num.public void setShape(IShape shape)
IArrow
setShape
in interface IArrow
shape
- The new shape. Cannot be null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |