public static class IltBTSAntennaBaseRenderer.Standard extends IltBTSAntennaBaseRenderer
IltBTSAntennaBaseRenderer.Offscreen, IltBTSAntennaBaseRenderer.StandardDRAWING_THRESHOLD| Constructor and Description |
|---|
Standard() |
| Modifier and Type | Method and Description |
|---|---|
IlvRect |
boundingBox(IlvTransformer t,
IlvRect rect,
boolean withSelection)
Returns the bounding box of the area that
draw(g,t,rect) draws into. |
protected boolean |
containsMain(IlvPoint p,
IlvPoint tp,
IlvTransformer t,
IlvRect rect)
Tests whether a point lies within the main part of the base of this object.
|
protected ilog.tgo.graphic.renderer.internal.IltBaseRendererState |
createBaseRendererState()
Creates the instance that stores all the base renderer
configuration.
|
protected void |
drawExtraBorder(Graphics g,
IlvTransformer t,
IlvRect rect,
IltPalette palette,
int distance,
int thickness)
Draws an extra border inside or outside the base depending
on the value returned by
isExtraBorderOutside(). |
void |
drawMain(Graphics g,
IlvTransformer t,
IlvRect rect)
Draws the main part of the base.
|
float |
getAlphaBeamWidth()
Returns the alpha value used to achieve transparency effects when
drawing the antenna beam width.
|
int |
getAntennaRadius()
Returns the antenna size when the power value is maximum.
|
float |
getBeam()
Returns the beam of the antenna.
|
int |
getBeamDirection()
Returns the direction of the antenna, in degrees.
|
int |
getBeamWidth()
Returns the beam width of the antenna, in degrees.
|
int |
getBeamWidthRadius()
Returns the antenna beam width radius when the power value
is maximum.
|
protected ilog.tgo.graphic.renderer.internal.IltBTSAntennaBaseRendererState |
getBTSAntennaBaseRendererState() |
float |
getPower()
Returns the power of the antenna.
|
int |
getPowerMaxValue()
Returns the maximum power possible value for the antenna.
|
IlvRect |
getRect(IlvPoint center)
Returns the preferred size of the base.
|
int |
getRotation()
Returns the antenna orientation, which is measured in degrees.
|
Shape |
getShape(IlvTransformer transf)
Returns the cached bounding shape of this element.
|
void |
initResources()
Initializes resources using the property values defined in
this base renderer.
|
boolean |
isAntennaVisible()
Returns if the antenna is visible or not.
|
boolean |
isAntialiasing()
Returns if anti-aliasing is used or not when drawing the
antenna.
|
boolean |
isBeamWidthBorderVisible()
Returns if the bean width is drawn with a border or not.
|
boolean |
isBeamWidthVisible()
Returns if the antenna beamwidth is visible or not.
|
void |
setAlphaBeamWidth(float v)
Sets the alpha value used to achieve transparency effects when
drawing the antenna beam width.
|
void |
setAntennaRadius(int r)
Sets the antenna size when the power value is maximum.
|
void |
setAntennaVisible(boolean v)
Sets if the antenna is visible or not.
|
void |
setAntialiasing(boolean antialiasing)
Sets if the anti-aliasing is used or not when drawing the
antenna.
|
void |
setBeam(float v)
Sets the beam of the antenna.
|
void |
setBeamDirection(int v)
Sets the direction of the antenna, in degrees.
|
void |
setBeamWidth(int w)
Sets the beam width of the antenna, in degrees.
|
void |
setBeamWidthBorderVisible(boolean v)
Sets if the bean width is drawn with a border or not.
|
void |
setBeamWidthRadius(int v)
Sets the antenna beam width radius when the power value
is maximum.
|
void |
setBeamWidthVisible(boolean v)
Sets if the antenna beamwidth is visible or not.
|
void |
setPower(float v)
Sets the power of the antenna.
|
void |
setPowerMaxValue(int v)
Sets the maximum power possible value for the antenna.
|
void |
setRotation(int r)
Sets the antenna orientation, which is measured in degrees.
|
draw, drawExtraBorders, isExtraBorderOutside__isDottedBorderVisible, attach, boundingBoxWithTransformer, contains, containsExtraBorders, drawAlarmBorder, drawExtraBorder, drawSelectionBorder, dropResources, getAlarmBorderColor, getAlarmBorderWidth, getAlarmColorLevel, getBackground, getBaseRenderer, getBaseRendererState, getBorderColor, getBorderColor2, getBorderLineStyle, getBorderPalette, getBorderPattern, getBorderWidth, getBrightPalette, getDarkPalette, getDeprecatedBlinkingMode, getDetailLevel, getDottedBorderBackground, getDottedBorderForeground, getDottedBorderLineStyle, getDottedBorderPalette, getExtraBorders, getFillAngle, getFillEnd, getFillStart, getFillStyle, getFillTexture, getForeground, getPalette, getPattern, getRepresentationObject, getSelectionBorderBackground, getSelectionBorderForeground, getSelectionBorderLineStyle, getSelectionBorderWidth, getSourceImage, getView, initBaseRenderer, isAlarmBorderVisible, isAlarmColorVisible, isBaseSelectionBorderVisible, isDottedBorderVisible, isPolygonalBorder, isReliefBorders, isUsingBlinkingResources, setAlarmBorderColor, setAlarmBorderVisible, setAlarmBorderWidth, setAlarmColorLevel, setAlarmColorVisible, setBackground, setBaseRendererState, setBaseSelectionBorderVisible, setBorderColor, setBorderColor2, setBorderLineStyle, setBorderPattern, setBorderWidth, setDeprecatedBlinkingMode, setDetailLevel, setDottedBorderBackground, setDottedBorderForeground, setDottedBorderLineStyle, setDottedBorderVisible, setFillAngle, setFillEnd, setFillStart, setFillStyle, setFillTexture, setForeground, setPattern, setPolygonalBorder, setReliefBorders, setRepresentationObject, setSelectionBorderBackground, setSelectionBorderForeground, setSelectionBorderLineStyle, setSelectionBorderWidth, setSourceImage, setViewprotected ilog.tgo.graphic.renderer.internal.IltBaseRendererState createBaseRendererState()
IltBaseRenderercreateBaseRendererState in class IltBaseRendererprotected final ilog.tgo.graphic.renderer.internal.IltBTSAntennaBaseRendererState getBTSAntennaBaseRendererState()
public void setRotation(int r)
setRotation in class IltBTSAntennaBaseRendererpublic int getRotation()
public void setPowerMaxValue(int v)
setPowerMaxValue in class IltBTSAntennaBaseRendererpublic int getPowerMaxValue()
public void setAntennaRadius(int r)
setAntennaRadius in class IltBTSAntennaBaseRendererpublic int getAntennaRadius()
public void setBeamWidthRadius(int v)
setBeamWidthRadius in class IltBTSAntennaBaseRendererpublic int getBeamWidthRadius()
public void setPower(float v)
setPower in class IltBTSAntennaBaseRendererpublic float getPower()
public void setBeam(float v)
setBeam in class IltBTSAntennaBaseRendererpublic float getBeam()
public void setBeamDirection(int v)
setBeamDirection in class IltBTSAntennaBaseRendererpublic int getBeamDirection()
public void setBeamWidth(int w)
setBeamWidth in class IltBTSAntennaBaseRendererpublic int getBeamWidth()
public void setBeamWidthVisible(boolean v)
setBeamWidthVisible in class IltBTSAntennaBaseRendererpublic boolean isBeamWidthVisible()
public void setBeamWidthBorderVisible(boolean v)
setBeamWidthBorderVisible in class IltBTSAntennaBaseRendererpublic boolean isBeamWidthBorderVisible()
public void setAntennaVisible(boolean v)
setAntennaVisible in class IltBTSAntennaBaseRendererpublic boolean isAntennaVisible()
public void setAlphaBeamWidth(float v)
setAlphaBeamWidth in class IltBTSAntennaBaseRendererpublic float getAlphaBeamWidth()
public void setAntialiasing(boolean antialiasing)
setAntialiasing in class IltBTSAntennaBaseRendererpublic boolean isAntialiasing()
public IlvRect getRect(IlvPoint center)
IltBTSAntennaBaseRenderergetRect in class IltBTSAntennaBaseRendererpublic void initResources()
IltBaseRendererThis method can be overridden if you want to modify the value of the properties that have been automatically set by JTGO.
If this method is overridden, super.initResources()
should be called after setting your own values.
initResources in class IltBaseRendererpublic void drawMain(Graphics g, IlvTransformer t, IlvRect rect)
IltBaseRendererdrawMain in class IltBaseRendererg - As in draw.t - As in draw.rect - As in draw.protected boolean containsMain(IlvPoint p, IlvPoint tp, IlvTransformer t, IlvRect rect)
IltBaseRenderertrue only if the point corresponds to a point
drawn by the method drawMain.
This implementation returns true if the point tp is
inside the rectangle rect, because it is assumed that the
implementation of the drawMain method fills
rect.
Note: This method may be overridden to take into account the shape drawn by this base renderer, if it is not rectangular or if it has transparency.
Note: The parameters tp and rect are given in
the same coordinate system. The transformer t has already
been applied to these parameters.
containsMain in class IltBaseRendererp - The point to be tested.tp - The point p transformed by the transformer t.t - The transformation that was applied to the object when it was
drawn.rect - As in draw.IltBaseRenderer.drawMain(java.awt.Graphics, ilog.views.IlvTransformer, ilog.views.IlvRect)protected void drawExtraBorder(Graphics g, IlvTransformer t, IlvRect rect, IltPalette palette, int distance, int thickness)
IltBaseRendererisExtraBorderOutside().
This method is called by drawExtraBorders for each border that
needs to be drawn (selection, alarm and dotted borders).
The shape of the drawn borders is a rectangle if the dotted border
is visible OR if getExtraBorders returns null.
If the dotted border is invisible AND getExtraBorders
returns a non-null array of IltPolygon,
then these polygons are used as shapes for the borders.
drawExtraBorder in class IltBaseRendererg - As in drawt - As in drawrect - As in drawpalette - The palette with the border colorsdistance - The distance from the main part (not including width)thickness - The width of the borderIltBaseRenderer.getExtraBorders(ilog.views.IlvRect),
IltBaseRenderer.isExtraBorderOutside(),
IltBaseRenderer.isDottedBorderVisible()public IlvRect boundingBox(IlvTransformer t, IlvRect rect, boolean withSelection)
IltBaseRendererdraw(g,t,rect) draws into.
The argument rect is a fresh copy and may be
destructively modified by this function.
This implementation of the function assumes that the main part
fills rect. Depending on the value returned by
isExtraBorderOutside(), the function returns rect, or
rect enlarged by the width of
the selection border, alarm border and dotted border, if present.
boundingBox in class IltBaseRenderert - Transformer applied to the object.rect - As in draw.withSelection - if false the rect
will not be enlarged by the selection.public Shape getShape(IlvTransformer transf)
IltBTSAntennaBaseRenderergetShape in class IltBTSAntennaBaseRenderertransf - The view transformer© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.