public class Frame extends Component
Modifier and Type | Field and Description |
---|---|
protected DrawFrameElement |
mElement
Attributes:
|
protected FrameContainer |
mFrameContainer |
protected Document |
mOwnerDocument |
protected FrameStyleHandler |
mStyleHandler |
Modifier | Constructor and Description |
---|---|
protected |
Frame(DrawFrameElement element) |
Modifier and Type | Method and Description |
---|---|
String |
getDesciption()
Get the description of this text box
|
DrawFrameElement |
getDrawFrameElement()
Get the instance of
DrawFrameElement which represents this frame. |
URI |
getHyperlink()
Return the URI of hypertext reference if exists, or else, return null.
|
protected static Frame |
getInstanceof(DrawFrameElement element)
Get a frame instance by an instance of
DrawFrameElement . |
String |
getName()
Get the name of this frame.
|
OdfElement |
getOdfElement()
Get the instance of
DrawFrameElement which represents this frame. |
FrameRectangle |
getRectangle()
Return the rectangle used by this frame
|
FrameStyleHandler |
getStyleHandler()
Return style handler for this frame
|
String |
getTitle()
Get the title of this text box
|
protected static Frame |
newFrame(FrameContainer container)
Create an instance of frame
|
void |
setBackgroundColor(Color color)
Set the background color of this frame.
|
void |
setDescription(String description)
Set the description of this text box.
|
void |
setHyperlink(URI linkto)
Add a hypertext reference to this frame.
|
Image |
setImage(URI uri)
Add a image to the frame after all the contents get removed.
|
void |
setName(String name)
Set the name of this frame.
|
void |
setRectangle(FrameRectangle rectangle)
Set the rectangle used by this frame
|
void |
setTitle(String title)
Set the title of this text box
|
getComponentByElement, getOwnerDocument, registerComponent, unregisterComponent
protected DrawFrameElement mElement
draw:caption-id 19.115, draw:class-names 19.120, draw:copy-of 19.126, draw:id 19.187.3, draw:layer 19.189, draw:name 19.197.10, draw:style-name 19.219.13, draw:text-style-name 19.227, draw:transform 19.228, draw:z-index 19.231, presentation:class 19.389, presentation:class-names 19.390, presentation:placeholder 19.407, presentation:style-name 19.422, presentation:user-transformed 19.427, style:rel-height 19.509, style:rel-width 19.510.2, svg:height 19.539.8, svg:width 19.571.10, svg:x 19.573.5, svg:y 19.577.5, table:end-cell-address 19.627, table:end-x 19.632, table:end-y 19.633, table:table-background 19.728, text:anchor-page-number 19.753, text:anchor-type 19.754 xml:id 19.914.
protected Document mOwnerDocument
protected FrameContainer mFrameContainer
protected FrameStyleHandler mStyleHandler
protected Frame(DrawFrameElement element)
protected static Frame getInstanceof(DrawFrameElement element)
DrawFrameElement
.element
- - the instance of DrawFrameElementprotected static Frame newFrame(FrameContainer container)
The frame will be added at the end of this container.
container
- - the frame container that contains this frame.public void setName(String name)
name
- - the name of the framepublic String getName()
public OdfElement getOdfElement()
DrawFrameElement
which represents this frame.getOdfElement
in class Component
DrawFrameElement
public DrawFrameElement getDrawFrameElement()
DrawFrameElement
which represents this frame.DrawFrameElement
public void setRectangle(FrameRectangle rectangle)
rectangle
- - the rectangle used by this framepublic FrameRectangle getRectangle()
public void setTitle(String title)
title
- - the title of this text boxpublic String getTitle()
public String getDesciption()
public void setDescription(String description)
description
- - the description of this text boxpublic void setHyperlink(URI linkto)
linkto
- the hyperlinkpublic URI getHyperlink()
public FrameStyleHandler getStyleHandler()
public void setBackgroundColor(Color color)
If the parameter is null, there will be no background color defined for this frame. The old setting of background color will be removed.
color
- - the background color to be setCopyright © 2010–2018 Apache Software Foundation; Copyright © 2018–2020 The Document Foundation. All rights reserved.